diff options
author | Matt Wilson <msw@redhat.com> | 2001-09-07 21:59:58 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-09-07 21:59:58 +0000 |
commit | d240ebd392af2075d856289f77a6cf94db3ac150 (patch) | |
tree | 702dfdb2ee5ee7a398ba4bff8356c3127c40e69a /language.py | |
parent | 99ad53b85e9d3e4320a540eee72dbe1bd18a7a1c (diff) | |
download | anaconda-d240ebd392af2075d856289f77a6cf94db3ac150.tar.gz anaconda-d240ebd392af2075d856289f77a6cf94db3ac150.tar.xz anaconda-d240ebd392af2075d856289f77a6cf94db3ac150.zip |
set locale after user selects language (#53401)
Diffstat (limited to 'language.py')
-rw-r--r-- | language.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/language.py b/language.py index c3e383ca2..4a2df41ee 100644 --- a/language.py +++ b/language.py @@ -1,5 +1,6 @@ import os import string +import locale from simpleconfig import SimpleConfigFile import rpm from translate import cat @@ -115,9 +116,9 @@ class InstallTimeLanguage: self.setRuntimeDefaults(name) lang = self.langNicks[name] - os.environ["LC_ALL"] = lang os.environ["LANG"] = lang os.environ["LC_NUMERIC"] = 'C' + locale.setlocale(locale.LC_ALL, "") newlangs = [lang] if len(lang) > 2: |