From 6b8ca10f6af62b52550e88ed8a133cce4c88e5e1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Nov 2013 08:31:17 +0530 Subject: [PATCH] Fix #1247466 [Plugin Translation needs ugettext](https://bugs.launchpad.net/calibre/+bug/1247466) --- src/calibre/customize/zipplugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/customize/zipplugin.py b/src/calibre/customize/zipplugin.py index a5145d8141..044347b613 100644 --- a/src/calibre/customize/zipplugin.py +++ b/src/calibre/customize/zipplugin.py @@ -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):