X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/66795123ebff2381a76b60a3bc81ee55c51ff6fd..ee40571728b22048490e46f20e8260b71733dbab:/lib/python/Screens/NetworkSetup.py diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index 3f5520b1..0724eb73 100644 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py @@ -4,6 +4,7 @@ from Components.ConfigList import ConfigList from Components.config import config from Components.config import getConfigListEntry from Components.Network import iNetwork +from Components.Label import Label class NetworkSetup(Screen): def __init__(self, session): @@ -31,22 +32,24 @@ class NetworkSetup(Screen): self["config"] = ConfigList(self.list) self.createSetup() + self["introduction"] = Label("Press OK to activate the settings.") + def createSetup(self): self.list = [] - self.list.append(getConfigListEntry("Use DHCP", config.network.dhcp)) + self.list.append(getConfigListEntry(_("Use DHCP"), config.network.dhcp)) if (config.network.dhcp.value == 0): - self.list.append(getConfigListEntry("IP Address", config.network.ip)) - self.list.append(getConfigListEntry("Netmask", config.network.netmask)) - self.list.append(getConfigListEntry("Gateway", config.network.gateway)) - self.list.append(getConfigListEntry("Nameserver", config.network.dns)) + self.list.append(getConfigListEntry(_('IP Address'), config.network.ip)) + self.list.append(getConfigListEntry(_('Netmask'), config.network.netmask)) + self.list.append(getConfigListEntry(_('Gateway'), config.network.gateway)) + self.list.append(getConfigListEntry(_('Nameserver'), config.network.dns)) self["config"].list = self.list self["config"].l.setList(self.list) def newConfig(self): print self["config"].getCurrent() - if self["config"].getCurrent()[0] == "Use DHCP": + if self["config"].getCurrent()[0] == _("Use DHCP"): self.createSetup() def keyLeft(self):