Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Internationalization

More
IP: 85.86.24.187 14 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
Code:
// 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!
More
IP: 207.229.131.129 14 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.