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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user