aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-12-11 01:42:48 +0800
committerMilan Crha <mcrha@redhat.com>2010-12-11 01:44:21 +0800
commitbbd5f80d888288edac588907b2f0ff7df8faef2a (patch)
treed9b07e0a0e3f93c80608f023feec8d4ccde1c73d
parent41bafcedf50d91519242125e5a41e2bb03e695bd (diff)
downloadgsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.tar
gsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.tar.gz
gsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.tar.bz2
gsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.tar.lz
gsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.tar.xz
gsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.tar.zst
gsoc2013-evolution-bbd5f80d888288edac588907b2f0ff7df8faef2a.zip
Properly translate NC_ messages
-rw-r--r--plugins/email-custom-header/email-custom-header.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/plugins/email-custom-header/email-custom-header.c b/plugins/email-custom-header/email-custom-header.c
index d44dc0f744..6deb67a8e6 100644
--- a/plugins/email-custom-header/email-custom-header.c
+++ b/plugins/email-custom-header/email-custom-header.c
@@ -339,13 +339,8 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch)
priv->header_type_name_label = gtk_label_new ("");
temp_header_ptr = &g_array_index (priv->email_custom_header_details, EmailCustomHeaderDetails,header_section_id);
str = (temp_header_ptr->header_type_value)->str;
- if (strcmp (str, security_field) == 0) {
- gchar *tmp = g_strconcat ("email-custom-header-Security" "\004", security_field, NULL);
-
- str = g_dpgettext (NULL, tmp, strlen ("email-custom-header-Security") + 1);
-
- g_free (tmp);
- }
+ if (strcmp (str, security_field) == 0)
+ str = g_dpgettext2 (GETTEXT_PACKAGE, "email-custom-header-Security", security_field);
gtk_label_set_markup (GTK_LABEL (priv->header_type_name_label), str);
gtk_table_attach (GTK_TABLE (priv->header_table), priv->header_type_name_label, 0, 1, row, column,
@@ -373,11 +368,7 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch)
str = (temp_header_value_ptr->sub_header_string_value)->str;
for (i = 0; security_values[i].value != NULL; i++) {
if (strcmp (str, security_values[i].value) == 0) {
- gchar *tmp = g_strconcat ("email-custom-header-Security" "\004", security_values[i].str, NULL);
-
- str = g_dpgettext (NULL, tmp, strlen ("email-custom-header-Security") + 1);
-
- g_free (tmp);
+ str = g_dpgettext2 (GETTEXT_PACKAGE, "email-custom-header-Security", security_values[i].str);
break;
}
}