mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1247466 [Plugin Translation needs ugettext](https://bugs.launchpad.net/calibre/+bug/1247466)
This commit is contained in:
parent
9bc88ee95a
commit
6b8ca10f6a
@ -102,8 +102,8 @@ def load_translations(namespace, zfp):
|
||||
from io import BytesIO
|
||||
trans = _translations_cache[zfp] = GNUTranslations(BytesIO(mo))
|
||||
|
||||
namespace['_'] = trans.gettext
|
||||
namespace['ngettext'] = trans.ngettext
|
||||
namespace['_'] = trans.ugettext
|
||||
namespace['ngettext'] = trans.ungettext
|
||||
|
||||
class PluginLoader(object):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user