[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sylpheed
Subject:    [sylpheed:16962] [patch]let sylpheed works in zh_CN.
From:       Hu Gang <hugang () soulinfo ! com>
Date:       2002-10-31 4:19:12
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hi Munesato Nakada:

with this patch the current sylpheed-claw can works in chinese win32.

Index: defs.h
===================================================================
RCS file: /cvsroot/sylpheed-claws/sylpheed-claws/src/defs.h,v
retrieving revision 1.27.2.6
diff -u -r1.27.2.6 defs.h
--- defs.h	2 Sep 2002 19:37:16 -0000	1.27.2.6
+++ defs.h	31 Oct 2002 04:17:19 -0000
@@ -122,15 +122,21 @@
 #endif
 //-----------------------------------------------------------------------------
 #ifdef WIN32
-#  define NORMAL_FONT		"-*-Arial-normal-r-normal--15-*-*-*-*-*-*-*"
-#  define BOLD_FONT		"-*-Arial-bold-r-normal--15-*-*-*-*-*-*-*"
-#  define SMALL_FONT		"-*-Arial-normal-r-normal--14-*-*-*-*-*-*-*"
+#define NORMAL_FONT	"-unknown-宋体-normal-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
+#define BOLD_FONT	"-unknown-宋体-normal-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
+#define SMALL_FONT	"-unknown-宋体-normal-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
+#define DEFAULT_MESSAGE_FONT "-unknown-宋体-normal-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
+#define DEFAULT_SPACING_FONT "-unknown-宋体-normal-r-normal-*-12-*-*-*-p-*-gb2312.1980-0"
+
+//#  define NORMAL_FONT		"-*-Arial-normal-r-normal--15-*-*-*-*-*-*-*"
+//#  define BOLD_FONT		"-*-Arial-bold-r-normal--15-*-*-*-*-*-*-*"
+//#  define SMALL_FONT		"-*-Arial-normal-r-normal--14-*-*-*-*-*-*-*"
 //#  define NORMAL_FONT		"-*-Microsoft Sans Serif-normal-r-normal--14-*-*-*-*-*-iso8859-1"
 //#  define BOLD_FONT		"-*-Microsoft Sans Serif-bold-r-normal--14-*-*-*-*-*-iso8859-1"
 //#  define SMALL_FONT		"-*-Microsoft Sans Serif-normal-r-normal--14-*-*-*-*-*-iso8859-1"
  // Added
-#  define DEFAULT_MESSAGE_FONT	"-*-*-normal-r-normal--18-*-*-*-m-*-*-*"
-#  define DEFAULT_SPACING_FONT	"-*-*-normal-r-normal--12-*-*-*-m-*-*-*"
+//#  define DEFAULT_MESSAGE_FONT	"-*-*-normal-r-normal--18-*-*-*-m-*-*-*"
+//#  define DEFAULT_SPACING_FONT	"-*-*-normal-r-normal--12-*-*-*-m-*-*-*"
 #else
 #  define NORMAL_FONT	prefs_common.normalfont
 #  define BOLD_FONT	prefs_common.boldfont
Index: intl.h
===================================================================
RCS file: /cvsroot/sylpheed-claws/sylpheed-claws/src/intl.h,v
retrieving revision 1.2
diff -u -r1.2 intl.h
--- intl.h	2 Sep 2001 15:04:39 -0000	1.2
+++ intl.h	31 Oct 2002 04:17:19 -0000
@@ -3,7 +3,7 @@
 
 #ifdef ENABLE_NLS
 #  include <libintl.h>
-#  define _(String) gettext(String)
+#  define _(String) g_locale_to_utf8(gettext(String),-1, NULL, NULL, NULL)
 #  ifdef gettext_noop
 #    define N_(String) gettext_noop(String)
 #  else


-- 
		- Hu Gang


["copy.png" (image/png)]
[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic