From b147aa4f857423902833b3b4e5dea0b9544cd80c Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 7 Aug 2009 23:36:50 +0200 Subject: [PATCH] [entropy.i18n] fix _ function, revert previous changes --- libraries/entropy/i18n.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/i18n.py b/libraries/entropy/i18n.py index e45b4f038..3f9735fd3 100644 --- a/libraries/entropy/i18n.py +++ b/libraries/entropy/i18n.py @@ -31,8 +31,10 @@ try: gettext.bindtextdomain('entropy', '/usr/share/locale') gettext.textdomain('entropy') gettext.install('entropy', unicode=True) - # thanks weirdness! - _ = gettext.gettext + + # do not use gettext.gettext because it returns str instead of unicode + _ = _ + except (ImportError,OSError,): def _(raw_string): """