+1 to Alberto's suggestion.

The gettext function transparently calls lazy_gettext if the local
request is unavailable. This should clear up the confusion. We do the
same with ngettext/lazy_ngettext. The _ alias still stands for gettext.
Of course, if you want to explicity use lazy_gettext you just have

from turbogears.i18n import lazy_gettext as _

in your module.

Bob:I also found problems using lazy_gettext for FormEncode messages,
as FE does not handle unicode (though a more complete i18n fix for FE
will be along soon).

Reply via email to