diff options
author | Chris Lumens <clumens@redhat.com> | 2007-05-15 14:19:18 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-05-15 14:19:18 +0000 |
commit | 2a0d62edd44a05e1f60165f157075269c9517d9a (patch) | |
tree | 2cf4282ef74562abdf506fe6b44dc61236dd1a38 /textw/language_text.py | |
parent | 5f9afe27d5d8723d610612cd5af1fe59e8bff9d3 (diff) | |
download | anaconda-2a0d62edd44a05e1f60165f157075269c9517d9a.tar.gz anaconda-2a0d62edd44a05e1f60165f157075269c9517d9a.tar.xz anaconda-2a0d62edd44a05e1f60165f157075269c9517d9a.zip |
Set the timezone when a new language is selected (#239826).
Diffstat (limited to 'textw/language_text.py')
-rw-r--r-- | textw/language_text.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/textw/language_text.py b/textw/language_text.py index 5f5ccfa44..6740b0be4 100644 --- a/textw/language_text.py +++ b/textw/language_text.py @@ -21,17 +21,18 @@ log = logging.getLogger("anaconda") class LanguageWindow: def __call__(self, screen, anaconda): - languages = anaconda.id.instLanguage.available () + id = anaconda.id + languages = instLanguage.available () languages.sort() - current = anaconda.id.instLanguage.getCurrent() + current = instLanguage.getCurrent() height = min((8, len(languages))) buttons = [TEXT_OK_BUTTON, TEXT_BACK_BUTTON] translated = [] for lang in languages: - translated.append ((_(lang), anaconda.id.instLanguage.getNickByName(lang))) + translated.append ((_(lang), instLanguage.getNickByName(lang))) (button, choice) = \ ListboxChoiceWindow(screen, _("Language Selection"), _("What language would you like to use during the " @@ -42,16 +43,18 @@ class LanguageWindow: if button == TEXT_BACK_CHECK: return INSTALL_BACK - if anaconda.id.instLanguage.getFontFile(choice) == "none": + if instLanguage.getFontFile(choice) == "none": ButtonChoiceWindow(screen, "Language Unavailable", "%s display is unavailable in text mode. The " "installation will continue in English." % (choice,), buttons=[TEXT_OK_BUTTON]) - anaconda.id.instLanguage.setRuntimeDefaults(choice) + instLanguage.setRuntimeDefaults(choice) + timezone.setTimezoneInfo(instLanguage.getDefaultTimeZone()) return INSTALL_OK - anaconda.id.instLanguage.setRuntimeLanguage(choice) - anaconda.id.instLanguage.setDefault(choice) + instLanguage.setRuntimeLanguage(choice) + instLanguage.setDefault(choice) + timezone.setTimezoneInfo(instLanguage.getDefaultTimeZone()) anaconda.intf.drawFrame() |