Re: Wanted: Best practices for setting "_" (to ugettext/ugettext_lazy)

2015-01-27 Thread Collin Anderson
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

Wanted: Best practices for setting "_" (to ugettext/ugettext_lazy)

2015-01-24 Thread Torsten Bronger
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