diff options
author | Chris Lumens <clumens@redhat.com> | 2005-03-28 19:02:09 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-03-28 19:02:09 +0000 |
commit | 918e431aa0d5e5adc072a1d65ffc6479c3a51b37 (patch) | |
tree | 9f261a85e0f9fa5eedfc2c0de591ac7cf001d8d9 /language.py | |
parent | f177c69de8ba862f77e255babb981e1ea1a16772 (diff) | |
download | anaconda-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.py | 6 |
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] |