aboutsummaryrefslogtreecommitdiffstats
path: root/capplet
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-23 17:20:50 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-23 17:20:50 +0800
commit91020b05a3107e4ae51d7aa33dc0bebe5b668e6d (patch)
treee3b2445f54a7d74e5ff00ebbd8ecfa70235ed016 /capplet
parentedf6286a38279e6db82dee4da50e94c587f06e02 (diff)
downloadgsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.tar.gz
gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.tar.zst
gsoc2013-evolution-91020b05a3107e4ae51d7aa33dc0bebe5b668e6d.zip
Bug #360461 - Avoid markup in translatable messages
Diffstat (limited to 'capplet')
-rw-r--r--capplet/settings/mail-account-view.c13
-rw-r--r--capplet/settings/mail-settings-view.c5
2 files changed, 14 insertions, 4 deletions
diff --git a/capplet/settings/mail-account-view.c b/capplet/settings/mail-account-view.c
index 8c488af5b4..6e2299b308 100644
--- a/capplet/settings/mail-account-view.c
+++ b/capplet/settings/mail-account-view.c
@@ -169,6 +169,7 @@ create_review (MailAccountView *view)
gchar *uri;
gchar *enc;
CamelURL *url;
+ gchar *buff;
uri = (gchar *)e_account_get_string(em_account_editor_get_modified_account(view->edit), E_ACCOUNT_SOURCE_URL);
if (!uri || (url = camel_url_new(uri, NULL)) == NULL)
@@ -178,7 +179,9 @@ create_review (MailAccountView *view)
gtk_table_set_row_spacings ((GtkTable *)table, 4);
label = gtk_label_new (NULL);
- gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Personal details:</span>"));
+ buff = g_strconcat ("<span size=\"large\" weight=\"bold\">", _("Personal details:"), "</span>", NULL);
+ gtk_label_set_markup ((GtkLabel *)label, buff);
+ g_free (buff);
gtk_widget_show (label);
PACK_BOXF(label)
gtk_table_attach ((GtkTable *)table, box, 0, 1, 0, 1, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3);
@@ -202,7 +205,9 @@ create_review (MailAccountView *view)
gtk_table_attach ((GtkTable *)table, box, 1, 2, 2, 3, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3);
label = gtk_label_new (NULL);
- gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Receiving details:</span>"));
+ buff = g_strconcat ("<span size=\"large\" weight=\"bold\">", _("Receiving details:"), "</span>", NULL);
+ gtk_label_set_markup ((GtkLabel *)label, buff);
+ g_free (buff);
gtk_widget_show (label);
PACK_BOXF(label);
gtk_table_attach ((GtkTable *)table, box, 0, 1, 3, 4, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3);
@@ -250,7 +255,9 @@ create_review (MailAccountView *view)
return NULL;
label = gtk_label_new (NULL);
- gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Sending details:</span>"));
+ buff = g_strconcat ("<span size=\"large\" weight=\"bold\">", _("Sending details:"), "</span>", NULL);
+ gtk_label_set_markup ((GtkLabel *)label, buff);
+ g_free (buff);
gtk_widget_show (label);
PACK_BOXF(label);
gtk_table_attach ((GtkTable *)table, box, 0, 1, 8, 9, GTK_EXPAND|GTK_FILL, GTK_SHRINK, 10, 3);
diff --git a/capplet/settings/mail-settings-view.c b/capplet/settings/mail-settings-view.c
index ee5858c893..25a87cfbd4 100644
--- a/capplet/settings/mail-settings-view.c
+++ b/capplet/settings/mail-settings-view.c
@@ -176,11 +176,14 @@ msv_regen_view (MailSettingsView *acview)
EAccountList *accounts = acview->priv->accounts;
EIterator *node;
GtkWidget *box, *label;
+ gchar *buff;
gtk_container_foreach((GtkContainer *)acview->priv->box, (GtkCallback)gtk_widget_destroy, NULL);
label = gtk_label_new (NULL);
- gtk_label_set_markup ((GtkLabel *)label, _("<span size=\"large\" weight=\"bold\">Account management</span>"));
+ buff = g_strconcat ("<span size=\"large\" weight=\"bold\">", _("Account management"), "</span>", NULL);
+ gtk_label_set_markup ((GtkLabel *)label, buff);
+ g_free (buff);
PACK_BOX(label,12);
node = e_list_get_iterator ((EList *) accounts);