aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoracid-burn <acidburn@opendreambox.org>2008-11-14 09:54:41 +0100
committeracid-burn <acidburn@opendreambox.org>2008-11-14 09:54:41 +0100
commitda81f2941ca129621d6511d1dcbc96bd29f4802b (patch)
treefd902f93bf627127c2574d74b3a06f540e82b74b
parent6933710b3eab806151f6352d3b1a228fb72a3e96 (diff)
downloadenigma2-da81f2941ca129621d6511d1dcbc96bd29f4802b.tar.gz
enigma2-da81f2941ca129621d6511d1dcbc96bd29f4802b.zip
make hidden... translateable
-rwxr-xr-xlib/python/Screens/NetworkSetup.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py
index 32e2dafd..5cb4d390 100755
--- a/lib/python/Screens/NetworkSetup.py
+++ b/lib/python/Screens/NetworkSetup.py
@@ -426,10 +426,10 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen):
if a['active']:
if a['essid'] == "":
a['essid'] = a['bssid']
- self.nwlist.append( a['essid'])
+ self.nwlist.append((a['essid'],a['essid']))
self.nwlist.sort(key = lambda x: x[0])
except:
- self.nwlist.append("No Networks found")
+ self.nwlist.append(("No Networks found",_("No Networks found")))
self.wsconfig = self.ws.loadConfig()
if self.essid is not None: # ssid from wlan scan
@@ -438,10 +438,9 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen):
self.default = self.wsconfig['ssid']
if "hidden..." not in self.nwlist:
- self.nwlist.append("hidden...")
+ self.nwlist.append(("hidden...",_("hidden network")))
if self.default not in self.nwlist:
- self.nwlist.append(self.default)
-
+ self.nwlist.append((self.default,self.default))
config.plugins.wlan.essid = NoSave(ConfigSelection(self.nwlist, default = self.default ))
config.plugins.wlan.hiddenessid = NoSave(ConfigText(default = self.wsconfig['hiddenessid'], visible_width = 50, fixed_size = False))