projects
/
mussorgsky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81f6a18
)
Use LANG and correct locale dir to load translations
author
Ivan Frade
<ivan.frade@nokia.com>
Thu, 22 Apr 2010 15:57:00 +0000
(18:57 +0300)
committer
Ivan Frade
<ivan.frade@nokia.com>
Thu, 22 Apr 2010 15:57:00 +0000
(18:57 +0300)
src/i18n.py
patch
|
blob
|
history
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,
- '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