Hi,
Why reset it at the end of your module?
Why not use ugettext_lazy everywhere?
from django.utils.translation import ugettext_lazy as _
(Disclaimer: I've never used translations before :)
Collin
On Saturday, January 24, 2015 at 3:46:31 AM UTC-5, Torsten Bronger wrote:
>
> Hallöchen!
>
> Thi
Hallöchen!
This is not about where to use ugettext/ugettext_lazy. I know
that. :-)
But I was fed up with all those "_ = ugettext" scattered in my code
and tried to find a more systematic approach. The following test
program runs through:
ugettext = lambda x: x
ugettext_lazy = lambda x
2 matches
Mail list logo