projects
/
mussorgsky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d908b
)
Initialize 'languages' var always
author
Ivan Frade
<ivan.frade@nokia.com>
Fri, 11 Feb 2011 10:21:28 +0000
(12:21 +0200)
committer
Ivan Frade
<ivan.frade@nokia.com>
Fri, 11 Feb 2011 10:21:28 +0000
(12:21 +0200)
In some cases (locales like Egypt ?) this was causing a crash
http://talk.maemo.org/showpost.php?p=908435&postcount=36
src/i18n.py
patch
|
blob
|
history
diff --git
a/src/i18n.py
b/src/i18n.py
index
210b53c
..
8ccb471
100644
(file)
--- a/
src/i18n.py
+++ b/
src/i18n.py
@@
-25,6
+25,7
@@
DEFAULT_LANGUAGES = os.environ.get('LANG', '').split(':')
DEFAULT_LANGUAGES += ['en_US']
# Try to get the languages from the default locale
+languages = []
lc, encoding = locale.getdefaultlocale()
if lc:
languages = [lc]