From 04a6ffad0d1bd64cda7270ba0fcad74c33a20a51 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Sun, 18 Dec 2005 23:21:59 +0000 Subject: [PATCH] fix not-a-string when using english add some wizard-stuff --- data/startwizard.xml | 17 +++++++++++++---- data/tutorialwizard.xml | 11 ++++++++++- lib/python/Components/Language.py | 2 +- lib/python/Components/config.py | 2 ++ lib/python/Screens/TutorialWizard.py | 5 +++-- 5 files changed, 29 insertions(+), 8 deletions(-) diff --git a/data/startwizard.xml b/data/startwizard.xml index 37a5b1e5..d31765f8 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -43,7 +43,6 @@ self["arrowup2"].moveTo(590, 320, 1) self["arrowup2"].startMoving() self["arrowdown"].moveTo(740, 355, 1) self["arrowdown"].startMoving() - @@ -54,16 +53,26 @@ self.condition = nimmanager.nimCount > 1 -self["rc"].moveTo(800, 50, 1) +self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() -self["arrowup"].moveTo(800, 310, 1) +self["arrowup"].moveTo(525, 320, 1) self["arrowup"].startMoving() -self["arrowup2"].moveTo(800, 310, 1) +self["arrowup2"].moveTo(590, 320, 1) self["arrowup2"].startMoving() +self["arrowdown"].moveTo(740, 355, 1) +self["arrowdown"].startMoving() + +self["rc"].moveTo(800, 50, 1) +self["rc"].startMoving() +self["arrowup"].moveTo(800, 310, 1) +self["arrowup"].startMoving() +self["arrowup2"].moveTo(800, 310, 1) +self["arrowup2"].startMoving() + diff --git a/data/tutorialwizard.xml b/data/tutorialwizard.xml index 06d48bc6..a63dbb38 100644 --- a/data/tutorialwizard.xml +++ b/data/tutorialwizard.xml @@ -1,5 +1,13 @@ + + + + + + + + from Screens.InfoBar import InfoBar @@ -13,7 +21,8 @@ del self.infobardialog - + + diff --git a/lib/python/Components/Language.py b/lib/python/Components/Language.py index c60b39b2..d6e43a5d 100644 --- a/lib/python/Components/Language.py +++ b/lib/python/Components/Language.py @@ -5,7 +5,7 @@ from Tools.Directories import * class Language: def __init__(self): - gettext.install('enigma2', '/enigma2/po', unicode=1) + gettext.install('enigma2', resolveFilename(SCOPE_LANGUAGE, ""), unicode=0, codeset="utf-8") self.activeLanguage = 0 self.lang = [] # FIXME make list dynamically diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 3bbdde10..9400565d 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -78,6 +78,8 @@ class configSelection: def __call__(self, selected): #needed by configlist self.checkValues() + print "[config.py] orgstring: ", self.parent.vals[self.parent.value] + print "[config.py] translation: ", _(self.parent.vals[self.parent.value]) return ("text", _(self.parent.vals[self.parent.value])) class configDateTime: diff --git a/lib/python/Screens/TutorialWizard.py b/lib/python/Screens/TutorialWizard.py index 0ba97d3a..95318724 100644 --- a/lib/python/Screens/TutorialWizard.py +++ b/lib/python/Screens/TutorialWizard.py @@ -10,8 +10,9 @@ config.misc.firstruntutorial = configElementBoolean("config.misc.firstruntutoria class TutorialWizard(Wizard): skin = """ - + + @@ -22,7 +23,7 @@ class TutorialWizard(Wizard): self.skin = TutorialWizard.skin self.xmlfile = "tutorialwizard.xml" - Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=False, showConfig=False) + Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=False) self["rc"] = MovingPixmap() self["arrowdown"] = MovingPixmap() self["arrowup"] = MovingPixmap() -- 2.30.2