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

Made the wicd-curses "access denied" string translatable, and updated wicd-curses.py to use it.

This commit is contained in:
Andrew Psaltis
2009-06-19 23:03:42 -04:00
parent 5eee87cf80
commit e10969637a
2 changed files with 3 additions and 4 deletions

View File

@@ -1051,9 +1051,7 @@ if __name__ == '__main__':
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REV,daemon.Hello()))
except Exception as e:
if "DBus.Error.AccessDenied" in e.get_dbus_name():
print "\
echo ERROR: wicd-curses was denied access to the wicd daemon, please check that \
your user is in the group \'\033[1;34m"+ wpath.wicd_group+"\033[0m\'."
print language['access_denied_wc'].replace('$A','\033[1;34m'+wpath.wicd_group+'\033[0m')
sys.exit(1)
else:
raise