summaryrefslogtreecommitdiffstats
path: root/installclass.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-03-23 21:14:20 +0000
committerChris Lumens <clumens@redhat.com>2005-03-23 21:14:20 +0000
commit68e971a9d0f3ac7e299aefe686c6e1ad8f25f96b (patch)
tree4987450ced01aa3227df29c6787225681ca6df1e /installclass.py
parent9e822d2730b96fb9a418070dce1138cc5fbafecd (diff)
downloadanaconda-68e971a9d0f3ac7e299aefe686c6e1ad8f25f96b.tar.gz
anaconda-68e971a9d0f3ac7e299aefe686c6e1ad8f25f96b.tar.xz
anaconda-68e971a9d0f3ac7e299aefe686c6e1ad8f25f96b.zip
Combined Language and InstallTimeLanguage in language.py into a single
class, updated the lang-table format to remove an unused column, and changed langSupport to instLanguage everywhere to reinforce the class merge idea.
Diffstat (limited to 'installclass.py')
-rw-r--r--installclass.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/installclass.py b/installclass.py
index 283d9781c..b50fa878f 100644
--- a/installclass.py
+++ b/installclass.py
@@ -347,24 +347,23 @@ class BaseInstallClass:
def setLanguageSupport(self, id, langlist):
if len (langlist) == 0:
- id.langSupport.setSupported(id.langSupport.getAllSupported())
+ id.instLanguage.setSupported(id.instLanguage.getAllSupported())
else:
newlist = []
for lang in langlist:
- newlist.append(id.langSupport.getLangNameByNick(lang))
+ newlist.append(id.instLanguage.getLangNameByNick(lang))
- default = id.langSupport.getDefault()
+ default = id.instLanguage.getDefault()
if default not in newlist:
newlist.append(default)
- id.langSupport.setSupported(newlist)
+ id.instLanguage.setSupported(newlist)
def setLanguageDefault(self, id, default):
- id.langSupport.setDefault(id.langSupport.getLangNameByNick(default))
+ id.instLanguage.setDefault(default)
- def setLanguage(self, id, lang):
- instLangName = id.instLanguage.getLangNameByNick(lang)
- id.instLanguage.setRuntimeLanguage(instLangName)
+ def setLanguage(self, id, nick):
+ id.instLanguage.setRuntimeLanguage(nick)
def setDesktop(self, id, desktop):
id.desktop.setDefaultDesktop (desktop)