projects
/
mussorgsky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use LANG and correct locale dir to load translations
[mussorgsky]
/
src
/
i18n.py
diff --git
a/src/i18n.py
b/src/i18n.py
index
4b5ae83
..
aad683d
100644
(file)
--- a/
src/i18n.py
+++ b/
src/i18n.py
@@
-5,12
+5,11
@@
import gettext
APP_NAME = "mussorgsky"
APP_DIR = os.path.join (sys.prefix,
APP_NAME = "mussorgsky"
APP_DIR = os.path.join (sys.prefix,
- 'share',
- APP_NAME)
+ 'share')
LOCALE_DIR = os.path.join(APP_DIR, 'locale')
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
DEFAULT_LANGUAGES += ['en_US']
# Init i18n stuff