diff options
author | Matt Wilson <msw@redhat.com> | 2001-08-09 18:16:19 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-08-09 18:16:19 +0000 |
commit | 470aa28013177b9b8fb6a10fed41c62617afa558 (patch) | |
tree | b3ba55f65483d40298ce8deb9ff2d233310ff89a /text.py | |
parent | ffeef984d5b5c53cc81341780e4c50b0660fd28d (diff) | |
download | anaconda-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.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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'] |