From 2c533b3a05d05135ff955d7ddae26a8c6f632c80 Mon Sep 17 00:00:00 2001 From: Jonathan Ballet Date: Wed, 3 Sep 2014 12:26:09 +0200 Subject: [PATCH] i18n: use gettext.bindtextdomain() instead of locale's one It doesn't work on OSX (per #67) and even so, the documentation says it should not be used unless in specific cases, which we are not considering in Sonata. For more information, see https://docs.python.org/3/library/locale.html#access-to-message-catalogs --- sonata/launcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonata/launcher.py b/sonata/launcher.py index 0ea31826..9edc607d 100644 --- a/sonata/launcher.py +++ b/sonata/launcher.py @@ -30,7 +30,6 @@ sys.exit(1) import gettext -import locale import logging import os import platform @@ -103,7 +102,7 @@ def run(): gettext.install('sonata', locales_path, names=["ngettext"]) gettext.textdomain('sonata') - locale.bindtextdomain('sonata', locales_path) + gettext.bindtextdomain('sonata', locales_path) ## Check initial dependencies: