From e10969637a60a2077fbaf62f0a56530a4028bbbf Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Fri, 19 Jun 2009 23:03:42 -0400 Subject: [PATCH] Made the wicd-curses "access denied" string translatable, and updated wicd-curses.py to use it. --- curses/wicd-curses.py | 4 +--- wicd/translations.py | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index 691b402..659b880 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -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 diff --git a/wicd/translations.py b/wicd/translations.py index 77d232d..ef1206d 100644 --- a/wicd/translations.py +++ b/wicd/translations.py @@ -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".''')