fix translation of startwizard
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 14 Dec 2005 23:10:55 +0000 (23:10 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 14 Dec 2005 23:10:55 +0000 (23:10 +0000)
translate the window-title in the languageselection window when choosing a language
translate some missing stuff

data/startwizard.xml
lib/python/Screens/LanguageSelection.py
lib/python/Screens/Wizard.py
po/Makefile.am
po/de.po
po/xml2po.py

index 2bda3a1..9d537f5 100644 (file)
@@ -1,6 +1,6 @@
 <wizard>
                <step number="1">
 <wizard>
                <step number="1">
-                       <text value="Welcome.\n\nThis start-wizard will guide you through the basic setup of your Dreambox.\n\nPress the OK button on your remote control to move to the next step." />
+                       <text value="Welcome.\n\nThis start-wizard will guide you through the basic setup of your Dreambox.\nPress the OK button on your remote control to move to the next step." />
                        <code>
 self["arrowdown"].moveTo(557, 232, 1)
 self["arrowdown"].startMoving()
                        <code>
 self["arrowdown"].moveTo(557, 232, 1)
 self["arrowdown"].startMoving()
index 79cd25f..399e20e 100644 (file)
@@ -31,6 +31,7 @@ class LanguageSelection(Screen):
                language.activateLanguage(self["list"].l.getCurrentSelectionIndex())
                config.osd.language.value = self["list"].l.getCurrentSelectionIndex()
                config.osd.language.save()
                language.activateLanguage(self["list"].l.getCurrentSelectionIndex())
                config.osd.language.value = self["list"].l.getCurrentSelectionIndex()
                config.osd.language.save()
+               self.session.currentDialog.instance.setTitle(_("Language selection"))
 
        def updateList(self):
                self.list = []
 
        def updateList(self):
                self.list = []
@@ -41,7 +42,7 @@ class LanguageSelection(Screen):
                                self.list.append(LanguageEntryComponent(x[2], _(x[0])))
                
                self["list"].l.setList(self.list)
                                self.list.append(LanguageEntryComponent(x[2], _(x[0])))
                
                self["list"].l.setList(self.list)
-               
+
        def up(self):
                self["list"].instance.moveSelection(self["list"].instance.moveUp)
                self.run()
        def up(self):
                self["list"].instance.moveSelection(self["list"].instance.moveUp)
                self.run()
index 7eda9b0..0f8f199 100644 (file)
@@ -1,5 +1,7 @@
 from Screen import Screen
 
 from Screen import Screen
 
+import string
+
 from Screens.HelpMenu import HelpableScreen
 from Components.Label import Label
 from Components.Slider import Slider
 from Screens.HelpMenu import HelpableScreen
 from Components.Label import Label
 from Components.Slider import Slider
@@ -29,7 +31,7 @@ class Wizard(Screen, HelpableScreen):
                                self.lastStep = int(attrs.get('number'))
                                self.wizard[self.lastStep] = {"text": "", "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": ""}
                        elif (name == "text"):
                                self.lastStep = int(attrs.get('number'))
                                self.wizard[self.lastStep] = {"text": "", "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": ""}
                        elif (name == "text"):
-                               self.wizard[self.lastStep]["text"] = _(str(attrs.get('value')))
+                               self.wizard[self.lastStep]["text"] = string.replace(str(attrs.get('value')), "\\n", "\n")
                        elif (name == "listentry"):
                                self.wizard[self.lastStep]["list"].append((str(attrs.get('caption')), str(attrs.get('step'))))
                        elif (name == "config"):
                        elif (name == "listentry"):
                                self.wizard[self.lastStep]["list"].append((str(attrs.get('caption')), str(attrs.get('step'))))
                        elif (name == "config"):
index dddac3a..9067c2a 100644 (file)
@@ -30,6 +30,7 @@ enigma2.pot:
                        ../lib/python/Screens/Satconfig.py \
                        ../lib/python/Screens/EventView.py \
                        ../lib/python/Screens/Ci.py \
                        ../lib/python/Screens/Satconfig.py \
                        ../lib/python/Screens/EventView.py \
                        ../lib/python/Screens/Ci.py \
+                       ../lib/python/Screens/LanguageSelection.py \
                        ../lib/python/Screens/About.py \
                        ../lib/python/Screens/HarddiskSetup.py \
                        ../lib/python/Screens/InfoBar.py \
                        ../lib/python/Screens/About.py \
                        ../lib/python/Screens/HarddiskSetup.py \
                        ../lib/python/Screens/InfoBar.py \
index 092bc69..9ce86d5 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: tuxbox-enigma 0.0.1\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: tuxbox-enigma 0.0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-12-14 23:43+0100\n"
+"POT-Creation-Date: 2005-12-15 00:08+0100\n"
 "PO-Revision-Date: 2005-12-14 03:29+0100\n"
 "Last-Translator: Stefan Pluecken <stefan.pluecken@multimedia-labs.de>\n"
 "Language-Team: none\n"
 "PO-Revision-Date: 2005-12-14 03:29+0100\n"
 "Last-Translator: Stefan Pluecken <stefan.pluecken@multimedia-labs.de>\n"
 "Language-Team: none\n"
@@ -191,6 +191,7 @@ msgstr "Ende"
 msgid "EndTime"
 msgstr "Endzeit"
 
 msgid "EndTime"
 msgstr "Endzeit"
 
+#: ../lib/python/Screens/LanguageSelection.py:38
 #: ../lib/python/Components/SetupDevices.py:24
 #: ../lib/python/Components/Language.py:12
 msgid "English"
 #: ../lib/python/Components/SetupDevices.py:24
 #: ../lib/python/Components/Language.py:12
 msgid "English"
@@ -253,6 +254,10 @@ msgstr "Initialisiere Festplatte..."
 msgid "Inversion"
 msgstr ""
 
 msgid "Inversion"
 msgstr ""
 
+#: ../lib/python/Screens/LanguageSelection.py:44 ../data/
+msgid "Language selection"
+msgstr "Sprachauswahl"
+
 #: ../lib/python/Screens/Satconfig.py:28 ../data/
 msgid "Latitude"
 msgstr "Breitengrad"
 #: ../lib/python/Screens/Satconfig.py:28 ../data/
 msgid "Latitude"
 msgstr "Breitengrad"
@@ -404,9 +409,9 @@ msgstr "Aufnahme beginnen?"
 msgid "StartTime"
 msgstr "Startzeit"
 
 msgid "StartTime"
 msgstr "Startzeit"
 
-#: ../lib/python/Screens/Wizard.py:166
+#: ../lib/python/Screens/Wizard.py:168
 msgid "Step "
 msgid "Step "
-msgstr ""
+msgstr "Schritt"
 
 #: ../lib/python/Screens/InfoBar.py:77
 msgid "Stop playing this movie?"
 
 #: ../lib/python/Screens/InfoBar.py:77
 msgid "Stop playing this movie?"
@@ -619,7 +624,7 @@ msgstr "Status"
 msgid "show EPG..."
 msgstr "zeige EPG..."
 
 msgid "show EPG..."
 msgstr "zeige EPG..."
 
-#: ../lib/python/Screens/Wizard.py:169 ../lib/python/Screens/Wizard.py:170
+#: ../lib/python/Screens/Wizard.py:171 ../lib/python/Screens/Wizard.py:172
 msgid "text"
 msgstr ""
 
 msgid "text"
 msgstr ""
 
@@ -711,6 +716,19 @@ msgid "Use wizard to set up basic features"
 msgstr "Grundeinstellungen jetzt vornehmen"
 
 #: ../data/
 msgstr "Grundeinstellungen jetzt vornehmen"
 
 #: ../data/
+msgid ""
+"Welcome.\n"
+"\n"
+"This start-wizard will guide you through the basic setup of your Dreambox.\n"
+"Press the OK button on your remote control to move to the next step."
+msgstr ""
+"Willkommen.\n"
+"\n"
+"Der Startassistent wird Sie durch die Grundeinstellungen Ihrer Dreambox "
+"führen.\n"
+"Drücken Sie OK auf Ihrer Fernbedienung, um zum nächsten Schritt zu gelangen."
+
+#: ../data/
 msgid "Sat / Dish Setup"
 msgstr "Sat-/Schüsseleinstellungen"
 
 msgid "Sat / Dish Setup"
 msgstr "Sat-/Schüsseleinstellungen"
 
@@ -859,20 +877,6 @@ msgid "LCD"
 msgstr ""
 
 #: ../data/
 msgstr ""
 
 #: ../data/
-msgid ""
-"Welcome.\n"
-"\n"
-"This start-wizard will guide you through the basic setup of your Dreambox.\n"
-"\n"
-"Press the OK button on your remote control to move to the next step."
-msgstr ""
-"Willkommen.\n"
-"\n"
-"This start-wizard will guide you through the basic setup of your Dreambox.\n"
-"\n"
-"Press the OK button on your remote control to move to the next step."
-
-#: ../data/
 msgid "Timezone"
 msgstr "Zeitzone"
 
 msgid "Timezone"
 msgstr "Zeitzone"
 
@@ -921,10 +925,6 @@ msgid "#0000ff"
 msgstr ""
 
 #: ../data/
 msgstr ""
 
 #: ../data/
-msgid "Language selection"
-msgstr ""
-
-#: ../data/
 msgid "Contrast"
 msgstr "Kontrast"
 
 msgid "Contrast"
 msgstr "Kontrast"
 
index bf27798..a8b6266 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/python
 import sys
 import os
 #!/usr/bin/python
 import sys
 import os
+import string
 from xml.sax import make_parser
 from xml.sax.handler import ContentHandler
 
 from xml.sax import make_parser
 from xml.sax.handler import ContentHandler
 
@@ -36,6 +37,7 @@ for x in dir:
 for k, v in attrlist.items():
        print
        print '#: ' + sys.argv[1]
 for k, v in attrlist.items():
        print
        print '#: ' + sys.argv[1]
+       string.replace(k, "\\n", "\"\n\"")
        print 'msgid "' + str(k) + '"'
        print 'msgstr ""'
 
        print 'msgid "' + str(k) + '"'
        print 'msgstr ""'