From 470aa28013177b9b8fb6a10fed41c62617afa558 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Thu, 9 Aug 2001 18:16:19 +0000 Subject: support deferring language load until second stage. This allows a user to set up Korean NFS and get Korean GUI (#50364) --- text.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'text.py') 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'] -- cgit