[evolution-patches] Fix i18n bugs of wombat and libpas.
- From: Yong Sun <Yong Sun sun com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Fix i18n bugs of wombat and libpas.
- Date: Fri, 13 Feb 2004 10:49:06 +0800
Hi, guys,
In address/backend/pas/pas-backend-file.c and pas-backend-ldap.c, the we
need define GNOME_EXPLICIT_TRANSLATION_DOMAIN, so that the applications
which link this static library will get messages from evolution's
domain.
And also in wombat/wombat.c, we need set the locale and encoding of
domain messages correctly.
Please help to review these patches, and they should be applied to 1.4
branch.
Regards,
--
Yong Sun <Yong Sun sun com>
Sun (China) ERI
? libpas-i18n.diff
Index: pas-backend-file.c
===================================================================
RCS file: /export/src/cvs/evolution/addressbook/backend/pas/pas-backend-file.c,v
retrieving revision 1.2
diff -u -p -r1.2 pas-backend-file.c
--- pas-backend-file.c 2003/09/27 03:21:42 1.2
+++ pas-backend-file.c 2004/02/13 02:36:40
@@ -7,6 +7,8 @@
*/
#include "config.h"
+#define GNOME_EXPLICIT_TRANSLATION_DOMAIN GETTEXT_PACKAGE
+
#include "pas-backend-file.h"
#include <stdio.h>
Index: pas-backend-ldap.c
===================================================================
RCS file: /export/src/cvs/evolution/addressbook/backend/pas/pas-backend-ldap.c,v
retrieving revision 1.1.1.1.4.1
diff -u -p -r1.1.1.1.4.1 pas-backend-ldap.c
--- pas-backend-ldap.c 2003/11/06 05:37:11 1.1.1.1.4.1
+++ pas-backend-ldap.c 2004/02/13 02:36:40
@@ -9,6 +9,8 @@
#define DEBUG
#include "config.h"
+#define GNOME_EXPLICIT_TRANSLATION_DOMAIN GETTEXT_PACKAGE
+
#include <fcntl.h>
#include <string.h>
? wombat-i18n.diff
Index: ChangeLog
===================================================================
RCS file: /export/src/cvs/evolution/wombat/ChangeLog,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 ChangeLog
--- ChangeLog 2003/09/26 06:34:33 1.1.1.1
+++ ChangeLog 2004/02/13 02:36:19
@@ -1,3 +1,8 @@
+2004-02-13 Yong Sun <yong sun sun com>
+
+ * wombat.c: (main) set locale correctly and also the encoding of
+ domain messages
+
2003-09-09 egallego telefonica net
Fixes #46130
Index: wombat.c
===================================================================
RCS file: /export/src/cvs/evolution/wombat/wombat.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 wombat.c
--- wombat.c 2003/09/26 06:34:33 1.1.1.1
+++ wombat.c 2004/02/13 02:36:19
@@ -191,7 +191,10 @@ main (int argc, char **argv)
{
gboolean did_pas=FALSE, did_pcs=FALSE;
+ setlocale(LC_ALL , "");
+
bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
g_message ("Starting wombat");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]