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
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
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
3 matches
Mail list logo