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
day = format(date, arg)
This returns the name of the day, albeit in English. How can I set the
target language? Is django.utils.dateformat a part of a published API
(I couldn't find anything about it in 1.0 docs)? Or are there better
ways to do that?
Thanks in advance,
--
Baurzhan Ismagulov
http://www.kz-easy.com/
--
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.