aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2009-12-20 05:04:39 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2010-01-12 04:25:59 +0800
commit6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5 (patch)
tree7dfb907a1ae08accee4abbf5356f6234dc1a0767 /embed
parent9e563f02b627ff8a0b8732666fe74ee02c6b4671 (diff)
downloadgsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.tar
gsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.tar.gz
gsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.tar.bz2
gsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.tar.lz
gsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.tar.xz
gsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.tar.zst
gsoc2013-epiphany-6c25db3e068fbd2ff24ed63f1e3c4222f2f75eb5.zip
Improve infobar text a bit
Include a mention to the username being saved and the domain where the form is. Bug #605022
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-web-view.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index ff4f912d0..62bad1ec0 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1,4 +1,5 @@
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2008, 2009 Gustavo Noronha Silva
* Copyright © 2009 Igalia S.L.
@@ -975,6 +976,7 @@ request_decision_on_storing (StorePasswordData *store_data)
GtkWidget *content_area;
GtkWidget *label;
char *message;
+ char *hostname;
LOG ("Going to show infobar about %s", store_data->uri);
@@ -984,7 +986,7 @@ request_decision_on_storing (StorePasswordData *store_data)
button_box = gtk_hbutton_box_new ();
gtk_container_add (GTK_CONTAINER (action_area), button_box);
- action_button = gtk_button_new_from_stock (GTK_STOCK_NO);
+ action_button = gtk_button_new_with_label (_("Not now"));
g_signal_connect (action_button, "clicked",
G_CALLBACK (send_no_response_cb), info_bar);
gtk_box_pack_start (GTK_BOX (button_box), action_button, FALSE, FALSE, 0);
@@ -995,9 +997,16 @@ request_decision_on_storing (StorePasswordData *store_data)
gtk_box_pack_start (GTK_BOX (button_box), action_button, FALSE, FALSE, 0);
label = gtk_label_new (NULL);
- message = g_strdup_printf (_("<big><b>Would you like to store the password for %s?</b></big>"),
- store_data->uri);
+ hostname = ephy_string_get_host_name (store_data->uri);
+ /* Translators: The first %s is the username and the second one is the
+ * hostname where this is happening. Example: gnome@gmail.com and
+ * mail.google.com.
+ */
+ message = g_strdup_printf (_("<big>Would you like to store the password for <b>%s</b> in <b>%s</b>?</big>"),
+ store_data->name_value,
+ hostname);
gtk_label_set_markup (GTK_LABEL (label), message);
+ g_free (hostname);
g_free (message);
content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));