diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-09-07 18:43:48 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-09-07 18:43:48 +0000 |
commit | 26fc25a0773a133ae5a705172ce57457348f7f1e (patch) | |
tree | bc637c6c14f027b595940b27e608852ae539aefc /text.py | |
parent | 90ab1a04d07e170db3ae5a4da9ca5c81f6c43490 (diff) | |
download | anaconda-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.py | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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) |