aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schaarschmidt <schaarsc@gmx.de>2014-06-30 17:51:52 +0800
committerMilan Crha <mcrha@redhat.com>2014-06-30 17:51:52 +0800
commitaaf0bd7d79486b1e65ed63f5a560c7186764bb7b (patch)
tree1845e7897e5c0d8ee5a84eed219633205a3096a3
parentd252985f6fa1448283ab0f8be6508aff654af402 (diff)
downloadgsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.tar
gsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.tar.gz
gsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.tar.bz2
gsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.tar.lz
gsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.tar.xz
gsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.tar.zst
gsoc2013-evolution-aaf0bd7d79486b1e65ed63f5a560c7186764bb7b.zip
Add translator comments and contexts for texts added for bug 729963
-rw-r--r--addressbook/util/eab-book-util.c58
1 files changed, 38 insertions, 20 deletions
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 8d4a0a8de2..9eadb4435a 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -33,17 +33,17 @@
static EABTypeLabel
email_types[] =
{
- { -1, "WORK", NULL, N_ ("Work Email") },
- { -1, "HOME", NULL, N_ ("Home Email") },
- { -1, "OTHER", NULL, N_ ("Other Email") }
+ { -1, "WORK", NULL, NC_ ("addressbook-label", "Work Email") },
+ { -1, "HOME", NULL, NC_ ("addressbook-label", "Home Email") },
+ { -1, "OTHER", NULL, NC_ ("addressbook-label", "Other Email") }
};
static EABTypeLabel
sip_types[] =
{
- { E_CONTACT_SIP, "WORK", NULL, N_ ("Work SIP") },
- { E_CONTACT_SIP, "HOME", NULL, N_ ("Home SIP") },
- { E_CONTACT_SIP, "OTHER", NULL, N_ ("Other SIP") }
+ { E_CONTACT_SIP, "WORK", NULL, NC_ ("addressbook-label", "Work SIP") },
+ { E_CONTACT_SIP, "HOME", NULL, NC_ ("addressbook-label", "Home SIP") },
+ { E_CONTACT_SIP, "OTHER", NULL, NC_ ("addressbook-label", "Other SIP") }
};
static EABTypeLabel
@@ -71,16 +71,16 @@ static gboolean eab_phone_types_init = TRUE;
static EABTypeLabel
eab_im_service[] =
{
- { E_CONTACT_IM_AIM, NULL, NULL, N_ ("AIM") },
- { E_CONTACT_IM_JABBER, NULL, NULL, N_ ("Jabber") },
- { E_CONTACT_IM_YAHOO, NULL, NULL, N_ ("Yahoo") },
- { E_CONTACT_IM_GADUGADU, NULL, NULL, N_ ("Gadu-Gadu") },
- { E_CONTACT_IM_MSN, NULL, NULL, N_ ("MSN") },
- { E_CONTACT_IM_ICQ, NULL, NULL, N_ ("ICQ") },
- { E_CONTACT_IM_GROUPWISE, NULL, NULL, N_ ("GroupWise") },
- { E_CONTACT_IM_SKYPE, NULL, NULL, N_ ("Skype") },
- { E_CONTACT_IM_TWITTER, NULL, NULL, N_ ("Twitter") },
- { E_CONTACT_IM_GOOGLE_TALK, NULL, NULL, N_ ("Google Talk")}
+ { E_CONTACT_IM_AIM, NULL, NULL, NC_ ("addressbook-label", "AIM") },
+ { E_CONTACT_IM_JABBER, NULL, NULL, NC_ ("addressbook-label", "Jabber") },
+ { E_CONTACT_IM_YAHOO, NULL, NULL, NC_ ("addressbook-label", "Yahoo") },
+ { E_CONTACT_IM_GADUGADU, NULL, NULL, NC_ ("addressbook-label", "Gadu-Gadu") },
+ { E_CONTACT_IM_MSN, NULL, NULL, NC_ ("addressbook-label", "MSN") },
+ { E_CONTACT_IM_ICQ, NULL, NULL, NC_ ("addressbook-label", "ICQ") },
+ { E_CONTACT_IM_GROUPWISE, NULL, NULL, NC_ ("addressbook-label", "GroupWise") },
+ { E_CONTACT_IM_SKYPE, NULL, NULL, NC_ ("addressbook-label", "Skype") },
+ { E_CONTACT_IM_TWITTER, NULL, NULL, NC_ ("addressbook-label", "Twitter") },
+ { E_CONTACT_IM_GOOGLE_TALK, NULL, NULL, NC_ ("addressbook-label", "Google Talk")}
};
const EABTypeLabel*
@@ -119,7 +119,11 @@ eab_get_email_label_text (EVCardAttribute *attr)
if (index >= 0) {
result = _(eab_get_email_type_labels (&n_elements) [index].text);
} else {
- result = _("Email");
+ /* To Translators:
+ * if an email address type is not one of the predefined types,
+ * this generic label is used instead of one of the predefined labels.
+ */
+ result = C_("addressbook-label", "Email");
}
return result;
@@ -161,7 +165,12 @@ eab_get_sip_label_text (EVCardAttribute *attr)
if (index >= 0) {
result = _(eab_get_sip_type_labels (&n_elements) [index].text);
} else {
- result = _("SIP");
+ /* To Translators:
+ * if a SIP address type is not one of the predefined types,
+ * this generic label is used instead of one of the predefined labels.
+ * SIP=Session Initiation Protocol, used for voice over IP
+ */
+ result = C_("addressbook-label", "SIP");
}
return result;
@@ -199,7 +208,12 @@ eab_get_im_label_text (EVCardAttribute *attr)
if (index >= 0) {
result = _(eab_im_service [index].text);
} else {
- result = _("IM");
+ /* To Translators:
+ * if an IM address type is not one of the predefined types,
+ * this generic label is used instead of one of the predefined labels.
+ * IM=Instant Messaging
+ */
+ result = C_("addressbook-label", "IM");
}
return result;
@@ -248,7 +262,11 @@ eab_get_phone_label_text (EVCardAttribute *attr)
if (index >= 0) {
result = _(eab_get_phone_type_labels (&n_elements) [index].text);
} else {
- result = _("Phone");
+ /* To Translators:
+ * if a phone number type is not one of the predefined types,
+ * this generic label is used instead of one of the predefined labels.
+ */
+ result = C_("addressbook-label", "Phone");
}
return result;