aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-12-11 01:42:48 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:10 +0800
commiteb36fb6469d08a8d8591e9b9378f52db92144449 (patch)
treec8529312ad2ac93ecca526047156c22c409400b7
parentce67a837ed09687197c8eb9a624fed6cb6d8f149 (diff)
downloadgsoc2013-evolution-eb36fb6469d08a8d8591e9b9378f52db92144449.tar.gz
gsoc2013-evolution-eb36fb6469d08a8d8591e9b9378f52db92144449.tar.zst
gsoc2013-evolution-eb36fb6469d08a8d8591e9b9378f52db92144449.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;
}
}