summaryrefslogtreecommitdiffstats
path: root/language.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-08-24 19:50:27 +0000
committerMatt Wilson <msw@redhat.com>2001-08-24 19:50:27 +0000
commit9238f3d7e0b01598ba100a7e1f2dd0f1d1337ade (patch)
tree5e43f575f002a8133f9f69d3dede6fe2588cbc16 /language.py
parent32b52c38b54ce27478c1d514711c4580ec4652f6 (diff)
downloadanaconda-9238f3d7e0b01598ba100a7e1f2dd0f1d1337ade.tar.gz
anaconda-9238f3d7e0b01598ba100a7e1f2dd0f1d1337ade.tar.xz
anaconda-9238f3d7e0b01598ba100a7e1f2dd0f1d1337ade.zip
fix Japanese GUI reconfig mode (SF #51989)
Diffstat (limited to 'language.py')
-rw-r--r--language.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/language.py b/language.py
index 4d712456c..c3e383ca2 100644
--- a/language.py
+++ b/language.py
@@ -26,7 +26,10 @@ def expandLangs(str):
class InstallTimeLanguage:
def __init__ (self):
- self.current = "en_US"
+ if os.environ.has_key("LANG"):
+ self.current = os.environ["LANG"]
+ else:
+ self.current = "en_US"
if os.access("lang-table", os.R_OK):
f = open("lang-table", "r")
elif os.access("/etc/lang-table", os.R_OK):