[entropy.i18n] fix _ function, revert previous changes

This commit is contained in:
Fabio Erculiani
2009-08-07 23:36:50 +02:00
parent 062e2a4d28
commit b147aa4f85

View File

@@ -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):
"""