This commit is contained in:
Kovid Goyal 2013-11-03 08:31:17 +05:30
parent 9bc88ee95a
commit 6b8ca10f6a

View File

@ -102,8 +102,8 @@ def load_translations(namespace, zfp):
from io import BytesIO from io import BytesIO
trans = _translations_cache[zfp] = GNUTranslations(BytesIO(mo)) trans = _translations_cache[zfp] = GNUTranslations(BytesIO(mo))
namespace['_'] = trans.gettext namespace['_'] = trans.ugettext
namespace['ngettext'] = trans.ngettext namespace['ngettext'] = trans.ungettext
class PluginLoader(object): class PluginLoader(object):