Added few translator comments

As requested in bug #635414
This commit is contained in:
Milan Crha
2010-11-29 21:31:43 +01:00
parent f8585c4189
commit ce02a16bd1
3 changed files with 20 additions and 11 deletions

View File

@ -87,6 +87,7 @@
<error id="backend-died" type="error"> <error id="backend-died" type="error">
<_primary>The Evolution address book has quit unexpectedly.</_primary> <_primary>The Evolution address book has quit unexpectedly.</_primary>
<!-- Translators: {0} is replaced with an address book name which will not be available -->
<_secondary>Your contacts for {0} will not be available until Evolution is restarted.</_secondary> <_secondary>Your contacts for {0} will not be available until Evolution is restarted.</_secondary>
</error> </error>

View File

@ -93,7 +93,7 @@
<child> <child>
<object class="GtkLabel" id="label3"> <object class="GtkLabel" id="label3">
<property name="visible">True</property> <property name="visible">True</property>
<property name="label" translatable="yes">Conflicting Contact:</property> <property name="label" translatable="yes" comment="Translators: Heading of the contact which has same name or email in this folder already.">Conflicting Contact:</property>
<property name="use_underline">False</property> <property name="use_underline">False</property>
<property name="use_markup">False</property> <property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property> <property name="justify">GTK_JUSTIFY_CENTER</property>

View File

@ -315,17 +315,17 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch)
gint sub_index,row_combo,column_combo; gint sub_index,row_combo,column_combo;
gint header_section_id,sub_type_index,row,column; gint header_section_id,sub_type_index,row,column;
gint i; gint i;
gchar *str; const gchar *str;
static const gchar *security_field = N_("Security:"); static const gchar *security_field = NC_("email-custom-header-Security", "Security:");
static struct _security_values { static struct _security_values {
const gchar *value, *str; const gchar *value, *str;
} security_values[] = { } security_values[] = {
{ "Personal", N_("Personal") } , { "Personal", NC_("email-custom-header-Security", "Personal") } ,
{ "Unclassified", N_("Unclassified") }, { "Unclassified", NC_("email-custom-header-Security", "Unclassified") },
{ "Protected", N_("Protected") }, { "Protected", NC_("email-custom-header-Security", "Protected") },
{ "InConfidence", N_("Confidential") }, { "InConfidence", NC_("email-custom-header-Security", "Confidential") },
{ "Secret", N_("Secret") }, { "Secret", NC_("email-custom-header-Security", "Secret") },
{ "Topsecret", N_("Top secret") }, { "Topsecret", NC_("email-custom-header-Security", "Top secret") },
{ NULL, NULL } { NULL, NULL }
}; };
@ -340,7 +340,11 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch)
temp_header_ptr = &g_array_index (priv->email_custom_header_details, EmailCustomHeaderDetails,header_section_id); temp_header_ptr = &g_array_index (priv->email_custom_header_details, EmailCustomHeaderDetails,header_section_id);
str = (temp_header_ptr->header_type_value)->str; str = (temp_header_ptr->header_type_value)->str;
if (strcmp (str, security_field) == 0) { if (strcmp (str, security_field) == 0) {
str = _(security_field); 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);
} }
gtk_label_set_markup (GTK_LABEL (priv->header_type_name_label), str); gtk_label_set_markup (GTK_LABEL (priv->header_type_name_label), str);
@ -369,7 +373,11 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch)
str = (temp_header_value_ptr->sub_header_string_value)->str; str = (temp_header_value_ptr->sub_header_string_value)->str;
for (i = 0; security_values[i].value != NULL; i++) { for (i = 0; security_values[i].value != NULL; i++) {
if (strcmp (str, security_values[i].value) == 0) { if (strcmp (str, security_values[i].value) == 0) {
str = _(security_values[i].str); 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);
break; break;
} }
} }