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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/cpsection/language/model.py b/extensions/cpsection/language/model.py
index fe80410..6b4d2db 100644
--- a/extensions/cpsection/language/model.py
+++ b/extensions/cpsection/language/model.py
@@ -21,6 +21,7 @@
#
import os
+import locale
from gettext import gettext as _
import subprocess
@@ -52,6 +53,9 @@ 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.