Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

multilingual date format

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
sylvie
Smarty Rookie


Joined: 02 Oct 2003
Posts: 7

PostPosted: Wed Mar 31, 2004 11:50 pm    Post subject: multilingual date format Reply with quote

We are using a prefilter for translation that works pretty well {tr}.
One point that is still not managed in smarty, so slows down the process is the date format. Each language has its own date format.
I will like to do something like that
{$date|date_format:{tr}"%A, %B %e, %Y"{/tr}}
it doesn't work.
I try too something like that
{$date|date_format:{$my_date_format}}
with a $my_date_format=$smarty->fetch("...")
it doesn't work too
Perhaps, it is only a syntax error.
Thanks for your help
sylvie
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Thu Apr 01, 2004 7:38 am    Post subject: Reply with quote

{$date|date_format:$my_date_format}
should work with an assigned $my_date_format.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP