From 57b65ce46de7bcedbd56566b8a3a40020d762b9e Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Fri, 11 Feb 2011 12:21:28 +0200 Subject: [PATCH 1/1] Initialize 'languages' var always In some cases (locales like Egypt ?) this was causing a crash http://talk.maemo.org/showpost.php?p=908435&postcount=36 --- src/i18n.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/i18n.py b/src/i18n.py index 210b53c..8ccb471 100644 --- 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] -- 1.7.9.5