summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-09 23:07:59 +0000
committerMatt Wilson <msw@redhat.com>2001-01-09 23:07:59 +0000
commitec7e70a5e4a9389f8b373c05fc4d94b526c6fdf1 (patch)
tree594b3c2bc35e9c16ad8c6d12133340ea1854dfda /text.py
parent5987032c92680bff3cba761e6151b58a81b7a5e6 (diff)
downloadanaconda-ec7e70a5e4a9389f8b373c05fc4d94b526c6fdf1.tar.gz
anaconda-ec7e70a5e4a9389f8b373c05fc4d94b526c6fdf1.tar.xz
anaconda-ec7e70a5e4a9389f8b373c05fc4d94b526c6fdf1.zip
don't present Japanese if we don't have it
Diffstat (limited to 'text.py')
-rw-r--r--text.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/text.py b/text.py
index d4b92b2ae..cd6211bbf 100644
--- a/text.py
+++ b/text.py
@@ -46,9 +46,15 @@ import installclass
class LanguageWindow:
def __call__(self, screen, todo, textInterface):
languages = todo.language.available ()
+
+ haveKon = os.access ("/sbin/continue", os.X_OK)
+ if languages.has_key ("Japanese") and not haveKon:
+ del languages["Japanese"]
+
descriptions = languages.keys ()
descriptions.sort ()
current = todo.language.get ()
+
for lang in descriptions:
if languages[lang] == current:
default = descriptions.index (lang)