summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-08-28 11:15:00 -0400
committerChris Lumens <clumens@redhat.com>2009-09-02 10:35:19 -0400
commit3f97f7795203fa21eb450c45537ab6da74c661aa (patch)
tree35e9a50f1c799d90e98c48651eed8d4105e7e48e /anaconda
parent966175a6262407e86fa98e5b43b1556e324a4b1f (diff)
downloadanaconda-3f97f7795203fa21eb450c45537ab6da74c661aa.tar.gz
anaconda-3f97f7795203fa21eb450c45537ab6da74c661aa.tar.xz
anaconda-3f97f7795203fa21eb450c45537ab6da74c661aa.zip
Simplify language.py to two basic settings, and a lot of support (#517569).
There's now just two important settings in the Language module: instLang, which is the language used while anaconda is running; and systemLang, which is the language the installed system itself will use. These two can be different mainly due to anaconda's text mode interface. The rest of anaconda should only set and get these two. All the other support functions still exist for grabbing timezone, font, etc.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda4
1 files changed, 2 insertions, 2 deletions
diff --git a/anaconda b/anaconda
index 705edca24..384a0e761 100755
--- a/anaconda
+++ b/anaconda
@@ -933,8 +933,8 @@ if __name__ == "__main__":
# this is lame, but make things match what we expect (#443408)
opts.lang = opts.lang.replace(".utf8", ".UTF-8")
anaconda.dispatch.skipStep("language", permanent = 1)
- anaconda.id.instLanguage.setRuntimeLanguage(opts.lang)
- anaconda.id.instLanguage.setDefault(opts.lang)
+ anaconda.id.instLanguage.instLang = opts.lang
+ anaconda.id.instLanguage.systemLang = opts.lang
anaconda.id.timezone.setTimezoneInfo(anaconda.id.instLanguage.getDefaultTimeZone())
if opts.keymap: