Main menu

Forum


× Help Forum English

[VIEWED] multilingual site

  • SLV
  • Junior Member
  • Junior Member
Di più
11 Anni 1 Mese fa #5610 da SLV
Risposta da SLV al topic multilingual site

Lyr!C ha scritto: 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?

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • SLV
  • Junior Member
  • Junior Member
Di più
11 Anni 1 Mese fa #5803 da SLV
Risposta da SLV al topic multilingual site
Mr. Lyr!C

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

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
11 Anni 1 Mese fa #5806 da Lyr!C
Risposta da Lyr!C al topic multilingual site

SLV ha scritto: 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) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
11 Anni 1 Mese fa #5826 da Lyr!C
Risposta da Lyr!C al topic 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) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • SLV
  • Junior Member
  • Junior Member
Di più
11 Anni 1 Mese fa #5829 da SLV
Risposta da SLV al topic 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... ;)

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
11 Anni 1 Mese fa #5848 da Lyr!C
Risposta da Lyr!C al topic multilingual site

SLV ha scritto:

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 ha scritto: 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 ha scritto: 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 ha scritto: - 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) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • SLV
  • Junior Member
  • Junior Member
Di più
11 Anni 1 Mese fa - 11 Anni 1 Mese fa #5859 da SLV
Risposta da SLV al topic 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.
Allegati:
Ultima Modifica 11 Anni 1 Mese fa da SLV.

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
11 Anni 1 Mese fa #5863 da Lyr!C
Risposta da Lyr!C al topic multilingual site

SLV ha scritto:
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 ha scritto: 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) .

File allegato:

Allegati:

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • SLV
  • Junior Member
  • Junior Member
Di più
11 Anni 1 Mese fa #5870 da SLV
Risposta da SLV al topic multilingual site

...you have to activate subtitle description

Thanks for the clarification. It works.

Si prega Accedi o Crea un account a partecipare alla conversazione.

  • Lyr!C
  • Avatar di Lyr!C
  • Administrator
  • Administrator
  • Lead Developer
Di più
11 Anni 1 Mese fa #5880 da Lyr!C
Risposta da Lyr!C al topic multilingual site

SLV ha scritto:

...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) .

File allegato:

Si prega Accedi o Crea un account a partecipare alla conversazione.

Moderatori: Lyr!C
Tempo creazione pagina: 0.143 secondi

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new