On Wed, May 20, 2009 at 12:01 PM, Dmitriy Sodrianov <sodr...@gmail.com>wrote:

>
> Hi, there!
>
> I've configured bilingual site. At this site some forms are present.
> All the forms field 'verbose_name' attribute are marked with ugettext
> utility.
>
> The problem is that when language is changed labels for form's fields
> does not change.
>
> All the localization files are provided and properly configured.
>
> Is that somehow related to cache of page? Tried to use never_cache
> decorator, didn't help.
> >
>
You need to use ugettext_lazy, since strings for fields are defined at the
module level and are therefore evaluated when the class is compiled.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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