Re: Disable i18n for certain templates

2008-10-23 Thread Malcolm Tredinnick
On Tue, 2008-10-21 at 10:07 -0700, Armandas wrote: > Hi, > > I am using internationalization on my project. Recently I found out > that output from date filter is not in english. The point is, that I > use this to construct pubDate for my rss, like this: > > {{ post.date|date:"D, d M Y H:i:s"

Re: Disable i18n for certain templates

2008-10-23 Thread Gerard Petersen
The answer to the Q in the subject would be not to use the {% trans .. %} or {% load i18n %} tags in your template .. :) Armandas wrote: > Hi, > > I am using internationalization on my project. Recently I found out > that output from date filter is not in english. The point is, that I > use

Re: Disable i18n for certain templates

2008-10-23 Thread Gerard Petersen
Armandas, Not exactly sure what you mean ... imho: when working properly your date should be not formatted in your template but before that. When you are working with locales for instance. You might want to look at templatetags, then you can use {% your_own_tag %} and have it build a

Disable i18n for certain templates

2008-10-21 Thread Armandas
Hi, I am using internationalization on my project. Recently I found out that output from date filter is not in english. The point is, that I use this to construct pubDate for my rss, like this: {{ post.date|date:"D, d M Y H:i:s" }} GMT and i18n just screws things up here. Is there any proper