mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3 compat: forgot to port oneinstance of ungettext
This commit is contained in:
parent
d775ae3582
commit
362597ac87
@ -112,7 +112,7 @@ def load_translations(namespace, zfp):
|
|||||||
trans = _translations_cache[zfp] = GNUTranslations(BytesIO(mo))
|
trans = _translations_cache[zfp] = GNUTranslations(BytesIO(mo))
|
||||||
|
|
||||||
namespace['_'] = getattr(trans, 'gettext' if ispy3 else 'ugettext')
|
namespace['_'] = getattr(trans, 'gettext' if ispy3 else 'ugettext')
|
||||||
namespace['ngettext'] = trans.ungettext
|
namespace['ngettext'] = getattr(trans, 'ngettext' if ispy3 else 'ungettext')
|
||||||
|
|
||||||
|
|
||||||
class PluginLoader(object):
|
class PluginLoader(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user