fix po/Makefile.am to copy .mo files instead of .po
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 11 Dec 2005 23:42:17 +0000 (23:42 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 11 Dec 2005 23:42:17 +0000 (23:42 +0000)
update languages in realtime in LanguageSelection

lib/python/Screens/LanguageSelection.py
lib/python/Screens/Wizard.py
po/Makefile
po/Makefile.am
po/de.po

index 1a82a313c2002815ad231263e0eb965616ec65e5..79cd25fcb3bb0a304a8228bdd34aa6da4ad570df 100644 (file)
@@ -15,13 +15,13 @@ class LanguageSelection(Screen):
                self["list"] = LanguageList(self.list)
                self.updateList()
                
                self["list"] = LanguageList(self.list)
                self.updateList()
                
-               self["actions"] = ActionMap(["ListboxActions", "OkCancelActions"], 
+               self["actions"] = ActionMap(["WizardActions"], 
                {
                        "ok": self.save,
                {
                        "ok": self.save,
-                       "cancel": self.close,
-                       "moveUp": self.up,
-                       "moveDown": self.down
-               })
+                       "back": self.close,
+                       "up": self.up,
+                       "down": self.down
+               }, -1)
                
        def save(self):
                self.run()
                
        def save(self):
                self.run()
@@ -43,7 +43,11 @@ class LanguageSelection(Screen):
                self["list"].l.setList(self.list)
                
        def up(self):
                self["list"].l.setList(self.list)
                
        def up(self):
-               print "up"
+               self["list"].instance.moveSelection(self["list"].instance.moveUp)
+               self.run()
+               self.updateList()
                
        def down(self):
                
        def down(self):
-               print "down"
\ No newline at end of file
+               self["list"].instance.moveSelection(self["list"].instance.moveDown)
+               self.run()
+               self.updateList()
index a5726f6fa54f0078d34c09278f2a294157ab97e8..5b59d2c010fbcbf0509dc8808c8b954e9b777ced 100644 (file)
@@ -151,14 +151,14 @@ class Wizard(Screen, HelpableScreen):
                if (self.wizard[self.currStep]["config"]["screen"] != None):
                        self["config"].instance.moveSelection(self["config"].instance.moveUp)
                elif (len(self.wizard[self.currStep]["list"]) > 0):
                if (self.wizard[self.currStep]["config"]["screen"] != None):
                        self["config"].instance.moveSelection(self["config"].instance.moveUp)
                elif (len(self.wizard[self.currStep]["list"]) > 0):
-                       self["list"].instance.moveSelection(self["config"].instance.moveUp)
+                       self["list"].instance.moveSelection(self["list"].instance.moveUp)
                print "up"
                
        def down(self):
                if (self.wizard[self.currStep]["config"]["screen"] != None):
                        self["config"].instance.moveSelection(self["config"].instance.moveDown)
                elif (len(self.wizard[self.currStep]["list"]) > 0):
                print "up"
                
        def down(self):
                if (self.wizard[self.currStep]["config"]["screen"] != None):
                        self["config"].instance.moveSelection(self["config"].instance.moveDown)
                elif (len(self.wizard[self.currStep]["list"]) > 0):
-                       self["list"].instance.moveSelection(self["config"].instance.moveDown)
+                       self["list"].instance.moveSelection(self["list"].instance.moveDown)
                print "down"
                
        def updateValues(self):
                print "down"
                
        def updateValues(self):
index 9aabdeb19b03a68c7b7d9c5a898433307eff7208..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,59 +0,0 @@
-#GETTEXT=./pygettext.py
-GETTEXT=xgettext
-
-#MSGFMT = ./msgfmt.py
-MSGFMT = msgfmt
-
-LANGS := de en
-LANGPO := $(foreach LANG, $(LANGS),$(LANG).po)
-LANGMO := $(foreach LANG, $(LANGS),$(LANG).mo)
-
-default: enigma2.pot $(LANGPO) merge $(LANGMO)
-       -mkdir -p de/LC_MESSAGES
-       cp de.mo de/LC_MESSAGES/enigma2.mo
-
-       -mkdir -p en/LC_MESSAGES
-       cp en.mo en/LC_MESSAGES/enigma2.mo
-
-merge:
-#      msgmerge -N -U enigma2.pot menu.pot
-#      msgmerge -N -U enigma2.pot setup.pot
-       msguniq -o enigma2uniq.pot enigma2.pot
-       rm enigma2.pot
-       mv enigma2uniq.pot enigma2.pot
-       msgmerge -N -U de.po enigma2.pot
-
-enigma2.pot:
-       $(GETTEXT)      -d enigma2 -s -o enigma2.pot \
-                       ../lib/python/Screens/ScanSetup.py \
-                       ../lib/python/Screens/NetworkSetup.py \
-                       ../lib/python/Screens/Satconfig.py \
-                       ../lib/python/Screens/EventView.py \
-                       ../lib/python/Screens/Ci.py \
-                       ../lib/python/Screens/About.py \
-                       ../lib/python/Screens/HarddiskSetup.py \
-                       ../lib/python/Screens/InfoBar.py \
-                       ../lib/python/Screens/TimerEdit.py \
-                       ../lib/python/Screens/TimerEntry.py \
-                       ../lib/python/Screens/Wizard.py \
-                       ../lib/python/Screens/ServiceScan.py \
-                       ../lib/python/Screens/InfoBarGenerics.py \
-                       ../lib/python/Components/ServiceScan.py \
-                       ../lib/python/Components/Lcd.py \
-                       ../lib/python/Components/SetupDevices.py \
-                       ../lib/python/Components/Language.py \
-                       ../lib/python/Components/NimManager.py \
-                       ../lib/python/Components/EventInfo.py \
-                       ../lib/python/Components/Network.py 
-       ./xml2po.py     ../data/ >> enigma2.pot
-
-
-%.mo: %.po
-       $(MSGFMT) -o $@ $<
-
-%.po:
-       msginit -l $@ -o $@ -i enigma2.pot --no-translator
-       
-
-clean:
-       rm *.mo *.pot
index a7709e4c3fb79911f36389970ed2045ddfa930a1..355a343c6ec0fabf13f2074ccb8c2b17914cc192 100644 (file)
@@ -60,5 +60,5 @@ clean:
 install-data-am: default
        for lang in $(LANGS); do \
                mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
 install-data-am: default
        for lang in $(LANGS); do \
                mkdir -p $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES; \
-               cp $$lang.po $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).po; \
+               cp $$lang.mo $(DESTDIR)$(DATADIR)/enigma2/po/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
        done
        done
index 83ec4c9599d1e9120226c9ace7a0aabadd79e6bc..16dd512496ab4992ef11b1ed61e2335284f0bb62 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -845,7 +845,7 @@ msgstr "LCD Einstellung"
 
 #: ../data/
 msgid "No, scan later manually"
 
 #: ../data/
 msgid "No, scan later manually"
-msgstr ""
+msgstr "Nein, spaeter suchen."
 
 #: ../data/
 msgid "Soundcarrier"
 
 #: ../data/
 msgid "Soundcarrier"
@@ -929,7 +929,7 @@ msgstr "Erweiterungen"
 
 #: ../data/
 msgid "Yes, scan now"
 
 #: ../data/
 msgid "Yes, scan now"
-msgstr ""
+msgstr "Ja, jetzt suchen."
 
 #: ../data/
 msgid "Information"
 
 #: ../data/
 msgid "Information"
@@ -1053,11 +1053,11 @@ msgstr ""
 
 #: ../data/
 msgid "Do you want to do a service scan?"
 
 #: ../data/
 msgid "Do you want to do a service scan?"
-msgstr ""
+msgstr "Jetzt nach Kanaelen suchen?"
 
 #: ../data/
 msgid "Thanx for using the wizard. Your box is now ready to use."
 
 #: ../data/
 msgid "Thanx for using the wizard. Your box is now ready to use."
-msgstr ""
+msgstr "Der Assistent ist hiermit beendet. Ihre Dreambox kann nun benutzt werden."
 
 #: ../data/
 msgid "Satelliteconfig"
 
 #: ../data/
 msgid "Satelliteconfig"