[gnome-control-center] network: Remove markup from translatable strings



commit 96b1052bcd7ecc32076913e740c626bcd43edcde
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Dec 16 11:11:37 2019 +1300

    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 ("<b>%s</b>", escape);
   /* TRANSLATORS: ā€˜%sā€™ is a Wi-Fi Network(SSID) name */
-  label = g_strdup_printf (_("Turning on the hotspot will disconnect from <b>%s</b>, "
-                             "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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]