From: Stefan Pluecken Date: Sun, 11 Dec 2005 03:52:19 +0000 (+0000) Subject: treat the LanguageSelection as an own wizard, so it is started first on a firstrun X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=a86a756a1f185095b3ae3e39026eb76c16e07c1d treat the LanguageSelection as an own wizard, so it is started first on a firstrun save the language to the config-entry config.osd.language --- diff --git a/data/startwizard.xml b/data/startwizard.xml index fbc1d49..d4c7efa 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -1,8 +1,5 @@ - - - self["arrowdown"].moveTo(557, 232, 10) @@ -11,7 +8,7 @@ self["arrowdown"].startMoving() self["rc"].startMoving() - + @@ -24,7 +21,7 @@ self["arrowdown"].startMoving() self["arrowup"].startMoving() - + @@ -36,7 +33,7 @@ self["arrowdown"].addMovePoint(610, 300, 10) self["arrowdown"].startMoving() - + @@ -48,14 +45,14 @@ self["arrowdown"].addMovePoint(610, 300, 10) self["arrowdown"].startMoving() - + - + - + @@ -67,7 +64,7 @@ self["arrowdown"].addMovePoint(610, 300, 10) self["arrowdown"].startMoving() - + self["arrowdown"].moveTo(740, 200, 10) diff --git a/lib/python/Screens/LanguageSelection.py b/lib/python/Screens/LanguageSelection.py index 42f5420..a51c067 100644 --- a/lib/python/Screens/LanguageSelection.py +++ b/lib/python/Screens/LanguageSelection.py @@ -4,6 +4,7 @@ from Components.MenuList import MenuList from Components.ActionMap import ActionMap from Components.Language import language from Components.LanguageList import * +from Components.config import config class LanguageSelection(Screen): @@ -23,7 +24,6 @@ class LanguageSelection(Screen): "ok": self.save, "cancel": self.close }) - print "INIT LANGUAGESELECTION" def save(self): self.run() @@ -31,3 +31,5 @@ class LanguageSelection(Screen): def run(self): language.activateLanguage(self["list"].l.getCurrentSelectionIndex()) + config.osd.language.value = self["list"].l.getCurrentSelectionIndex() + config.osd.language.save() diff --git a/lib/python/Screens/StartWizard.py b/lib/python/Screens/StartWizard.py index 736b3ef..1cb0bd8 100644 --- a/lib/python/Screens/StartWizard.py +++ b/lib/python/Screens/StartWizard.py @@ -1,6 +1,7 @@ from Wizard import Wizard, wizardManager from Components.Pixmap import * +from LanguageSelection import LanguageSelection class StartWizard(Wizard): skin = """ @@ -24,4 +25,5 @@ class StartWizard(Wizard): self["arrowdown"] = MovingPixmap() self["arrowup"] = MovingPixmap() +wizardManager.registerWizard(LanguageSelection) wizardManager.registerWizard(StartWizard) \ No newline at end of file