X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e7a77b87eee22c35e93cbd42b329dc5165e29144..c16d405383c4be419e4a88db6d02894b7cfbf74d:/lib/python/Screens/NetworkSetup.py diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py index 3d64f522..03179758 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): @@ -77,4 +78,4 @@ class NetworkSetup(Screen): for x in self["config"].list: x[1].cancel() iNetwork.loadNetworkConfig() - self.close() \ No newline at end of file + self.close()