Ok remain two minor issue:

1) http://code.djangoproject.com/ticket/5494
2) ugettext_lazy are not json serializable so when I use transaltion
to populate ajax widgets I have to explicitily convert to unicode, but
this is really a minor issue

any eta for 1)? will be in django 1.1, still the same issue with
django trunk

thanks
drakkan1000

On 13 Apr, 22:43, drakkan <drakkan1...@gmail.com> wrote:
> ok I'll try it,
>
> thanks
> drakkan1000
>
> On 13 Apr, 22:39, Alex Gaynor <alex.gay...@gmail.com> wrote:
>
> > 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