On Mon, Apr 13, 2009 at 4:37 PM, drakkan <drakkan1...@gmail.com> wrote:

>
> I'm using ugettext, I have to use the lazy variant?
>
> On 13 Apr, 21:53, Ramiro Morales <cra...@gmail.com> wrote:
> > On Mon, Apr 13, 2009 at 4:30 PM, drakkan <drakkan1...@gmail.com> wrote:
> >
> > > I found a workaround I have to do:
> >
> > > 'status':_(u.get_status_display())
> >
> > > even if I have already marked the string for translation in models:
> >
> > > STATUS=(
> > >    (1,_('Active')),
> > >    (0,_('Inactive')),
> > > )
> >
> > > this is a really strange behaviour ...
> >
> > To which one of the *gettext* function(s) are the _ alias
> > defined in both models.py and views.py?
> >
> > --
> > Ramiro Moraleshttp://rmorales.net
> >
>
Yes, for any module level strings you need to use the lazy variant.

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