: Date function in other languages. : aviva April 23, 2009, 08:30:13 AM There have been several questions on how to change the date on top to a different language.
I did it as follows: Replace <?php echo date("l");?>, <?php echo date("F j, Y");?> in the index.php With <?php echo JHTML::_('date', 'now', JText::_('DATE_FORMAT_LC')) ?> It's using the Joomla DATE_FORMAT_LC as defined in the language ini file, ie pl-PL.ini, nl-NL.ini, fr-FR.ini, en-GB.ini, en-US.ini etc. This is my first post so I though to keep it positive ;). Hint for the Shape5 team: why not make this standard? It will work for any language and avoid many questions and frustrations 8). : Re: Date function in other languages. : jonahh April 24, 2009, 02:45:36 PM Thanks for the tip! We've updated the downloads to reflect this change.
: Re: Date function in other languages. : ylevel December 06, 2011, 07:54:24 AM Seems it hasn't been implemented yet - I had this tip working on Joomla 1.7.3 - thanks :-)
|