diff options
author | Chris Lumens <clumens@redhat.com> | 2009-12-21 10:32:30 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2010-02-04 14:07:30 -0500 |
commit | 0ac1dd8055c7d146eb69efe4da3dcfd6ea844180 (patch) | |
tree | 788f8b4d92a6211c442c816eda1dda4a6e58d42e /textw/language_text.py | |
parent | e146251c0bd1b9325401eb15b9b157d886a8ff4a (diff) | |
download | anaconda-0ac1dd8055c7d146eb69efe4da3dcfd6ea844180.tar.gz anaconda-0ac1dd8055c7d146eb69efe4da3dcfd6ea844180.tar.xz anaconda-0ac1dd8055c7d146eb69efe4da3dcfd6ea844180.zip |
Move instLanguage to the Anaconda object.
Diffstat (limited to 'textw/language_text.py')
-rw-r--r-- | textw/language_text.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/textw/language_text.py b/textw/language_text.py index 191a90d5d..bac78e4a3 100644 --- a/textw/language_text.py +++ b/textw/language_text.py @@ -30,18 +30,17 @@ log = logging.getLogger("anaconda") class LanguageWindow: def __call__(self, screen, anaconda): - id = anaconda.id - languages = id.instLanguage.available () + languages = anaconda.instLanguage.available () languages.sort() - current = id.instLanguage.instLang + current = anaconda.instLanguage.instLang height = min((8, len(languages))) buttons = [TEXT_OK_BUTTON, TEXT_BACK_BUTTON] translated = [] for lang in languages: - translated.append ((_(lang), id.instLanguage.getLangByName(lang))) + translated.append ((_(lang), anaconda.instLanguage.getLangByName(lang))) (button, choice) = \ ListboxChoiceWindow(screen, _("Language Selection"), _("What language would you like to use during the " @@ -52,19 +51,19 @@ class LanguageWindow: if button == TEXT_BACK_CHECK: return INSTALL_BACK - if id.instLanguage.getFontFile(choice) == "none": + if anaconda.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]) - id.instLanguage.instLang = choice - id.instLanguage.systemLang = choice - id.timezone.setTimezoneInfo(id.instLanguage.getDefaultTimeZone(anaconda.rootPath)) + anaconda.instLanguage.instLang = choice + anaconda.instLanguage.systemLang = choice + anaconda.id.timezone.setTimezoneInfo(anaconda.instLanguage.getDefaultTimeZone(anaconda.rootPath)) return INSTALL_OK - id.instLanguage.instLang = choice - id.instLanguage.systemLang = choice - id.timezone.setTimezoneInfo(id.instLanguage.getDefaultTimeZone(anaconda.rootPath)) + anaconda.instLanguage.instLang = choice + anaconda.instLanguage.systemLang = choice + anaconda.id.timezone.setTimezoneInfo(anaconda.instLanguage.getDefaultTimeZone(anaconda.rootPath)) anaconda.intf.drawFrame() |