summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/installclass.py b/installclass.py
index 379c84eb9..882191ce0 100644
--- a/installclass.py
+++ b/installclass.py
@@ -345,15 +345,14 @@ class BaseInstallClass:
if wepkey:
dev.set(("wepkey", wepkey))
- def setLanguageSupport(self, id, langlist):
- if len (langlist) == 0:
+ def setLanguageSupport(self, id, nickList):
+ if len (nickList) == 0:
id.instLanguage.setSupported(id.instLanguage.getAllSupported())
else:
newlist = []
- for lang in langlist:
- name = id.instLanguage.getLangNameByNick (lang)
- if name not in newlist:
- newlist.append(name)
+ for nick in nickList:
+ if nick not in newlist:
+ newlist.append(nick)
default = id.instLanguage.getDefault()
if default not in newlist: