[gnome-control-center] online-accounts: Remove markup from translatable strings
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] online-accounts: Remove markup from translatable strings
- Date: Mon, 6 Jan 2020 17:03:01 +0000 (UTC)
commit d2e96ff90f87149d4952340aedfd0633771da768
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Dec 16 11:07:16 2019 +1300
online-accounts: Remove markup from translatable strings
panels/online-accounts/cc-online-accounts-panel.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/online-accounts/cc-online-accounts-panel.c
b/panels/online-accounts/cc-online-accounts-panel.c
index 87d8b51d6..0da41a7e6 100644
--- a/panels/online-accounts/cc-online-accounts-panel.c
+++ b/panels/online-accounts/cc-online-accounts-panel.c
@@ -971,7 +971,8 @@ static void
on_remove_button_clicked (CcGoaPanel *panel)
{
GoaAccount *account;
- gchar *label;
+ g_autofree gchar *id = NULL;
+ g_autofree gchar *label = NULL;
if (panel->active_object == NULL)
return;
@@ -983,10 +984,11 @@ on_remove_button_clicked (CcGoaPanel *panel)
panel->active_object = NULL;
account = goa_object_peek_account (panel->removed_object);
+ id = g_strdup_printf ("<b>%s</b>", goa_account_get_presentation_identity (account));
/* Translators: The %s is the username (eg., debarshi ray gmail com
* or rishi).
*/
- label = g_strdup_printf (_("<b>%s</b> removed"), goa_account_get_presentation_identity (account));
+ label = g_strdup_printf (_("%s removed"), id);
gtk_label_set_markup (GTK_LABEL (panel->notification_label), label);
gtk_revealer_set_reveal_child (GTK_REVEALER (panel->notification_revealer), TRUE);
@@ -994,6 +996,4 @@ on_remove_button_clicked (CcGoaPanel *panel)
gtk_widget_hide (panel->edit_account_dialog);
panel->remove_account_timeout_id = g_timeout_add_seconds (10, on_remove_account_timeout, panel);
-
- g_free (label);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]