diff options
author | Chris Lumens <clumens@redhat.com> | 2005-03-23 21:14:20 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-03-23 21:14:20 +0000 |
commit | 68e971a9d0f3ac7e299aefe686c6e1ad8f25f96b (patch) | |
tree | 4987450ced01aa3227df29c6787225681ca6df1e /installclass.py | |
parent | 9e822d2730b96fb9a418070dce1138cc5fbafecd (diff) | |
download | anaconda-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.py | 15 |
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) |