Main menu

Forum


× Help Forum English

[VIEWED] multilingual site

  • SLV
  • Junior Member
  • Junior Member
More
11 years 1 month ago #5610 by SLV
Replied by SLV on topic multilingual site

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

Please Log in or Create an account to join the conversation.

  • SLV
  • Junior Member
  • Junior Member
More
11 years 1 month ago #5803 by SLV
Replied by SLV on topic multilingual site
Mr. Lyr!C

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

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 month ago #5806 by Lyr!C
Replied by Lyr!C on topic multilingual site

SLV wrote: 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 Attachment:

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 month ago #5826 by Lyr!C
Replied by Lyr!C on 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 Attachment:

Please Log in or Create an account to join the conversation.

  • SLV
  • Junior Member
  • Junior Member
More
11 years 1 month ago #5829 by SLV
Replied by SLV on 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... ;)

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 month ago #5848 by Lyr!C
Replied by Lyr!C on topic multilingual site

SLV wrote:

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 wrote: 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 wrote: 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 wrote: - 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 Attachment:

Please Log in or Create an account to join the conversation.

  • SLV
  • Junior Member
  • Junior Member
More
11 years 1 month ago - 11 years 1 month ago #5859 by SLV
Replied by SLV on 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.
Attachments:
Last edit: 11 years 1 month ago by SLV.

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 month ago #5863 by Lyr!C
Replied by Lyr!C on topic multilingual site

SLV wrote:
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 wrote: 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 Attachment:

Attachments:

Please Log in or Create an account to join the conversation.

  • SLV
  • Junior Member
  • Junior Member
More
11 years 1 month ago #5870 by SLV
Replied by SLV on topic multilingual site

...you have to activate subtitle description

Thanks for the clarification. It works.

Please Log in or Create an account to join the conversation.

  • Lyr!C
  • Lyr!C's Avatar
  • Administrator
  • Administrator
  • Lead Developer
More
11 years 1 month ago #5880 by Lyr!C
Replied by Lyr!C on topic multilingual site

SLV wrote:

...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 Attachment:

Please Log in or Create an account to join the conversation.

Moderators: Lyr!C
Time to create page: 0.185 seconds

 

Follow Us

Create your Joomla templates with Template Creator CK

acymailing logo new