summaryrefslogtreecommitdiffstats
path: root/textw/language_text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-08-09 18:16:19 +0000
committerMatt Wilson <msw@redhat.com>2001-08-09 18:16:19 +0000
commit470aa28013177b9b8fb6a10fed41c62617afa558 (patch)
treeb3ba55f65483d40298ce8deb9ff2d233310ff89a /textw/language_text.py
parentffeef984d5b5c53cc81341780e4c50b0660fd28d (diff)
downloadanaconda-470aa28013177b9b8fb6a10fed41c62617afa558.tar.gz
anaconda-470aa28013177b9b8fb6a10fed41c62617afa558.tar.xz
anaconda-470aa28013177b9b8fb6a10fed41c62617afa558.zip
support deferring language load until second stage. This allows a user to set up Korean NFS and get Korean GUI (#50364)
Diffstat (limited to 'textw/language_text.py')
-rw-r--r--textw/language_text.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/textw/language_text.py b/textw/language_text.py
index f02a8b555..841a748a7 100644
--- a/textw/language_text.py
+++ b/textw/language_text.py
@@ -25,11 +25,6 @@ class LanguageWindow:
languages = instLanguage.available ()
haveKon = os.access ("/sbin/continue", os.X_OK)
- if not haveKon:
- # the slice gives us another working copy of the list
- for lang in languages[:]:
- if instLanguage.getFontFile(lang) == "None":
- languages.remove(lang)
current = instLanguage.getCurrent()
@@ -51,8 +46,18 @@ class LanguageWindow:
choice = languages[choice]
+ if ((not haveKon and instLanguage.getFontFile(choice) == "Kon") or
+ 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])
+ instLanguage.setRuntimeDefaults(choice)
+ return INSTALL_OK
+
if (flags.setupFilesystems and
- choice == "Japanese" and not isys.isPsudoTTY(0)):
+ instLanguage.getFontFile(choice) == "Kon"
+ and not isys.isPsudoTTY(0)):
# we're not running KON yet, lets fire it up
os.environ["ANACONDAARGS"] = (os.environ["ANACONDAARGS"] +
" --lang ja_JP.eucJP")