Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file Internationalization

More
12 years 5 months ago #523 by Davidbf
Internationalization was created by Davidbf
Hi,
I am going to use that great module. To internationalize the front-end with only 3 vars is enough:
MOD_LATESTNEWSENHANCED_DAYSAGO
MOD_LATESTNEWSENHANCED_TODAY
MOD_LATESTNEWSENHANCED_YESTERDAY
With today and yesterday there is no problem, but with days ago, depending on the language, the number of days can go in the begining, middle or end (for example, in spanish go in the middle).
I make a small change in the file:
/tmps/default.php
// line 141
//$div_extra .= $item->ago.' '.JText::_('MOD_LATESTNEWSENHANCED_DAYSAGO');
$div_extra .= JText::sprintf('MOD_LATESTNEWSENHANCED_DAYSAGO', $item->ago);					

And in the language file I put:
%s days ago

Thanks!

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

More
12 years 5 months ago #524 by admin
Replied by admin on topic Re: Internationalization
Thank you very much, it is a better way to internationalize the 'days ago' feature, indeed. Thank you very much for sharing this and making the module even better. I will include your suggested code into the next update.

Olivier.

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