tiramisu/i18n.py : Removing call of gettext.install
This call make translation fail in gen_config, the new way to use gettext don't need to use this call. Conflicts: tiramisu/i18n.py
This commit is contained in:
parent
44c96f3a60
commit
8f950620f7
|
@ -42,11 +42,6 @@ if lc:
|
||||||
languages += DEFAULT_LANG
|
languages += DEFAULT_LANG
|
||||||
mo_location = LOCALE_DIR
|
mo_location = LOCALE_DIR
|
||||||
|
|
||||||
|
|
||||||
if sys.version_info[0] >= 3: # pragma: optional cover
|
|
||||||
gettext.install(True, localedir=None)
|
|
||||||
else: # pragma: optional cover
|
|
||||||
gettext.install(True, localedir=None, unicode=1)
|
|
||||||
gettext.find(APP_NAME, mo_location)
|
gettext.find(APP_NAME, mo_location)
|
||||||
gettext.textdomain(APP_NAME)
|
gettext.textdomain(APP_NAME)
|
||||||
gettext.bind_textdomain_codeset(APP_NAME, "UTF-8")
|
gettext.bind_textdomain_codeset(APP_NAME, "UTF-8")
|
||||||
|
|
Loading…
Reference in New Issue