summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgui.py3
-rw-r--r--text.py1
-rw-r--r--todo.py1
3 files changed, 3 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 4d1745fb6..66f6ee83d 100755
--- a/gui.py
+++ b/gui.py
@@ -378,7 +378,8 @@ class InstallControlWindow:
newlangs.append(lang[:2])
self.lang = lang
- os.environ["LC_ALL"] = lang
+ os.environ["LC_ALL"] = lang
+ os.environ["LANG"] = lang
self.locale = lang[:2]
cat.setlangs (newlangs)
diff --git a/text.py b/text.py
index 13dee0c48..4a5940d5d 100644
--- a/text.py
+++ b/text.py
@@ -87,6 +87,7 @@ class LanguageWindow:
os.execv ("/sbin/loader", args)
os.environ["LC_ALL"] = lang
+ os.environ["LANG"] = lang
newlangs = [lang]
if len(lang) > 2:
newlangs.append(lang[:2])
diff --git a/todo.py b/todo.py
index 4071d1274..2e80f5532 100644
--- a/todo.py
+++ b/todo.py
@@ -271,7 +271,6 @@ class Language (SimpleConfigFile):
def set (self, lang):
self.lang = self.langs[lang]
- os.environ["LANG"] = self.langs[lang]
if self.japanesehack:
self.info["LANG"] = "ja_JP.eucJP"
rpm.addMacro("_install_langs", "ja_JP.eucJP")