summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-09-07 18:43:48 +0000
committerJeremy Katz <katzj@redhat.com>2004-09-07 18:43:48 +0000
commit26fc25a0773a133ae5a705172ce57457348f7f1e (patch)
treebc637c6c14f027b595940b27e608852ae539aefc /text.py
parent90ab1a04d07e170db3ae5a4da9ca5c81f6c43490 (diff)
downloadanaconda-26fc25a0773a133ae5a705172ce57457348f7f1e.tar.gz
anaconda-26fc25a0773a133ae5a705172ce57457348f7f1e.tar.xz
anaconda-26fc25a0773a133ae5a705172ce57457348f7f1e.zip
if bogl fails to start, fall back to english for text mode intsalls (#131678)
Diffstat (limited to 'text.py')
-rw-r--r--text.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/text.py b/text.py
index 71597330d..3c2932a9a 100644
--- a/text.py
+++ b/text.py
@@ -387,16 +387,27 @@ class InstallInterface:
def run(self, id, dispatch, configFileData):
# set up for CJK text mode if needed
+ oldlang = None
if (flags.setupFilesystems and
(id.instLanguage.getFontFile(id.instLanguage.getCurrent()) == "bterm")
and not isys.isPsudoTTY(0)
and not flags.serial):
log("starting bterm")
+ rc = 1
try:
rc = isys.startBterm()
time.sleep(1)
except Exception, e:
log("got an exception starting bterm: %s" %(e,))
+
+ if rc == 1:
+ log("unable to start bterm, falling back to english")
+ oldlang = id.instLanguage.getCurrent()
+ log("old language was %s" %(oldlang,))
+ id.instLanguage.setRuntimeLanguage("English")
+ id.instLanguage.setRuntimeDefaults(oldlang)
+
+
self.screen = SnackScreen()
self.configFileData = configFileData
@@ -430,6 +441,14 @@ class InstallInterface:
# draw the frame after setting up the fallback
self.drawFrame()
+ if oldlang is not None:
+ ButtonChoiceWindow(self.screen, "Language Unavailable",
+ "%s display is unavailable in text mode. "
+ "The installation will continue in "
+ "English." % (oldlang,),
+ buttons=[TEXT_OK_BUTTON])
+
+
id.fsset.registerMessageWindow(self.messageWindow)
id.fsset.registerProgressWindow(self.progressWindow)
id.fsset.registerWaitWindow(self.waitWindow)