summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-16 04:32:34 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-16 04:32:34 +0000
commit5fa35e74ff9c10b256a7d4a9e2e180e01df87cc0 (patch)
tree26f41a1b82c8d21bd0b4598968671ea5d61b0521
parentb56940c3bcceb7de87d606137357dfc41f944572 (diff)
downloadanaconda-5fa35e74ff9c10b256a7d4a9e2e180e01df87cc0.tar.gz
anaconda-5fa35e74ff9c10b256a7d4a9e2e180e01df87cc0.tar.xz
anaconda-5fa35e74ff9c10b256a7d4a9e2e180e01df87cc0.zip
improve our language determination -- eg, for zh_TW.Big5, we should look at zh_TW.Big5, zh_TW, and then zh not just zh_TW.Big5 and zh
-rw-r--r--language.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/language.py b/language.py
index f63922676..6da43f6dd 100644
--- a/language.py
+++ b/language.py
@@ -157,6 +157,8 @@ class InstallTimeLanguage:
pass
newlangs = [lang]
+ if lang.find(".") != -1:
+ newlangs.append(lang[:lang.find(".")])
if len(lang) > 2:
newlangs.append(lang[:2])
cat.setlangs(newlangs)