1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
--- pico/composer.c.orig Thu Dec 24 05:03:58 1998
+++ pico/composer.c Wed Feb 24 02:12:51 1999
@@ -133,12 +133,12 @@
static KEYMENU menu_header[] = {
- {"^G", "Get Help", KS_SCREENHELP}, {"^X", "Send", KS_SEND},
- {"^R", "Rich Hdr", KS_RICHHDR}, {"^Y", "PrvPg/Top", KS_PREVPAGE},
- {"^K", "Cut Line", KS_CURPOSITION}, {"^O", "Postpone", KS_POSTPONE},
- {"^C", "Cancel", KS_CANCEL}, {"^D", "Del Char", KS_NONE},
- {"^J", "Attach", KS_ATTACH}, {"^V", "NxtPg/End", KS_NEXTPAGE},
- {"^U", "UnDel Line", KS_NONE}, {NULL, NULL}
+ {"^G", "輔助說明", KS_SCREENHELP}, {"^X", "送出", KS_SEND},
+ {"^R", "完整標頭", KS_RICHHDR}, {"^Y", "上一頁", KS_PREVPAGE},
+ {"^K", "剪下一行", KS_CURPOSITION}, {"^O", "暫緩寫信", KS_POSTPONE},
+ {"^C", "取消", KS_CANCEL}, {"^D", "刪除字元", KS_NONE},
+ {"^J", "夾附件", KS_ATTACH}, {"^V", "下一頁", KS_NEXTPAGE},
+ {"^U", "復原刪除行", KS_NONE}, {NULL, NULL}
};
#define SEND_KEY 1
#define RICH_KEY 2
@@ -262,7 +262,7 @@
if(strlen(addrbuf) + strlen(buf) >= addrbuflen){
addrbuflen += NLINE * 4;
if(!(addrbuf = (char *)realloc(addrbuf, addrbuflen))){
- emlwrite("\007Can't realloc addrbuf to %d bytes",
+ emlwrite("\007無法更改 addrbuf 的記憶體配置至 %d bytes",
(void *) addrbuflen);
return(ABORT);
}
@@ -329,7 +329,7 @@
* get first chunk of memory, and tie it to structure...
*/
if((curline = HALLOC()) == NULL){
- emlwrite("Unable to make room for full Header.", NULL);
+ emlwrite("無法配置空間給完整標頭。", NULL);
return(FALSE);
}
longest = term.t_ncol - e->prlen - 1;
@@ -711,7 +711,7 @@
}
else{
(*term.t_beep)();
- emlwrite("Unknown Command: ^Z", NULL);
+ emlwrite("未知的命令:^Z", NULL);
}
break;
@@ -724,12 +724,12 @@
err = NULL;
if(headents[ods.cur_e].is_attach){
if(SyncAttach() < 0){
- if(mlyesno("Problem with attachments. Postpone anyway?",
+ if(mlyesno("附件有問題。無論如何都要暫緩該信嗎?",
FALSE) != TRUE){
if(FormatLines(headents[ods.cur_e].hd_text, "",
term.t_ncol - headents[ods.cur_e].prlen,
headents[ods.cur_e].break_on_comma, 0) == -1)
- emlwrite("\007Format lines failed!", NULL);
+ emlwrite("\007版面整理失敗!", NULL);
UpdateHeader(0);
PaintHeader(COMPOSER_TOP_LINE, FALSE);
PaintBody(1);
@@ -998,7 +998,7 @@
if(FormatLines(headents[ods.cur_e].hd_text, buf,
term.t_ncol - headents[ods.cur_e].prlen,
headents[ods.cur_e].break_on_comma,0)==-1){
- emlwrite("\007Format lines failed!", NULL);
+ emlwrite("\007版面整理失敗!", NULL);
}
UpdateHeader(0);
@@ -1057,7 +1057,7 @@
if(FormatLines(ods.cur_l, bufp,
(term.t_ncol-headents[ods.cur_e].prlen),
headents[ods.cur_e].break_on_comma, 0) == -1){
- emlwrite("Problem adding address to header !",
+ emlwrite("在標頭加入地址時出了問題!",
NULL);
(*term.t_beep)();
break;
@@ -1193,10 +1193,10 @@
default : /* huh? */
bleep:
if(ch&CTRL)
- emlwrite("\007Unknown command: ^%c", (void *)(ch&0xff));
+ emlwrite("\007未知的命令:^%c", (void *)(ch&0xff));
else
case BADESC:
- emlwrite("\007Unknown command", NULL);
+ emlwrite("\007未知的命令", NULL);
case NODATA:
break;
@@ -1236,14 +1236,14 @@
if(gripe){
char xx[81];
- strcpy(xx, "Can't move down. Use ^X to ");
+ strcpy(xx, "無法再往下移了。請用 ^X ");
strcat(xx, (Pmaster && Pmaster->exit_label)
? Pmaster->exit_label
: (gmode & MDHDRONLY)
- ? "eXit/Save"
+ ? "離開/送出"
: (gmode & MDVIEW)
- ? "eXit"
- : "Send");
+ ? "離開"
+ : "送出");
strcat(xx, ".");
emlwrite(xx, NULL);
}
@@ -1278,7 +1278,7 @@
if(FormatLines(headents[ods.cur_e].hd_text, "",
term.t_ncol-headents[new_e].prlen,
headents[ods.cur_e].break_on_comma, 0) == -1)
- emlwrite("\007Format lines failed!", NULL);
+ emlwrite("\007版面整理失敗!", NULL);
}
} else if(headents[ods.cur_e].builder) { /* expand addresses */
int mangled = 0;
@@ -1349,8 +1349,8 @@
if(!(new_l = prev_sel_hline(&new_e, ods.cur_l))){ /* all the way up! */
ods.p_line = COMPOSER_TOP_LINE;
if(gripe)
- emlwrite("Can't move beyond top of %s",
- (Pmaster->pine_flags & MDHDRONLY) ? "entry" : "header");
+ emlwrite("無法移到超出%s的頂端",
+ (Pmaster->pine_flags & MDHDRONLY) ? "項目" : "標頭");
return(0);
}
@@ -1379,7 +1379,7 @@
if(FormatLines(headents[ods.cur_e].hd_text, "",
term.t_ncol - headents[ods.cur_e].prlen,
headents[ods.cur_e].break_on_comma,0) == -1)
- emlwrite("\007Format lines failed!", NULL);
+ emlwrite("\007版面整理失敗!", NULL);
}
}
else if(headents[ods.cur_e].builder){
@@ -1458,7 +1458,7 @@
lp = lp->next;
}
else{
- emlwrite("\007Can't allocate line for new attachment!", NULL);
+ emlwrite("\007無法為新的附件配置空間!", NULL);
return(0);
}
}
@@ -1472,12 +1472,12 @@
/* validate the new attachment, and reformat if needed */
if(status = SyncAttach()){
if(status < 0)
- emlwrite("\007Problem attaching: %s", fn);
+ emlwrite("\007有問題的附件:%s", fn);
if(FormatLines(headents[a_e].hd_text, "",
term.t_ncol - headents[a_e].prlen,
headents[a_e].break_on_comma, 0) == -1){
- emlwrite("\007Format lines failed!", NULL);
+ emlwrite("\007版面整理失敗!", NULL);
return(0);
}
}
@@ -1553,7 +1553,7 @@
if (term.t_nrow < 6 && ch != NODATA){
(*term.t_beep)();
- emlwrite("Please make the screen bigger.", NULL);
+ emlwrite("請將畫面調大一些。", NULL);
continue;
}
@@ -1624,13 +1624,13 @@
if(headents[ods.cur_e].only_file_chars
&& !fallowc((unsigned char) ch)){
/* no garbage in filenames */
- emlwrite("\007Can't have a '%c' in folder name",
+ emlwrite("\007資料匣中不能有 '%c' 這個字元",
(void *) ch);
continue;
}
else if(headents[ods.cur_e].is_attach
&& intag(strng,ods.p_off)){
- emlwrite("\007Can't edit attachment number!", NULL);
+ emlwrite("\007無法編輯附件的代碼!", NULL);
continue;
}
@@ -1779,7 +1779,7 @@
headents[ods.cur_e].dirty = 1;
}
else
- emlwrite("Problem Unkilling text", NULL);
+ emlwrite("有問題的反刪除文字", NULL);
continue;
case (CTRL|'F') :
@@ -1830,7 +1830,7 @@
continue;
if(headents[ods.cur_e].is_attach && intag(strng, ods.p_off)){
- emlwrite("\007Can't edit attachment number!", NULL);
+ emlwrite("\007無法編輯附件的代碼!", NULL);
continue;
}
@@ -1844,7 +1844,7 @@
}
if(headents[ods.cur_e].is_attach && intag(strng, ods.p_off-1)){
- emlwrite("\007Can't edit attachment number!", NULL);
+ emlwrite("\007無法編輯附件的代碼!", NULL);
continue;
}
@@ -2141,7 +2141,7 @@
if(nlp == NULL){ /* no place to add below? */
if((lp = HALLOC()) == NULL){
- emlwrite("Can't allocate any more lines for header!", NULL);
+ emlwrite("無法再配置更多的空間給標頭!", NULL);
free(buf);
return(-1);
}
@@ -2174,7 +2174,7 @@
if(strlen(buf) && !nlp){
if((lp = HALLOC()) == NULL){
- emlwrite("Can't allocate any more lines for header!",NULL);
+ emlwrite("無法再配置更多的空間給標頭!",NULL);
free(buf);
return(-1);
}
@@ -2461,14 +2461,14 @@
if(level < 0 || !headents[level].name){
(*term.t_beep)();
- emlwrite("Sorry, I can't help you with that.", NULL);
+ emlwrite("很抱歉,關於那個我無法幫忙。", NULL);
sleep(2);
return(FALSE);
}
- sprintf(buf, "Help for %s %.40s Field",
- (Pmaster->pine_flags & MDHDRONLY) ? "Address Book"
- : "Composer",
+ sprintf(buf, "%s欄位%.40s的輔助說明",
+ (Pmaster->pine_flags & MDHDRONLY) ? "地址簿"
+ : "編輯器",
headents[level].name);
saved_state = save_pico_state();
(*Pmaster->helper)(headents[level].help, buf, 1);
@@ -3110,7 +3110,7 @@
}
if((sbuf=(char *)malloc((unsigned) i)) == NULL){
- emlwrite("Can't malloc space to expand address", NULL);
+ emlwrite("無法配置記憶體空間以展開地址", NULL);
return(-1);
}
@@ -3167,7 +3167,7 @@
if(!arg){
headarg = arg = (BUILDER_ARG *)malloc(sizeof(BUILDER_ARG));
if(!arg){
- emlwrite("Can't malloc space for fcc", NULL);
+ emlwrite("無法配置記憶體空間給 fcc", NULL);
return(-1);
}
else{
@@ -3180,7 +3180,7 @@
else{
nextarg = (BUILDER_ARG *)malloc(sizeof(BUILDER_ARG));
if(!nextarg){
- emlwrite("Can't malloc space for fcc", NULL);
+ emlwrite("無法配置記憶體空間給 fcc", NULL);
return(-1);
}
else{
@@ -3196,7 +3196,7 @@
if(!e->sticky){
line = e->hd_text;
if(!(arg->tptr=(char *)malloc(strlen(line->text) + 1))){
- emlwrite("Can't malloc space for fcc", NULL);
+ emlwrite("無法配置記憶體空間給 fcc", NULL);
return(-1);
}
else
@@ -3213,7 +3213,7 @@
if(!headarg){
headarg = (BUILDER_ARG *)malloc(sizeof(BUILDER_ARG));
if(!headarg){
- emlwrite("Can't malloc space", NULL);
+ emlwrite("無法配置記憶體空間", NULL);
return(-1);
}
else{
@@ -3522,7 +3522,7 @@
if(ksize()){
if((bp = buf = (char *)malloc(ksize()+5)) == NULL){
- emlwrite("Can't malloc space for saved text", NULL);
+ emlwrite("無法配置保存文字的記憶體空間", NULL);
return(FALSE);
}
}
@@ -3556,7 +3556,7 @@
work_buf_len = strlen(ods.cur_l->text) + buf_len;
work_buf = (char *) malloc((work_buf_len + 1) * sizeof(char));
if (work_buf == NULL) {
- emlwrite("Can't malloc space for saved text", NULL);
+ emlwrite("無法配置保存文字的記憶體空間", NULL);
return(FALSE);
}
@@ -3765,9 +3765,9 @@
if(Pmaster && Pmaster->exit_label)
menu_header[SEND_KEY].label = Pmaster->exit_label;
else if(gmode & (MDVIEW | MDHDRONLY))
- menu_header[SEND_KEY].label = (gmode & MDHDRONLY) ? "eXit/Save" : "eXit";
+ menu_header[SEND_KEY].label = (gmode & MDHDRONLY) ? "離開/儲存" : "離開";
else
- menu_header[SEND_KEY].label = "Send";
+ menu_header[SEND_KEY].label = "送出";
if(gmode & MDVIEW){
menu_header[CUT_KEY].name = NULL;
@@ -3788,14 +3788,14 @@
menu_header[RICH_KEY].name = NULL;
}
else{
- menu_header[RICH_KEY].label = "Rich Hdr";
+ menu_header[RICH_KEY].label = "完整標頭";
menu_header[RICH_KEY].name = "^R";
}
if(gmode & MDHDRONLY){
if(headents[ods.cur_e].fileedit){
menu_header[PONE_KEY].name = "^_";
- menu_header[PONE_KEY].label = "Edit File";
+ menu_header[PONE_KEY].label = "編輯檔案";
}
else
menu_header[PONE_KEY].name = NULL;
@@ -3804,7 +3804,7 @@
}
else{
menu_header[PONE_KEY].name = "^O";
- menu_header[PONE_KEY].label = "Postpone";
+ menu_header[PONE_KEY].label = "暫緩";
KS_OSDATASET(&menu_header[PONE_KEY],KS_OSDATAGET(&headents[ods.cur_e]));
menu_header[ATT_KEY].name = "^J";
@@ -3876,7 +3876,7 @@
*headents[i].realaddr = bufp;
}
else{
- emlwrite("Can't make room to pack header field.", NULL);
+ emlwrite("無法配置包裝表頭欄位的記憶體空間。", NULL);
retval = FALSE;
}
}
|