Tomas, you are right. This fixed the problem for me.

Thanks so much!

Op zondag 23 september 2012 03:18:53 UTC+2 schreef Tomas Neme het volgende:
>
> you probably are using ugettext and should be using ugettext_lazy 
>
> On Sat, Sep 22, 2012 at 8:44 PM, Patrick <patric...@gmail.com<javascript:>> 
> wrote: 
> > When I change language on my Django-powered site, everything works fine 
> > except the translation of the field descriptions in the forms. The 
> > description is still displayed in the old language. Only the forms 
> already 
> > visited that session are affected. 
> > 
> > It seems like some sort of caching problem, but I don't use any caching 
> (as 
> > far as I know) and all other parts of the site behave as expected 
> (templates 
> > and random text using django.utils.translaction.ugettext work just 
> fine). 
> > 
> > Summarized: 
> > 
> > When I open the site and change language, and then visit a form: 
> everything 
> > works as expected. All text is translated. 
> > When I visit a form, change language and return to the form: everything 
> is 
> > translated, but the form stays in the old language. 
> > Restarting the web server forces the language to change: then Django 
> behaves 
> > as in (1) for the current session. Until the language is changed again. 
> > 
> > Help is appreciated! 
> > 
> > Kind regards, Patrick 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Django users" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/django-users/-/P3sRNFd-aaAJ. 
> > To post to this group, send email to 
> > django...@googlegroups.com<javascript:>. 
>
> > To unsubscribe from this group, send email to 
> > django-users...@googlegroups.com <javascript:>. 
> > For more options, visit this group at 
> > http://groups.google.com/group/django-users?hl=en. 
>
>
>
> -- 
> "The whole of Japan is pure invention. There is no such country, there 
> are no such people" --Oscar Wilde 
>
> |_|0|_| 
> |_|_|0| 
> |0|0|0| 
>
> (\__/) 
> (='.'=)This is Bunny. Copy and paste bunny 
> (")_(") to help him gain world domination. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/FUJQ5m8q_JUJ.
To post to this group, send email to django-users@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.

Reply via email to