Florian Lindner napisaĆ(a):
> I use this line in my template:
>
> <p>geschrieben am {{ entry.creationDate|date:"D, j.n.y, H:i" }}</p>
>
> (geschrieben am == writen at)
>
> It produces output like "Wed, 26.9.07, 16:49"
>
> is there any way I can make this output German which means in this case to
> print Mi instead of Wed?
>
> My local is de_DE.UTF-8 and in my settings.py I have LANGUAGE_CODE = 'de-de'.
>
> Of course it would be best if the template was taking the browser language
> into account.
Give Babel/BabelDjango a try.
http://babel.edgewall.org/
--
Jarek Zgoda
Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101
"We read Knuth so you don't have to." (Tim Peters)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---