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
|
||||
|
||||
@@ -55,7 +55,7 @@ def get_gettext():
|
||||
_ = lang.gettext
|
||||
return _
|
||||
|
||||
# Generated automatically on Fri, 05 Jun 2009 03:13:27 CDT
|
||||
# Generated automatically on Fri, 19 Jun 2009 21:59:18 CDT
|
||||
_ = get_gettext()
|
||||
language = {}
|
||||
language['resetting_ip_address'] = _('''Resetting IP address...''')
|
||||
@@ -216,3 +216,4 @@ language['establishing_connection'] = _('''Establishing connection...''')
|
||||
language['association_failed'] = _('''Connection failed: Could not contact the wireless access point.''')
|
||||
language['access_denied'] = _('''Unable to contact the Wicd daemon due to an access denied error from DBus. Please check your DBus configuration.''')
|
||||
language['disconnecting_active'] = _('''Disconnecting active connections...''')
|
||||
language['access_denied_wc'] = _('''ERROR: wicd-curses was denied access to the wicd daemon, please check that your user is in the group "$A".''')
|
||||
|
||||
Reference in New Issue
Block a user