ah, donno about same page... On Tue, Dec 22, 2009 at 10:29 AM, Baurzhan Ismagulov <i...@radix50.net> 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 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 settings.py. > > How can I get this to work for two languages on the same page? > > With kind regards, > Baurzhan. > > >> On Sun, Dec 20, 2009 at 7:53 PM, Baurzhan Ismagulov <i...@radix50.net> wrote: >> > 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 django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.