Main menu

Forum


× Help Forum English

[VIEWED] multilingual site

  • SLV
  • Membre junior
  • Membre junior
Plus d'informations
il y a 11 ans 1 mois #5610 par SLV
Réponse de SLV sur le sujet multilingual site

Lyr!C écrit: About Google maps, doesn't know currently if possible, as using distant API of Google.
But maybe it's possible... when time, and working on Google Maps, will check this...



It works for me.
Localization of Google-maps based on the current language of the site.
In the file /components/com_icagenda/views/list/tmpl/event.php
code start at line #226

if($loadGMapScripts) {      
	$document->addScript('https://maps.googleapis.com/maps/api/js?sensor=false');
	$document->addScript( JURI::base( true ) . '/components/com_icagenda/js/icmap.js' );
}

change with

if($loadGMapScripts) {
  $doclang = & JFactory::getDocument();
	$curlang = $doclang->language;
  $lang = substr($curlang,0,2);
  $document->addScript('https://maps.googleapis.com/maps/api/js?sensor=false&language='.$lang);
	$document->addScript( JURI::base( true ) . '/components/com_icagenda/js/icmap.js' );
}

Is it enough?

Connexion ou Créer un compte pour participer à la conversation.

  • SLV
  • Membre junior
  • Membre junior
Plus d'informations
il y a 11 ans 1 mois #5803 par SLV
Réponse de SLV sur le sujet multilingual site
Mr. Lyr!C

Did you saw this hack? Do you agree? Will be it or something else in update?

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 11 ans 1 mois #5806 par Lyr!C
Réponse de Lyr!C sur le sujet multilingual site

SLV écrit: Mr. Lyr!C

Did you saw this hack? Do you agree? Will be it or something else in update?


Hi!

And thanks to remind me this message! Working on so many things that i forgot it for next release...

Yes, i will add it, but do one or two little changes to make it working on Joomla 3 too!

So i add it in my todo list for next version 3.2.8 ;-)

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 11 ans 1 mois #5826 par Lyr!C
Réponse de Lyr!C sur le sujet multilingual site
This is now added in my dev code, (with remove of the & before JFactory to works with Joomla 3)

So, will be in next release 3.2.8 (next week!)

Which name do you want me to add in contributors list ? (info tab of the component)

Many thanks!
B)

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • SLV
  • Membre junior
  • Membre junior
Plus d'informations
il y a 11 ans 1 mois #5829 par SLV
Réponse de SLV sur le sujet multilingual site

Which name do you want me to add in contributors list?


Mr. Lyr!C

Thank you very much for appreciating my minimum contribution for your great job.
This is unnecessary.

I have suggestions into TODO list:
- add such lines to helper.php (component and modules)
case 'p.': $ val = ' p.'; break;
(р - cyrillic letter)
and the corresponding globalization file uk-UA.php
for Ukrainian date format localization.
- make it possible to output such string "There are no scheduled events" (JText::_) in the output list of today and upcoming events if really no scheduled events...

Many thanks. Sorry fo my importunity... ;)

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 11 ans 1 mois #5848 par Lyr!C
Réponse de Lyr!C sur le sujet multilingual site

SLV écrit:

Which name do you want me to add in contributors list?


Mr. Lyr!C

Thank you very much for appreciating my minimum contribution for your great job.
This is unnecessary.

I will next week update the list of contributors. (i think it a basic thank you!) I can add just "SLV" if you don't want your full name ?

SLV écrit: I have suggestions into TODO list:
- add such lines to helper.php (component and modules)

case 'p.': $ val = ' p.'; break;
(р - cyrillic letter)

Yes, i can, and will for 3.2.8 ;-)
(and done in my dev files)

SLV écrit: and the corresponding globalization file uk-UA.php
for Ukrainian date format localization.

There's some missing files for date format, and i will work on them as soon as a little time. But today, i add a file for globalization only if already a language pack.
But, if you have understand how to create one for ukrainian, i can add it.
And if you want to open a language for Ukrainian, this could be done on Transifex : www.transifex.com/projects/p/icagenda/

:-)

SLV écrit: - make it possible to output such string "There are no scheduled events" (JText::_) in the output list of today and upcoming events if really no scheduled events...


I'm not sure to have understand this point... Could you explain me ?
Thanks!
Lyr!C

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

  • SLV
  • Membre junior
  • Membre junior
Plus d'informations
il y a 11 ans 1 mois - il y a 11 ans 1 mois #5859 par SLV
Réponse de SLV sur le sujet multilingual site

Could you explain me ?


Of course, please.
Screenshot attached. It looks like an empty list of upcoming events.

... if you have understand how to create one for ukrainian, i can add it.

My globalization file attached.
Pièces jointes :
Dernière édition: il y a 11 ans 1 mois par SLV.

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 11 ans 1 mois #5863 par Lyr!C
Réponse de Lyr!C sur le sujet multilingual site

SLV écrit:
Of course, please.
Screenshot attached. It looks like an empty list of upcoming events.


See attached picture on one of my dev site, when no upcoming events, you have already a default string to display "no upcoming events" but... you have to activate subtitle description (and yes, this could be maybe changed to not included the "no events" in this subtitle... will add it to my roadmap...)
;-)

SLV écrit: I tried to attach my globalization file, but after submit button forum gives an error.


I will contact you by email for this ;-)

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

  • SLV
  • Membre junior
  • Membre junior
Plus d'informations
il y a 11 ans 1 mois #5870 par SLV
Réponse de SLV sur le sujet multilingual site

...you have to activate subtitle description

Thanks for the clarification. It works.

Connexion ou Créer un compte pour participer à la conversation.

  • Lyr!C
  • Portrait de Lyr!C
  • Administrateur
  • Administrateur
  • Lead Developer
Plus d'informations
il y a 11 ans 1 mois #5880 par Lyr!C
Réponse de Lyr!C sur le sujet multilingual site

SLV écrit:

...you have to activate subtitle description

Thanks for the clarification. It works.


And thanks to your notice, i will think of an enhancement of this feature ;-)

Latest version : iCagenda 3.9.8
We recommend every user to keep iCagenda updated.
Don't forget to have your Joomla!™ up-to-date!

Do you like iCagenda?
I would appreciate if you could take 5 minutes to post a review on JED (Joomla Extensions Directory) .

Fichier attaché :

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: Lyr!C
Temps de génération de la page : 0.118 secondes

 

Follow Us

Créez vos templates Joomla avec Template Creator CK

acymailing logo new