Page 1 of 1
Date language (how to change months names)
Posted: Wed Sep 27, 2006 8:08 am
by Cieska
In my web site template i have inserted line {current_date format="%A, %b %d d."}
My site global seetings is Lithuanian language. My date shows in Lithuanian language. I would like to correct a little bit Lithuanian words in this data but i don't know where is the file. I would like to change all seven days names and months.
Please help me.
Re: Date language (how to change months names)
Posted: Wed Sep 27, 2006 8:54 am
by Dee
The formatted date is generated by PHP (see the help for the current_date tag):
http://www.php.net/strftime
You'd have to set the proper locale and I think PHP must be compiled with support for your locale to support localized date strings.
Re: Date language (how to change months names)
Posted: Wed Sep 27, 2006 9:09 am
by Cieska
Thanks for your answer.
But i think it must be way to change this date.
Maybe exist small script and i need only insert php code to my web site and then i will see correct date.
Re: Date language (how to change months names)
Posted: Wed Sep 27, 2006 9:16 am
by tsw
Well thats what dee said. You need to set up right locale (with a small php oneliner)
And I think there is a locale setting in config.php...
Re: Date language (how to change months names)
Posted: Wed Sep 27, 2006 9:17 am
by tsw
Of course the server needs to support that locale...
Re: Date language (how to change months names)
Posted: Wed Sep 27, 2006 9:18 am
by Dee
If that doesn't work you can try implementing this class (or create something similar):
http://www.zend.com/codex.php?id=1200&single=1
Re: Date language (how to change months names)
Posted: Wed Apr 15, 2009 2:18 pm
by salva_gl
Hi, I've tried the option that 'tsw" said, and that work fine!

thanks
In the config.php file edit this line (change the locale 'es_ES' for yours):
$config['locale'] = 'es_ES';
Thanks.