From 95fa2717121bf6c9fc488ccb78087a5aa7f60b4e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Wed, 2 Sep 2009 08:12:18 +0200 Subject: [PATCH] [entropy.i18n] trivial fixes to TEXTDOMAINDIR support --- libraries/entropy/i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/i18n.py b/libraries/entropy/i18n.py index 555e96dca..669b9f035 100644 --- a/libraries/entropy/i18n.py +++ b/libraries/entropy/i18n.py @@ -34,7 +34,7 @@ try: envdir = os.getenv('TEXTDOMAINDIR') if envdir is not None: localedir = envdir - gettext.install('entropy', localedir = envdir, unicode = True) + gettext.install('entropy', localedir = localedir, unicode = True) # do not use gettext.gettext because it returns str instead of unicode _ = _ @@ -68,7 +68,7 @@ def change_language(lang): # remove _ from global scope so that gettext will readd it old_ = _ del _ - gettext.install('entropy', localedir = envdir, unicode = True) + gettext.install('entropy', localedir = localedir, unicode = True) _ = _ # redeclare "_" in all loaded modules for module in sys.modules.values():