summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-09-07 17:24:59 +0000
committerMatt Wilson <msw@redhat.com>2001-09-07 17:24:59 +0000
commit0e4c6a28fb5715bd79f1cc91c72d5a8a1e995bc3 (patch)
treed0f7083770a7997894907f5aebb2bcb4cb0ee45e /text.py
parent7db221245541f50bc9def87c7fd0e7df39c099cf (diff)
downloadanaconda-0e4c6a28fb5715bd79f1cc91c72d5a8a1e995bc3.tar.gz
anaconda-0e4c6a28fb5715bd79f1cc91c72d5a8a1e995bc3.tar.xz
anaconda-0e4c6a28fb5715bd79f1cc91c72d5a8a1e995bc3.zip
fix online help in text mode for foreign cd installs (from katzj, #53373)
Diffstat (limited to 'text.py')
-rw-r--r--text.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/text.py b/text.py
index 13245c758..4f464e6b1 100644
--- a/text.py
+++ b/text.py
@@ -147,6 +147,10 @@ class ProgressWindow:
class InstallInterface:
def helpWindow(self, screen, key):
+ lang = self.instLanguage.getCurrent()
+ lang = self.instLanguage.getLangNick(lang)
+ self.langSearchPath = expandLangs(lang) + ['C']
+
if key == "helponhelp":
if self.showingHelpOnHelp:
return None
@@ -163,7 +167,7 @@ class InstallInterface:
fn = "/usr/share/anaconda/help/%s/s1-help-screens-%s.txt" \
% (lang, key)
# uncomment to test help text installed in local directory instead
-# fn = "./text-help/%s/s1-help-screens-%s.txt" % (lang, key)
+ fn = "./text-help/%s/s1-help-screens-%s.txt" % (lang, key)
try:
f = open(fn)
@@ -349,6 +353,7 @@ class InstallInterface:
id.instLanguage.setRuntimeLanguage(lang)
lang = id.instLanguage.getLangNick(lang)
self.langSearchPath = expandLangs(lang) + ['C']
+ self.instLanguage = id.instLanguage
id.fsset.registerMessageWindow(self.messageWindow)
id.fsset.registerProgressWindow(self.progressWindow)