Re: imported tuples/variables don't get translated

2011-02-08 Thread Ivo Brodien
hey Marcos, > Are you doing: from django.utils.translation import ugettext_lazy as _ ? > or: from django.utils.translation import ugettext as _ ? > > The first one shoud work. Indeed I used ugettext instead of ugettext_lazy Thanks! -- You received this message because you are subscribed to

Re: imported tuples/variables don't get translated

2011-02-08 Thread Marcos Moyano
Are you doing: from django.utils.translation import ugettext_lazy as _ ? or: from django.utils.translation import ugettext as _ ? The first one shoud work. Rgds, Marcos On Tue, Feb 8, 2011 at 7:11 PM, Ivo Brodien wrote: > If I import some tuple which is used for choices in a

imported tuples/variables don't get translated

2011-02-08 Thread Ivo Brodien
If I import some tuple which is used for choices in a forms.RadioSelect widget, then the choices don’t get translated models.py: BOOL_CHOICES = ((True, _(u'Yes')), (False, _(u'No'))) forms.py: from models import BOOL_CHOICES 1) does work an translates the choices