[contact-lookup-applet] Add I18N strings. Fixes bug 541501
- From: Takao Fujiwara <fujiwarat src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [contact-lookup-applet] Add I18N strings. Fixes bug 541501
- Date: Tue, 18 May 2010 03:31:46 +0000 (UTC)
commit 7e0ac7a528b12b84010a3d0e82217774a6a8f9ef
Author: Takao Fujiwara <tfujiwar redhat com>
Date: Tue May 18 12:31:13 2010 +0900
Add I18N strings. Fixes bug 541501
src/contact-dialog.c | 2 +-
src/contact-fields.c | 12 +++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/contact-dialog.c b/src/contact-dialog.c
index 16f531a..51eed77 100644
--- a/src/contact-dialog.c
+++ b/src/contact-dialog.c
@@ -257,7 +257,7 @@ populate_from_fields_name (GtkListStore *store, EContactInfo fields[], const cha
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
0, pixbuf,
- 1, names[i],
+ 1, _(names[i]),
-1);
}
}
diff --git a/src/contact-fields.c b/src/contact-fields.c
index c0c1c0e..f97ceda 100644
--- a/src/contact-fields.c
+++ b/src/contact-fields.c
@@ -20,7 +20,13 @@
* Authors: Ross Burton <ross burtonini com>
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
#include "contact-fields.h"
+
+#include <glib/gi18n.h>
#include <libebook/e-contact.h>
EContactInfo contactinfo_address[] = {
@@ -31,9 +37,9 @@ EContactInfo contactinfo_address[] = {
};
const char *contactinfo_address_names[] = {
- "Home",
- "Work",
- "Other"
+ N_("Home"),
+ N_("Work"),
+ N_("Other")
};
EContactInfo contactinfo_im[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]