i18n with ugettext instead of gettext

This commit is contained in:
gwen 2014-04-22 17:36:07 +02:00 committed by Emmanuel Garette
parent 9f3d676280
commit a408a583fb
1 changed files with 4 additions and 1 deletions

View File

@ -52,4 +52,7 @@ gettext.textdomain(APP_NAME)
gettext.bind_textdomain_codeset(APP_NAME, "UTF-8")
gettext.translation(APP_NAME, fallback=True)
_ = gettext.gettext
t = gettext.translation(APP_NAME, fallback=True)
def _(msg):
return t.ugettext(msg)