|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
pitbull1978 Smarty Rookie
Joined: 26 Feb 2004 Posts: 7 Location: Milan - Italy
|
Posted: Wed Mar 10, 2004 10:40 am Post subject: Help about language or locale settings |
|
|
Hi! I've got a problem with language or locale settings in Smarty.
I've used date_format in my templates and I want that the function displays date in italian.
The strange thing is that yesterday the function displayed the date in italian, but today when I came back to office, it displayed the date in english. I want that in Italian !!!
For example I want my date like this:
LUN, 8 Marzo 2004
I formatted it as:
{$mydate|date_format:"%A"|truncate:"3":""|upper}, {$mydate|date_format:"%e %B %Y"}
Today it is displayed as:
WEN, 8 March 2004
...in English !!!
I tryied at the top of the php script before processing everything:
setlocale(LC_ALL,"ita")
or
setlocale(LC_ALL,"it@euro")
but nothing and nothing...
How can I do ? Please help me !!! |
|
Back to top |
|
pitbull1978 Smarty Rookie
Joined: 26 Feb 2004 Posts: 7 Location: Milan - Italy
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|