diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-25 20:08:31 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-25 22:13:41 +0800 |
commit | 1b15b1d3623dd0f2fc584e50d8ae981aea50c9be (patch) | |
tree | a7dc2bea79fb225211edabdb076e8792116aaa75 | |
parent | 0aaa3f2b2c4c6ad3e7d52d13a28103a6490c26ce (diff) | |
download | gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.tar gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.tar.gz gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.tar.bz2 gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.tar.lz gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.tar.xz gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.tar.zst gsoc2013-empathy-1b15b1d3623dd0f2fc584e50d8ae981aea50c9be.zip |
Split markups and translated string to make this easier for translators
-rw-r--r-- | src/empathy-account-assistant.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index b29c62e6f..37b7ec6dd 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -157,7 +157,8 @@ account_assistant_build_error_page (EmpathyAccountAssistant *self, GError *error, gint page_num) { GtkWidget *main_vbox, *w; - const char *primary_message, *secondary_message; + const char *primary_message; + gchar *secondary_message, *markup; EmpathyAccountAssistantPriv *priv = GET_PRIV (self); if (page_num == PAGE_IMPORT) @@ -171,9 +172,9 @@ account_assistant_build_error_page (EmpathyAccountAssistant *self, else primary_message = _("There was an error."); - secondary_message = g_markup_printf_escaped - (_("The error message was: <span style=\"italic\">%s</span>"), - error->message); + markup = g_markup_printf_escaped ("<span style=\"italic\">%s</span>", + error->message); + secondary_message = g_strdup_printf (_("The error message was: %s"), markup); main_vbox = build_error_vbox (primary_message, secondary_message); @@ -185,6 +186,8 @@ account_assistant_build_error_page (EmpathyAccountAssistant *self, gtk_label_set_line_wrap (GTK_LABEL (w), TRUE); gtk_widget_show (w); + g_free (markup); + g_free (secondary_message); return main_vbox; } |