From 96b1052bcd7ecc32076913e740c626bcd43edcde Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Mon, 16 Dec 2019 11:11:37 +1300 Subject: [PATCH] network: Remove markup from translatable strings --- panels/network/cc-wifi-hotspot-dialog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/panels/network/cc-wifi-hotspot-dialog.c b/panels/network/cc-wifi-hotspot-dialog.c index f13e52bf2..019c914c9 100644 --- a/panels/network/cc-wifi-hotspot-dialog.c +++ b/panels/network/cc-wifi-hotspot-dialog.c @@ -106,6 +106,7 @@ wifi_hotspot_dialog_update_main_label (CcWifiHotspotDialog *self) GBytes *ssid = NULL; g_autofree gchar *active_ssid = NULL; g_autofree gchar *escape = NULL; + g_autofree gchar *ssid_text = NULL; g_autofree gchar *label = NULL; g_assert (CC_IS_WIFI_HOTSPOT_DIALOG (self)); @@ -126,9 +127,10 @@ wifi_hotspot_dialog_update_main_label (CcWifiHotspotDialog *self) return; escape = g_markup_escape_text (active_ssid, -1); + ssid_text = g_strdup_printf ("%s", escape); /* TRANSLATORS: ā€˜%sā€™ is a Wi-Fi Network(SSID) name */ - label = g_strdup_printf (_("Turning on the hotspot will disconnect from %s, " - "and it will not be possible to access the internet through Wi-Fi."), escape); + label = g_strdup_printf (_("Turning on the hotspot will disconnect from %s, " + "and it will not be possible to access the internet through Wi-Fi."), ssid_text); gtk_label_set_markup (self->connection_label, label); }