Hi everyone.
I've just added the current date tag to a template of my web site. The date is displaied in english. I would like to display it in italian. Is there a way to do this? I suppose that this problem has already been covered before, but I couldn't find anything in previous messages, and I didn't understand the help. Can you help me? Thanks in advance.
Current date
-
palmstrom
Re: Current date
Look on help to current_date tag in "modules" in "extensions" in administration console. You can customize format of date.
If you want names of months in Italian, than it will be probably simplest to modify plugins/function.current_date.php as described here: http://www.php.net/manual/en/function.s ... p#AEN26621
If you want names of months in Italian, than it will be probably simplest to modify plugins/function.current_date.php as described here: http://www.php.net/manual/en/function.s ... p#AEN26621
Re: Current date
Hi.
Unfortunately I have almost no experience with PHP and I couldn't understand that help. Finally I found something easier for me and I added the command
setlocale(LC_TIME,"it_IT");
to the file index.php right after "?PHP". Now everything works correctly. Of course I should learn more of PHP but...
Thank you very much for your reply.
Bye.
Unfortunately I have almost no experience with PHP and I couldn't understand that help. Finally I found something easier for me and I added the command
setlocale(LC_TIME,"it_IT");
to the file index.php right after "?PHP". Now everything works correctly. Of course I should learn more of PHP but...
Thank you very much for your reply.
Bye.
Gigi
Re: Current date
There is also a locale setting in config.php that SHOULD do the same thing.
Re: Current date
Hi!
I'm using CMSMS v. 0.9.2 and I couldn't find that string in config.php. Anyway I've added it and it works fine now.
Thank you very much for your help.
Bye.
I'm using CMSMS v. 0.9.2 and I couldn't find that string in config.php. Anyway I've added it and it works fine now.
Thank you very much for your help.
Bye.
Gigi

