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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo