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.
Date language (how to change months names)
Re: Date language (how to change months names)
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.
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)
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.
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)
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...
And I think there is a locale setting in config.php...
Re: Date language (how to change months names)
Of course the server needs to support that locale...
Re: Date language (how to change months names)
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
http://www.zend.com/codex.php?id=1200&single=1
Re: Date language (how to change months names)
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.

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