i18n with ugettext instead of gettext
This commit is contained in:
parent
9f3d676280
commit
a408a583fb
|
@ -52,4 +52,7 @@ gettext.textdomain(APP_NAME)
|
||||||
gettext.bind_textdomain_codeset(APP_NAME, "UTF-8")
|
gettext.bind_textdomain_codeset(APP_NAME, "UTF-8")
|
||||||
gettext.translation(APP_NAME, fallback=True)
|
gettext.translation(APP_NAME, fallback=True)
|
||||||
|
|
||||||
_ = gettext.gettext
|
t = gettext.translation(APP_NAME, fallback=True)
|
||||||
|
|
||||||
|
def _(msg):
|
||||||
|
return t.ugettext(msg)
|
||||||
|
|
Loading…
Reference in New Issue