From 701ef0135b628b10c479e47ee03106191798235b Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Thu, 22 Apr 2010 18:57:00 +0300 Subject: [PATCH] Use LANG and correct locale dir to load translations --- src/i18n.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/i18n.py b/src/i18n.py index 4b5ae83..aad683d 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -5,12 +5,11 @@ import gettext APP_NAME = "mussorgsky" APP_DIR = os.path.join (sys.prefix, - 'share', - APP_NAME) + 'share') LOCALE_DIR = os.path.join(APP_DIR, 'locale') -DEFAULT_LANGUAGES = os.environ.get('LANGUAGE', '').split(':') +DEFAULT_LANGUAGES = os.environ.get('LANG', '').split(':') DEFAULT_LANGUAGES += ['en_US'] # Init i18n stuff -- 1.7.9.5