Friday, January 28, 2011

Force locale in Template?

I have an email template in more than one language, how can I force a value to be localized to a specific language?

I saw the localize on/off filter tag, but that is not what I need. I need to do something like this, so I am independent of the current Language ot the user.

{{ event.start_date | localize "en" }}
{{ event.start_date | localize "de" }}


Is there sth. like this built in?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment