Re: date translation

2010-09-09 Thread Kenneth Gonsalves
On Thu, 2010-09-09 at 06:59 -0700, imgrey wrote: > in locale/no/LS_MESSAGES/django.po > msgid "DATETIME_FORMAT" > msgstr "" this has nothing to do with the format to be used - this just translates the word 'DATETIME FORMAT' into norwegian -- regards Kenneth Gonsalves -- You received this messa

date translation

2010-09-09 Thread imgrey
Does someone have an idea why django might not display date and time in selected language ? In settings.py: USE_L10N = True USE_L18N = True LANGUAGE_CODE = 'no' LANGUAGES = ( ('no', u'Norwegian'), ('en', u'English'), ) in template: {% load i18n %} {{ variable_with_date|date:_("DATETIM

Re: i18n: date translation in Python

2009-12-22 Thread Bill Freeman
My first guess is that you create a custom template tag that rebinds the language while rendering its content, then restores it when it returns. On Tue, Dec 22, 2009 at 3:29 AM, Baurzhan Ismagulov wrote: > Hello Itay, > > On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote: >> Maybe

Re: i18n: date translation in Python

2009-12-22 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-12-22, o godz. 12:39, przez Jarek Zgoda: > Wiadomość napisana w dniu 2009-12-22, o godz. 09:29, przez Baurzhan > Ismagulov: > >>> Maybe what I did can help you: in case you want to put the day name >>> in >>> the template you can put a proper date for each day and j

Re: i18n: date translation in Python

2009-12-22 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-12-22, o godz. 09:29, przez Baurzhan Ismagulov: >> Maybe what I did can help you: in case you want to put the day name >> in >> the template you can put a proper date for each day and just put into >> the template for each day: >> {{ day|date: "l" }} >> day is a

Re: i18n: date translation in Python

2009-12-22 Thread Itay Donenhirsch
ah, donno about same page... On Tue, Dec 22, 2009 at 10:29 AM, Baurzhan Ismagulov wrote: > Hello Itay, > > On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote: >> Maybe what I did can help you: in case you want to put the day name in >> the template you can put a proper date for each

Re: i18n: date translation in Python

2009-12-22 Thread Baurzhan Ismagulov
Hello Itay, On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote: > Maybe what I did can help you: in case you want to put the day name in > the template you can put a proper date for each day and just put into > the template for each day: > {{ day|date: "l" }} > day is a datetime.date

Re: i18n: date translation in Python

2009-12-22 Thread Itay Donenhirsch
Hi, Maybe what I did can help you: in case you want to put the day name in the template you can put a proper date for each day and just put into the template for each day: {{ day|date: "l" }} day is a datetime.date object. that should give the proper day name according to the locale you set in set

i18n: date translation in Python

2009-12-20 Thread Baurzhan Ismagulov
Hello, I'd like to have translated week days in a bilingual (printed) form. Since templates support only one language, I want to do that in Python for now. I've looked at django.templates.defaultfilters.date and tried the following in my views.py: from django.utils.dateformat import format

Re: Unexpected date translation

2007-10-03 Thread Dirk Eschler
On Mittwoch, 3. Oktober 2007, Malcolm Tredinnick wrote: > On Wed, 2007-10-03 at 15:37 +0200, Dirk Eschler wrote: > > Hi, > > > > i'm using a date based generic on a multi-language website. When the > > online language is set to German, {{ date|date:"M"|lower }} returns a > > localized value - "mär

Re: Unexpected date translation

2007-10-03 Thread Malcolm Tredinnick
On Wed, 2007-10-03 at 15:37 +0200, Dirk Eschler wrote: > Hi, > > i'm using a date based generic on a multi-language website. When the online > language is set to German, {{ date|date:"M"|lower }} returns a localized > value - "mär" instead of "mar" that is. This breaks the link i intend to > b

Unexpected date translation

2007-10-03 Thread Dirk Eschler
Hi, i'm using a date based generic on a multi-language website. When the online language is set to German, {{ date|date:"M"|lower }} returns a localized value - "mär" instead of "mar" that is. This breaks the link i intend to build. Can the localisation be turned of somehow in this case? Bes