summaryrefslogtreecommitdiffstats
path: root/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 /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 'text.py')
-rw-r--r--text.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/text.py b/text.py
index 350aac492..be666c67a 100644
--- a/text.py
+++ b/text.py
@@ -338,8 +338,14 @@ class InstallInterface:
#self.screen.drawRootText (len(_(self.welcomeText)), 0,
#(self.screen.width - len(_(self.welcomeText))) * " ")
#self.screen.drawRootText (0 - len(_(step[0])), 0, _(step[0]))
-
lang = id.instLanguage.getCurrent()
+ # if we don't have any way to display the preselected language,
+ # fall back to English.
+ if ((id.instLanguage.getFontFile(lang) == "Kon" and not
+ isys.isPsudoTTY(0)) or
+ id.instLanguage.getFontFile(lang) == "None"):
+ lang = "English"
+ id.instLanguage.setRuntimeLanguage(lang)
lang = id.instLanguage.getLangNick(lang)
self.langSearchPath = expandLangs(lang) + ['C']