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

Fix bug with unicode-translated locale and wicd-curses

This commit is contained in:
David Paleino
2011-12-19 23:04:08 +01:00
parent 4ed7f27cc1
commit d9fc1b7593

View File

@@ -146,7 +146,7 @@ def check_for_wireless(iwconfig, wireless_ip, set_status):
if not network:
return False
network = unicode(network)
network = misc.to_unicode(network)
if daemon.GetSignalDisplayType() == 0:
strength = wireless.GetCurrentSignalStrength(iwconfig)
else:
@@ -154,12 +154,12 @@ def check_for_wireless(iwconfig, wireless_ip, set_status):
if strength is None:
return False
strength = str(strength)
ip = str(wireless_ip)
strength = misc.to_unicode(daemon.FormatSignalForPrinting(strength))
ip = misc.to_unicode(wireless_ip)
set_status(_('Connected to $A at $B (IP: $C)').replace
('$A', network).replace
('$B', daemon.FormatSignalForPrinting(strength)).replace
('$C', wireless_ip))
('$B', strength).replace
('$C', ip))
return True