From 8f950620f7f22fe545dc2a5a5671b45e37faf71c Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 24 Apr 2014 17:30:52 +0200 Subject: [PATCH] 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 --- tiramisu/i18n.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tiramisu/i18n.py b/tiramisu/i18n.py index a0cb0af..3bc6c17 100644 --- a/tiramisu/i18n.py +++ b/tiramisu/i18n.py @@ -42,11 +42,6 @@ if lc: languages += DEFAULT_LANG 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.textdomain(APP_NAME) gettext.bind_textdomain_codeset(APP_NAME, "UTF-8")