online-accounts: Remove markup from translatable strings
This commit is contained in:
parent
01fea23df1
commit
d2e96ff90f
1 changed files with 4 additions and 4 deletions
|
@ -971,7 +971,8 @@ static void
|
||||||
on_remove_button_clicked (CcGoaPanel *panel)
|
on_remove_button_clicked (CcGoaPanel *panel)
|
||||||
{
|
{
|
||||||
GoaAccount *account;
|
GoaAccount *account;
|
||||||
gchar *label;
|
g_autofree gchar *id = NULL;
|
||||||
|
g_autofree gchar *label = NULL;
|
||||||
|
|
||||||
if (panel->active_object == NULL)
|
if (panel->active_object == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -983,10 +984,11 @@ on_remove_button_clicked (CcGoaPanel *panel)
|
||||||
panel->active_object = NULL;
|
panel->active_object = NULL;
|
||||||
|
|
||||||
account = goa_object_peek_account (panel->removed_object);
|
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
|
/* Translators: The %s is the username (eg., debarshi.ray@gmail.com
|
||||||
* or rishi).
|
* 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_label_set_markup (GTK_LABEL (panel->notification_label), label);
|
||||||
gtk_revealer_set_reveal_child (GTK_REVEALER (panel->notification_revealer), TRUE);
|
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);
|
gtk_widget_hide (panel->edit_account_dialog);
|
||||||
|
|
||||||
panel->remove_account_timeout_id = g_timeout_add_seconds (10, on_remove_account_timeout, panel);
|
panel->remove_account_timeout_id = g_timeout_add_seconds (10, on_remove_account_timeout, panel);
|
||||||
|
|
||||||
g_free (label);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue