Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions/cpsection/language/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/cpsection/language/model.py')
-rw-r--r--extensions/cpsection/language/model.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/extensions/cpsection/language/model.py b/extensions/cpsection/language/model.py
index 6b4d2db..4f3686f 100644
--- a/extensions/cpsection/language/model.py
+++ b/extensions/cpsection/language/model.py
@@ -25,7 +25,7 @@ import locale
from gettext import gettext as _
import subprocess
-_default_lang = 'en_US.utf8'
+_default_lang = '%s.%s' % locale.getdefaultlocale()
_standard_msg = _("Could not access ~/.i18n. Create standard settings.")
def read_all_languages():
@@ -53,9 +53,6 @@ def read_all_languages():
return locales
def _initialize():
- global _default_lang
- _default_lang = '%s.%s' % locale.getdefaultlocale()
-
if set_languages.__doc__ is None:
# when running under 'python -OO', all __doc__ fields are None,
# so += would fail -- and this function would be unnecessary anyway.