1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Fixes in a more general way

This commit is contained in:
David Paleino
2012-03-06 12:11:45 +01:00
parent c832ef548b
commit d020409bee

View File

@@ -75,10 +75,14 @@ from os import system
CURSES_REV=wpath.curses_revision CURSES_REV=wpath.curses_revision
# Fix strings in wicd-curses # Fix strings in wicd-curses
from wicd.translations import language, _ from wicd.translations import language
from wicd.translations import _ as orig_
for i in language.keys(): for i in language.keys():
language[i] = language[i].decode('utf8') language[i] = language[i].decode('utf8')
def _(s):
orig_(s).decode('utf8')
######################################## ########################################
##### SUPPORT CLASSES ##### SUPPORT CLASSES
######################################## ########################################
@@ -350,7 +354,7 @@ class NetLabel(urwid.WidgetWrap):
if wireless.GetWirelessProperty(id, 'encryption'): if wireless.GetWirelessProperty(id, 'encryption'):
self.encrypt = wireless.GetWirelessProperty(id,'encryption_method') self.encrypt = wireless.GetWirelessProperty(id,'encryption_method')
else: else:
self.encrypt = _('Unsecured').decode('utf-8') self.encrypt = _('Unsecured')
self.mode = wireless.GetWirelessProperty(id, 'mode') # Master, Ad-Hoc self.mode = wireless.GetWirelessProperty(id, 'mode') # Master, Ad-Hoc
self.channel = wireless.GetWirelessProperty(id, 'channel') self.channel = wireless.GetWirelessProperty(id, 'channel')