From 2fcfe7e7703ce61ccb532939b6e2132b8423b7c3 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 17 Nov 2005 21:43:50 +0000 Subject: translations --- lib/python/Components/SetupDevices.py | 18 +++++++++--------- lib/python/Screens/About.py | 8 ++++---- lib/python/Screens/Ci.py | 2 +- lib/python/Screens/EventView.py | 4 ++-- lib/python/Screens/HarddiskSetup.py | 12 ++++++------ lib/python/Screens/Satconfig.py | 2 +- 6 files changed, 23 insertions(+), 23 deletions(-) (limited to 'lib/python') diff --git a/lib/python/Components/SetupDevices.py b/lib/python/Components/SetupDevices.py index 6ce8737b..2c5990a9 100644 --- a/lib/python/Components/SetupDevices.py +++ b/lib/python/Components/SetupDevices.py @@ -18,10 +18,10 @@ def InitSetupDevices(): config.timezone.val.addNotifier(timezoneNotifier) config.rc = ConfigSubsection(); - config.rc.map = configElement("config.rc.map", configSelection, 0, ("Default", "Classic") ); + config.rc.map = configElement("config.rc.map", configSelection, 0, (_("Default"), _("Classic")) ); config.keyboard = ConfigSubsection(); - config.keyboard.keymap = configElement("config.keyboard.keymap", configSelection, 1, ("English", "German") ); + config.keyboard.keymap = configElement("config.keyboard.keymap", configSelection, 1, (_("English"), _("German")) ); config.osd = ConfigSubsection(); config.osd.alpha = configElement("config.osd.alpha", ConfigSlider, 0, ""); @@ -35,13 +35,13 @@ def InitSetupDevices(): config.osd.language.addNotifier(languageNotifier) config.parental = ConfigSubsection(); - config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") ); - config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") ); + config.parental.lock = configElement("config.parental.lock", configSelection, 1, (_("Enable"), _("Disable")) ); + config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, (_("Enable"), _("Disable")) ); config.expert = ConfigSubsection(); config.expert.splitsize = configElement("config.expert.splitsize", configSelection, 1, ("0.5Gbyte", "1.0 GByte", "1.5 GByte", "2.0 GByte") ); - config.expert.satpos = configElement("config.expert.satpos", configSelection, 1, ("Enable", "Disable") ); - config.expert.fastzap = configElement("config.expert.fastzap", configSelection, 0, ("Enable", "Disable") ); - config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, ("Enable", "Disable") ); - config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, ("Enable", "Disable") ); - config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, ("Enable", "Disable") ); + config.expert.satpos = configElement("config.expert.satpos", configSelection, 1, (_("Enable"), _("Disable")) ); + config.expert.fastzap = configElement("config.expert.fastzap", configSelection, 0, (_("Enable"), _("Disable")) ); + config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, (_("Enable"), _("Disable")) ); + config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, (_("Enable"), _("Disable")) ); + config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, (_("Enable"), _("Disable")) ); diff --git a/lib/python/Screens/About.py b/lib/python/Screens/About.py index 5359b26b..2e267a07 100644 --- a/lib/python/Screens/About.py +++ b/lib/python/Screens/About.py @@ -11,7 +11,7 @@ class About(Screen): self["text"] = Label("Enigma v2.0b") - self["tuner"] = Label("Detected NIMs:") + self["tuner"] = Label(_("Detected NIMs:")) nims = nimmanager.nimList() count = 0 @@ -19,12 +19,12 @@ class About(Screen): self["tuner" + str(count)] = Label(i[0]) count += 1 - self["hdd"] = Label("Detected HDD:") + self["hdd"] = Label(_("Detected HDD:")) hdd = Harddisk(0) if hdd.model() != "": - self["hddA"] = Label("%s (%s, %d MB free)" % (hdd.model(), hdd.capacity(),hdd.free())) + self["hddA"] = Label(_("%s (%s, %d MB free)") % (hdd.model(), hdd.capacity(),hdd.free())) else: - self["hddA"] = Label("none") + self["hddA"] = Label(_("none")) self["actions"] = ActionMap(["SetupActions"], { diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index fe34f4aa..7217cb72 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -29,7 +29,7 @@ class CiWait(Screen): def __init__(self, session, slot, query): Screen.__init__(self, session) - self["message"] = Label("waiting for CI...") + self["message"] = Label(_("waiting for CI...")) self["actions"] = ActionMap(["OkCancelActions"], { diff --git a/lib/python/Screens/EventView.py b/lib/python/Screens/EventView.py index b8ad1e0e..f7c77e71 100644 --- a/lib/python/Screens/EventView.py +++ b/lib/python/Screens/EventView.py @@ -40,7 +40,7 @@ class EventView(Screen): if name is not None: self["channel"].setText(name) else: - self["channel"].setText("unknown service") + self["channel"].setText(_("unknown service")) def setEvent(self, event): text = event.getEventName() @@ -55,7 +55,7 @@ class EventView(Screen): # self.session.currentDialog.instance.setTitle(event.getEventName()) self["epg_description"].setText(text) self["datetime"].setText(event.getBeginTimeString()) - self["duration"].setText("%d min"%(event.getDuration()/60)) + self["duration"].setText(_("%d min")%(event.getDuration()/60)) def pageUp(self): self["epg_description"].pageUp() diff --git a/lib/python/Screens/HarddiskSetup.py b/lib/python/Screens/HarddiskSetup.py index 73e3d646..3e90d4fb 100644 --- a/lib/python/Screens/HarddiskSetup.py +++ b/lib/python/Screens/HarddiskSetup.py @@ -15,7 +15,7 @@ class HarddiskWait(Screen): def __init__(self, session, hdd): Screen.__init__(self, session) self.hdd = hdd - self["wait"] = Label("Initializing Harddisk..."); + self["wait"] = Label(_("Initializing Harddisk...")); self.timer = eTimer() self.timer.timeout.get().append(self.doInit) self.timer.start(100) @@ -25,10 +25,10 @@ class HarddiskSetup(Screen): Screen.__init__(self, session) self.hdd = hdd - self["model"] = Label("Model: " + hdd.model()) - self["capacity"] = Label("Capacity: " + hdd.capacity()) - self["bus"] = Label("Bus: " + hdd.bus()) - self["initialize"] = Label("Initialize") + self["model"] = Label(_("Model: ") + hdd.model()) + self["capacity"] = Label(_("Capacity: ") + hdd.capacity()) + self["bus"] = Label(_("Bus: ") + hdd.bus()) + self["initialize"] = Label(_("Initialize")) self["actions"] = ActionMap(["OkCancelActions"], { @@ -54,7 +54,7 @@ class HarddiskSelection(Screen): if harddiskmanager.HDDCount() == 0: tlist = [] - tlist.append(("no HDD found", 0)) + tlist.append((_("no HDD found"), 0)) self["hddlist"] = MenuList(tlist) else: self["hddlist"] = MenuList(harddiskmanager.HDDList()) diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index 204c6a80..ffbad260 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -54,7 +54,7 @@ class NimSetup(Screen): def keyRight(self): #forbid to enable advanced mode until its ready - if self["config"].getCurrent()[0] != "Configmode": + if self["config"].getCurrent()[0] != _("Configmode"): self["config"].handleKey(config.key["nextElement"]) self.newConfig() -- cgit v1.2.3