Use LANG and correct locale dir to load translations
authorIvan Frade <ivan.frade@nokia.com>
Thu, 22 Apr 2010 15:57:00 +0000 (18:57 +0300)
committerIvan Frade <ivan.frade@nokia.com>
Thu, 22 Apr 2010 15:57:00 +0000 (18:57 +0300)
src/i18n.py

index 4b5ae83..aad683d 100644 (file)
@@ -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