X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e7a77b87eee22c35e93cbd42b329dc5165e29144..64fdc7815a0b07777d9c9706f02317d325f8f773:/lib/python/Screens/NetworkSetup.py diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index 3d64f522..37d2c850 100644 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py @@ -32,12 +32,13 @@ class NetworkSetup(Screen): self["config"] = ConfigList(self.list) self.createSetup() - self["introduction"] = Label("Press OK to activate the settings.") + self["introduction"] = Label(_("Press OK to activate the settings.")) def createSetup(self): self.list = [] - self.list.append(getConfigListEntry(_("Use DHCP"), config.network.dhcp)) + self.dhcpEntry = getConfigListEntry(_("Use DHCP"), config.network.dhcp) + self.list.append(self.dhcpEntry) self.list.append(getConfigListEntry(_('IP Address'), config.network.ip)) if (config.network.dhcp.value == 0): self.list.append(getConfigListEntry(_('Netmask'), config.network.netmask)) @@ -49,7 +50,7 @@ class NetworkSetup(Screen): def newConfig(self): print self["config"].getCurrent() - if self["config"].getCurrent()[0] == _("Use DHCP"): + if self["config"].getCurrent() == self.dhcpEntry: self.createSetup() def keyLeft(self):