[gnome-flashback] polkit: improve error message when authentication fails
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] polkit: improve error message when authentication fails
- Date: Sun, 6 Sep 2015 20:59:05 +0000 (UTC)
commit 4eff8b291a6078e432f71cbb85d3175389810841
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 6 22:05:18 2015 +0300
polkit: improve error message when authentication fails
Based on 06-authentication-failure-string.patch from Robert Ancell:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/policykit-1-gnome/wily/view/head:/debian/patches/
https://bugzilla.gnome.org/show_bug.cgi?id=592978
.../libpolkit/flashback-authenticator.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gnome-flashback/libpolkit/flashback-authenticator.c
b/gnome-flashback/libpolkit/flashback-authenticator.c
index 081ab02..f40bafb 100644
--- a/gnome-flashback/libpolkit/flashback-authenticator.c
+++ b/gnome-flashback/libpolkit/flashback-authenticator.c
@@ -249,11 +249,13 @@ do_initiate (gpointer user_data)
{
if (authenticator->dialog != NULL)
{
- gchar *s;
+ const gchar *s;
+ gchar *m;
- s = g_strconcat ("<b>", _("Authentication Failure"), "</b>", NULL);
- flashback_polkit_dialog_set_info_message (dialog, s);
- g_free (s);
+ s = _("Your authentication attempt was unsuccessful. Please try again.");
+ m = g_strconcat ("<b>", s, "</b>", NULL);
+ flashback_polkit_dialog_set_info_message (dialog, m);
+ g_free (m);
gtk_widget_queue_draw (authenticator->dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]