Changing date format in multilanguage?!?
Posted: Thu May 24, 2007 7:45 am
Is it possible to change date format in news when changing language in multilanguage, and if yes... How?
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Add a new UDT mle_dateformat:jmansa wrote: Is it possible to change date format in news when changing language in multilanguage, and if yes... How?
Code: Select all
global $hl;
if($hl == 'it') echo '%d %m %Y';
elseif($hl == 'en') echo '%m %d %Y';
Code: Select all
{capture name=hldateformat}{mle_dateformat}{/capture}
Code: Select all
{news dateformat=$smarty.capture.hldateformat}