summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-06-28 17:04:54 +0000
committerChris Lumens <clumens@redhat.com>2006-06-28 17:04:54 +0000
commit90087ccc8fbcc52dd4431194c5dc3cea4ba0c6a3 (patch)
tree4f9fd2628b71b719766656ec25bdf9262ede6009 /text.py
parentc66b70b645974ee4d64de73238dcd943ab2cfbc5 (diff)
downloadanaconda-90087ccc8fbcc52dd4431194c5dc3cea4ba0c6a3.tar.gz
anaconda-90087ccc8fbcc52dd4431194c5dc3cea4ba0c6a3.tar.xz
anaconda-90087ccc8fbcc52dd4431194c5dc3cea4ba0c6a3.zip
Fix traceback on nonexistant variable (#196615).
Diffstat (limited to 'text.py')
-rw-r--r--text.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/text.py b/text.py
index 46fbe662c..b302a800f 100644
--- a/text.py
+++ b/text.py
@@ -450,11 +450,13 @@ class InstallInterface:
return True
def run(self, anaconda):
- if anaconda.id.instLanguage.getFontFile(anaconda.id.instLanguage.getCurrent()) == "none":
+ instLang = anaconda.id.instLanguage
+
+ if instLang.getFontFile(instLang.getCurrent()) == "none":
ButtonChoiceWindow(self.screen, "Language Unavailable",
"%s display is unavailable in text mode. "
"The installation will continue in "
- "English." % (oldlang,),
+ "English." % (instLang.getCurrent(),),
buttons=[TEXT_OK_BUTTON])
self.screen.helpCallback(self.helpWindow)
@@ -466,11 +468,6 @@ class InstallInterface:
if flags.debug or flags.test:
self.screen.suspendCallback(debugSelf, self.screen)
- # clear out the old root text by writing spaces in the blank
- # area on the right side of the screen
- #self.screen.drawRootText (len(_(self.welcomeText)), 0,
- #(self.screen.width - len(_(self.welcomeText))) * " ")
- #self.screen.drawRootText (0 - len(_(step[0])), 0, _(step[0]))
self.instLanguage = anaconda.id.instLanguage
# draw the frame after setting up the fallback