py3 compat: forgot to port oneinstance of ungettext

This commit is contained in:
Kovid Goyal 2019-12-17 18:13:12 +05:30
parent d775ae3582
commit 362597ac87
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -112,7 +112,7 @@ def load_translations(namespace, zfp):
trans = _translations_cache[zfp] = GNUTranslations(BytesIO(mo))
namespace['_'] = getattr(trans, 'gettext' if ispy3 else 'ugettext')
namespace['ngettext'] = trans.ungettext
namespace['ngettext'] = getattr(trans, 'ngettext' if ispy3 else 'ungettext')
class PluginLoader(object):