summaryrefslogtreecommitdiffstats
path: root/language.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-03-28 19:02:09 +0000
committerChris Lumens <clumens@redhat.com>2005-03-28 19:02:09 +0000
commit918e431aa0d5e5adc072a1d65ffc6479c3a51b37 (patch)
tree9f261a85e0f9fa5eedfc2c0de591ac7cf001d8d9 /language.py
parentf177c69de8ba862f77e255babb981e1ea1a16772 (diff)
downloadanaconda-918e431aa0d5e5adc072a1d65ffc6479c3a51b37.tar.gz
anaconda-918e431aa0d5e5adc072a1d65ffc6479c3a51b37.tar.xz
anaconda-918e431aa0d5e5adc072a1d65ffc6479c3a51b37.zip
Check all forms of the language nick in case someone's specified a shorter one.
Diffstat (limited to 'language.py')
-rw-r--r--language.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/language.py b/language.py
index c4bc868e0..9fc0ecbfc 100644
--- a/language.py
+++ b/language.py
@@ -198,9 +198,13 @@ class InstallTimeLanguage:
# Try to find a match for the language nick we were given.
for k in self.langInfoByName.keys():
row = self.langInfoByName[k]
- if row[0] == nick:
+ if nick in expandLangs(row[0]):
name = k
+ # It's possible we didn't find a match.
+ self.default = None
+ return
+
self.default = name
(lang, map, font) = self.langInfoByName[name]