From c8c1d6da7043122e5d77c20f8ce61d677519bb8b Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 17 Nov 2005 22:01:27 +0000 Subject: [PATCH 1/1] translations --- lib/python/Components/EventInfo.py | 2 +- lib/python/Components/Network.py | 4 ++-- lib/python/Screens/TimerEdit.py | 4 ++-- po/Makefile | 5 ++++- po/de.po | 25 ++++++++++++++++++++++++- 5 files changed, 33 insertions(+), 7 deletions(-) diff --git a/lib/python/Components/EventInfo.py b/lib/python/Components/EventInfo.py index 6f6d07ff..83f2a0b2 100644 --- a/lib/python/Components/EventInfo.py +++ b/lib/python/Components/EventInfo.py @@ -40,5 +40,5 @@ class EventInfo(PerServiceDisplay): def stopEvent(self): self.setText( - ("waiting for event data...", "", "--:--", "--:--", "--:--", "--:--")[self.now_or_next]); + (_("waiting for event data..."), "", "--:--", "--:--", "--:--", "--:--")[self.now_or_next]); diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index 60c98ea3..e3077d00 100644 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -12,7 +12,7 @@ class Network: # fixme using interfaces.tmp instead of interfaces for now fp = file('/etc/network/interfaces', 'w') fp.write("auto eth0\n") - if (config.network.dhcp.value == "yes"): + if (config.network.dhcp.value == _("yes")): fp.write("iface eth0 inet dhcp\n") else: fp.write("iface eth0 inet static\n") @@ -131,7 +131,7 @@ def InitNetwork(): print "[Network.py] Could not get current ip (not necessarily an error)" config.network = ConfigSubsection() - config.network.dhcp = configElement_nonSave("config.network.dhcp", configSelection, 1, ("no", "yes")) + config.network.dhcp = configElement_nonSave("config.network.dhcp", configSelection, 1, (_("no"), _("yes"))) config.network.ip = configElement_nonSave("config.network.ip", configSequence, ip, configsequencearg.get("IP")) config.network.netmask = configElement_nonSave("config.network.netmask", configSequence, [255,255,255,0], configsequencearg.get("IP")) config.network.gateway = configElement_nonSave("config.network.gateway", configSequence, [192,168,1,3], configsequencearg.get("IP")) diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py index 0f902679..ffb6f8f9 100644 --- a/lib/python/Screens/TimerEdit.py +++ b/lib/python/Screens/TimerEdit.py @@ -21,8 +21,8 @@ class TimerEditList(Screen): self["timerlist"] = TimerList(list) - self["key_red"] = Button("Delete") - self["key_green"] = Button("Add") + self["key_red"] = Button(_("Delete")) + self["key_green"] = Button(_("Add")) self["key_yellow"] = Button("") self["key_blue"] = Button("") diff --git a/po/Makefile b/po/Makefile index 15a01c52..2f1b66d9 100644 --- a/po/Makefile +++ b/po/Makefile @@ -28,8 +28,11 @@ enigma2.pot: ../lib/python/Screens/About.py \ ../lib/python/Screens/HarddiskSetup.py \ ../lib/python/Screens/InfoBar.py \ + ../lib/python/Screens/TimerEdit.py \ ../lib/python/Components/SetupDevices.py \ - ../lib/python/Components/Language.py + ../lib/python/Components/Language.py \ + ../lib/python/Components/EventInfo.py \ + ../lib/python/Components/Network.py diff --git a/po/de.po b/po/de.po index e1a2d9a3..e08b7032 100644 --- 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" -"POT-Creation-Date: 2005-11-17 22:47+0100\n" +"POT-Creation-Date: 2005-11-17 22:59+0100\n" "PO-Revision-Date: 2005-11-17 20:53+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -26,6 +26,10 @@ msgstr "" msgid "%s (%s, %d MB free)" msgstr "%s (%s, %d MB frei)" +#: ../lib/python/Screens/TimerEdit.py:25 +msgid "Add" +msgstr "" + #: ../lib/python/Screens/HarddiskSetup.py:30 msgid "Bus: " msgstr "Personennahverkehr: " @@ -47,6 +51,11 @@ msgstr "Konfigurationsmodus" msgid "Default" msgstr "Standard" +#: ../lib/python/Screens/TimerEdit.py:24 +#, fuzzy +msgid "Delete" +msgstr "Standard" + #: ../lib/python/Screens/About.py:22 msgid "Detected HDD:" msgstr "Erkannte Festplatten:" @@ -166,6 +175,10 @@ msgstr "" msgid "Use DHCP" msgstr "Adresse automatisch beziehen (DHCP)" +#: ../lib/python/Components/Network.py:134 +msgid "no" +msgstr "nein" + #: ../lib/python/Screens/HarddiskSetup.py:57 msgid "no HDD found" msgstr "keine Festplatte gefunden" @@ -181,3 +194,13 @@ msgstr "unbekannter Dienst" #: ../lib/python/Screens/Ci.py:32 msgid "waiting for CI..." msgstr "warte auf das CI..." + +#: ../lib/python/Components/EventInfo.py:43 +#, fuzzy +msgid "waiting for event data..." +msgstr "warte auf Programmdaten..." + +#: ../lib/python/Components/Network.py:15 +#: ../lib/python/Components/Network.py:134 +msgid "yes" +msgstr "ja" -- 2.30.2