summaryrefslogtreecommitdiff
path: root/panels
diff options
context:
space:
mode:
authorFelipe Borges <felipeborges@gnome.org>2023-04-11 13:39:14 +0200
committerFelipe Borges <felipeborges@gnome.org>2023-04-20 09:24:21 +0000
commite3965a65868922e11bdb30a7b959d25a77979fb2 (patch)
treea82c01aa964944f175e364b13abbb8e359580fcb /panels
parent3a60c1a8424a92c37df3a5c60a11b98594a2b4ec (diff)
downloadgnome-control-center-e3965a65868922e11bdb30a7b959d25a77979fb2.tar.gz
wifi: Include network name in the Forget dialog
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1701#note_1719089
Diffstat (limited to 'panels')
-rw-r--r--panels/network/connection-editor/ce-page-details.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/panels/network/connection-editor/ce-page-details.c b/panels/network/connection-editor/ce-page-details.c
index 8b4341e24..90acf9172 100644
--- a/panels/network/connection-editor/ce-page-details.c
+++ b/panels/network/connection-editor/ce-page-details.c
@@ -86,12 +86,15 @@ forget_cb (CEPageDetails *self)
{
GtkWidget *dialog;
GtkNative *native;
+ g_autofree gchar *message = NULL;
native = gtk_widget_get_native (GTK_WIDGET (self));
-
+ /* Translators: "%s" is the user visible name of the network */
+ message = g_strdup_printf (_("Saved details for %s will be permanently lost. This includes passwords and any network changes."),
+ nm_connection_get_id (self->connection));
dialog = adw_message_dialog_new (GTK_WINDOW (native),
_("Forget Connection?"),
- _("Network details for the selected networks, including passwords and any custom configuration will be lost."));
+ message);
adw_message_dialog_add_responses (ADW_MESSAGE_DIALOG (dialog),
"cancel", _("_Cancel"),