diff options
author | Chris Lumens <clumens@redhat.com> | 2005-04-13 18:54:39 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-04-13 18:54:39 +0000 |
commit | 2634794d3866667e1e897c1cf2b1be34b4009f75 (patch) | |
tree | 444fef5783d043e1c5069c888de0fcde86cbed60 | |
parent | 2e1d6920edb7b4e226c691fca61c35b2961e0b45 (diff) | |
download | anaconda-2634794d3866667e1e897c1cf2b1be34b4009f75.tar.gz anaconda-2634794d3866667e1e897c1cf2b1be34b4009f75.tar.xz anaconda-2634794d3866667e1e897c1cf2b1be34b4009f75.zip |
Don't set the list of supported languages in Language.__init__ by default.
Instead, only set this list in the install interfaces if kickstart hasn't
taken care of it already.
-rwxr-xr-x | gui.py | 6 | ||||
-rw-r--r-- | language.py | 1 | ||||
-rw-r--r-- | text.py | 8 |
3 files changed, 11 insertions, 4 deletions
@@ -761,7 +761,11 @@ class InstallInterface: id.fsset.registerMessageWindow(self.messageWindow) id.fsset.registerProgressWindow(self.progressWindow) id.fsset.registerWaitWindow(self.waitWindow) - id.instLanguage.setSupported([id.instLanguage.getDefault()]) + + # Don't set if kickstart already set up a supported lang list. + if not id.instLanguage.getSupported(): + id.instLanguage.setSupported([id.instLanguage.getDefault()]) + parted.exception_set_handler(partedExceptionWindow) self.icw = InstallControlWindow (self, self.dispatch, id) diff --git a/language.py b/language.py index b2ca0547a..caf30f4b0 100644 --- a/language.py +++ b/language.py @@ -116,7 +116,6 @@ class Language: # Set the language for anaconda to be using based on current $LANG. self.setRuntimeLanguage(self.current) self.setDefault(self.current) - self.setSupported([self.current]) # Convert what might be a shortened form of a language's nick (en or # en_US, for example) into the full version (en_US.UTF-8). If we @@ -436,8 +436,12 @@ class InstallInterface: id.fsset.registerMessageWindow(self.messageWindow) id.fsset.registerProgressWindow(self.progressWindow) id.fsset.registerWaitWindow(self.waitWindow) - id.instLanguage.setSupported([id.instLanguage.getDefault()]) - parted.exception_set_handler(self.partedExceptionWindow) + + # Don't set if kickstart already set up a supported lang list. + if not id.instLanguage.getSupported(): + id.instLanguage.setSupported([id.instLanguage.getDefault()]) + + parted.exception_set_handler(self.partedExceptionWindow) lastrc = INSTALL_OK (step, args) = dispatch.currentStep() |