]> git.pld-linux.org Git - packages/FreeWnn.git/blob - FreeWnn-ja.patch
- taken from RedHat, rewritten, updated to 1.1.1a018, added manpaths patch
[packages/FreeWnn.git] / FreeWnn-ja.patch
1 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/etc/msg.c FreeWnn-1.1.1-a017/Xsi/Wnn/etc/msg.c
2 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/etc/msg.c    Tue Mar 21 01:31:33 2000
3 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/etc/msg.c        Thu Jul  6 11:41:34 2000
4 @@ -457,12 +457,12 @@
5  {
6    struct msg_cat *cd;
7  
8 -  cd = msg_open ("msg", "%L", "ja_JP");
9 +  cd = msg_open ("msg", "%L", "ja");
10  
11 -  printf (msg_get (cd, 5, "message not found\n", "ja_JP"), 555);
12 +  printf (msg_get (cd, 5, "message not found\n", "ja"), 555);
13    printf (msg_get (cd, 6, "message not found\n", "zh_CN"));
14    printf (msg_get (cd, -1, "", "ja_JP"), 555);
15 -  printf (msg_get (cd, 2, "message not found\n", "ja_JP"), "abc");
16 +  printf (msg_get (cd, 2, "message not found\n", "ja"), "abc");
17    printf (msg_get (cd, 100, "message not found\n", "zh_CN"), "abc");
18  }
19  #endif /* not_use */
20 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/jd_sock.h FreeWnn-1.1.1-a017/Xsi/Wnn/include/jd_sock.h
21 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/jd_sock.h    Thu Feb 24 00:31:29 2000
22 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/include/jd_sock.h        Thu Jul  6 11:43:16 2000
23 @@ -67,7 +67,7 @@
24  #ifdef  JAPANESE                /* Japanese */
25  # define WNN_PORT_IN    (0x5701)
26  static char *sockname = "/tmp/jd_sockV4";       /* for jserver */
27 -# define LANG_NAME      "ja_JP"
28 +# define LANG_NAME      "ja"
29  # define SERVERNAME     "wnn4"
30  # define MESSAGE_FILE   "jserver.msg"
31  #else /* JAPANESE */
32 @@ -98,7 +98,7 @@
33  
34  # define WNN_PORT_IN    (0x5701)
35  static char *sockname = "/tmp/jd_sockV4";       /* for jserver */
36 -# define LANG_NAME      "ja_JP"
37 +# define LANG_NAME      "ja"
38  # define SERVERNAME     "wnn4"
39  # define MESSAGE_FILE   "jserver.msg"
40  #endif /* KOREAN */
41 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/jslib.h FreeWnn-1.1.1-a017/Xsi/Wnn/include/jslib.h
42 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/jslib.h      Thu Feb 24 00:31:30 2000
43 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/include/jslib.h  Thu Jul  6 11:44:15 2000
44 @@ -394,8 +394,8 @@
45  /*
46    JSLIB function declaration
47  */
48 -#define js_open(server, timeout)        js_open_lang(server, "ja_JP", timeout)
49 -#define js_connect(server,env_name)     js_connect_lang(server, env_name, "ja_JP")
50 +#define js_open(server, timeout)        js_open_lang(server, "ja", timeout)
51 +#define js_connect(server,env_name)     js_connect_lang(server, env_name, "ja")
52  
53  extern WNN_JSERVER_ID *js_open_lang ();
54  extern int js_close ();
55 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/msg.h FreeWnn-1.1.1-a017/Xsi/Wnn/include/msg.h
56 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/msg.h        Thu Feb 24 00:31:30 2000
57 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/include/msg.h    Thu Jul  6 11:44:27 2000
58 @@ -50,7 +50,7 @@
59  /*
60  #define DEF_LANG "C"
61  */
62 -#define DEF_LANG "ja_JP"
63 +#define DEF_LANG "ja"
64  
65  extern struct msg_cat *msg_open ();
66  extern char *msg_get ();
67 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/wnn_config.h FreeWnn-1.1.1-a017/Xsi/Wnn/include/wnn_config.h
68 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/include/wnn_config.h Thu Feb 24 00:31:30 2000
69 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/include/wnn_config.h     Thu Jul  6 11:45:12 2000
70 @@ -44,7 +44,7 @@
71  #define WNN_CSERVER_ENV         "CSERVER"
72  #define WNN_KSERVER_ENV         "KSERVER"
73  #define WNN_TSERVER_ENV         "TSERVER"
74 -#define WNN_J_LANG              "ja_JP"
75 +#define WNN_J_LANG              "ja"
76  #define WNN_C_LANG              "zh_CN"
77  #define WNN_K_LANG              "ko_KR"
78  #define WNN_T_LANG              "zh_TW"
79 @@ -79,7 +79,7 @@
80  /* for jserver */
81  #ifndef SERVER_INIT_FILE
82  # ifdef JAPANESE
83 -#  define SERVER_INIT_FILE      "/ja_JP/jserverrc"
84 +#  define SERVER_INIT_FILE      "/ja/jserverrc"
85  # else /* JAPANESE */
86  # ifdef CHINESE
87  # ifdef TAIWANESE
88 @@ -91,7 +91,7 @@
89  # ifdef KOREAN
90  #  define SERVER_INIT_FILE      "/ko_KR/kserverrc"
91  # else /* KOREAN */
92 -#  define SERVER_INIT_FILE      "/ja_JP/jserverrc"      /* Default */
93 +#  define SERVER_INIT_FILE      "/ja/jserverrc"      /* Default */
94  # endif /* KOREAN */
95  # endif /* CHINESE */
96  # endif /* JAPANESE */
97 @@ -109,7 +109,7 @@
98  
99  #define ENVRCFILE               "/wnnenvrc"
100  #ifndef HINSIDATA_FILE
101 -# define HINSIDATA_FILE         "/ja_JP/hinsi.data"
102 +# define HINSIDATA_FILE         "/ja/hinsi.data"
103  #endif /* HINSIDATA_FILE */
104  
105  #define USR_DIC_DIR_VAR "@USR"
106 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/jd/serverdefs FreeWnn-1.1.1-a017/Xsi/Wnn/jd/serverdefs
107 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/jd/serverdefs        Sun Jan 30 12:40:48 2000
108 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/jd/serverdefs    Thu Jul  6 11:40:36 2000
109 @@ -30,7 +30,7 @@
110  ;
111  
112  ;lang_name     machine_name    unix_domain_socket_name service_name    port_num
113 -ja_JP          jserver         /tmp/jd_sockV4          wnn4            22273
114 +ja             jserver         /tmp/jd_sockV4          wnn4            22273
115  japanese       jserver         /tmp/jd_sockV4          wnn4            22273
116  nihongo                jserver         /tmp/jd_sockV4          wnn4            22273
117  zh_CN          cserver         /tmp/cd_sockV4          wnn4_Cn         22289
118 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/jlib/jl.c FreeWnn-1.1.1-a017/Xsi/Wnn/jlib/jl.c
119 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/jlib/jl.c    Tue Mar 21 01:21:12 2000
120 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/jlib/jl.c        Thu Jul  6 11:46:00 2000
121 @@ -442,7 +442,7 @@
122    if (!lang || !*lang)
123      {
124  /* Sorry! Default is Japanese. :-) */
125 -      strcpy (p_lang, "ja_JP");
126 +      strcpy (p_lang, "ja");
127      }
128    else
129      {
130 diff -uNr FreeWnn-1.1.1-a017.org/Xsi/Wnn/uum/header.c FreeWnn-1.1.1-a017/Xsi/Wnn/uum/header.c
131 --- FreeWnn-1.1.1-a017.org/Xsi/Wnn/uum/header.c Thu Feb 24 00:31:42 2000
132 +++ FreeWnn-1.1.1-a017/Xsi/Wnn/uum/header.c     Thu Jul  6 11:46:50 2000
133 @@ -131,7 +131,7 @@
134  
135  FuncDataBase function_db[] = {
136  #ifdef JAPANESE
137 -  {"ja_JP",
138 +  {"ja",
139     {NULL, NULL, call_t_redraw_move_normal,
140      call_t_redraw_move_1_normal, call_t_redraw_move_2_normal,
141      call_t_print_l_normal, NULL, char_len_normal, char_q_len_normal,
This page took 0.070346 seconds and 4 git commands to generate.