[evolution-patches] Patch for #66854 - Translation of strings in Contact editor
- From: Rodney Dawes <dobey novell com>
 
- To: evolution-patches lists ximian com
 
- Subject: [evolution-patches] Patch for #66854 - Translation of strings in Contact editor
 
- Date: Wed, 08 Dec 2004 14:51:30 -0500
 
The attached patch binds and loads the text domain for eds when we call
the e_contact_pretty_name () function, so that we actually get
translated strings for the UI.
-- dobey
Index: addressbook/libebook/e-contact.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/libebook/e-contact.c,v
retrieving revision 1.38
diff -u -p -r1.38 e-contact.c
--- addressbook/libebook/e-contact.c	30 Sep 2004 20:02:40 -0000	1.38
+++ addressbook/libebook/e-contact.c	8 Dec 2004 19:47:25 -0000
@@ -20,6 +20,8 @@
  * Author: Chris Toshok (toshok ximian com)
  */
 
+#include <config.h>
+
 #include <glib.h>
 #include <stdio.h>
 #include <ctype.h>
@@ -1361,6 +1363,11 @@ e_contact_pretty_name (EContactField fie
 	int i;
 
 	g_return_val_if_fail (field_id >= 1 && field_id <= E_CONTACT_FIELD_LAST, "");
+
+#ifdef ENABLE_NLS
+	bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
+	textdomain (GETTEXT_PACKAGE);
+#endif
 
 	for (i = 0; i < G_N_ELEMENTS (field_info); i ++) {
 		if (field_id == field_info[i].field_id)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]