1 from Wizard import Wizard
2 from Components.Label import Label
3 from Components.Language import language
5 class WizardLanguage(Wizard):
6 def __init__(self, session, showSteps = True, showStepSlider = True, showList = True, showConfig = True):
7 Wizard.__init__(self, session, showSteps, showStepSlider, showList, showConfig)
9 self["languagetext"] = Label()
10 self.updateLanguageDescription()
16 def languageSelect(self):
17 print "languageSelect"
18 newlanguage = language.getActiveLanguageIndex() + 1
19 if newlanguage >= len(language.getLanguageList()):
21 language.activateLanguageIndex(newlanguage)
25 def updateLanguageDescription(self):
26 print language.getLanguageList()[language.getActiveLanguageIndex()]
27 self["languagetext"].setText(self.getTranslation(language.getLanguageList()[language.getActiveLanguageIndex()][1][0]))
29 def updateTexts(self):
31 self.updateText(firstset = True)
33 self.updateLanguageDescription()