1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/chinese/pine4/files/patch-bj
Steve Price 615932e686 Update to version 4.20.
PR:		14575
Submitted by:	maintainer
1999-11-01 00:41:02 +00:00

110 lines
4.4 KiB
Plaintext

--- pine/screen.c.orig Thu Sep 9 05:45:46 1999
+++ pine/screen.c Thu Oct 14 12:03:27 1999
@@ -578,7 +578,7 @@
static struct key cancel_keys[] =
- {{NULL,NULL,KS_NONE}, {"^C","Cancel",KS_NONE},
+ {{NULL,NULL,KS_NONE}, {"^C","取消",KS_NONE},
{NULL,NULL,KS_NONE}, {NULL,NULL,KS_NONE},
{NULL,NULL,KS_NONE}, {NULL,NULL,KS_NONE},
{NULL,NULL,KS_NONE}, {NULL,NULL,KS_NONE},
@@ -1281,10 +1281,10 @@
as.page_column = -1;
is_context = strlen(as.context_name);
sprintf(version, "PINE %s", pine_version);
- ss_string = as.stream_status == Closed ? "(CLOSED)" :
+ ss_string = as.stream_status == Closed ? "(已關閉)" :
(as.stream_status == ReadOnly
&& !IS_NEWS(as.stream))
- ? "(READONLY)" : "";
+ ? "(唯讀)" : "";
ss_len = strlen(ss_string);
tit_len = strlen(as.title); /* fixed title field width */
@@ -1301,17 +1301,17 @@
/*
* set location field's length and value based on requested style
*/
- loc_label = (is_context) ? "Msg" : "Message";
+ loc_label = (is_context) ? "信" : "信件";
loc_len = strlen(loc_label);
if(!mn_get_total(as.msgmap)){
- sprintf(tmp_20k_buf, "No %ss", loc_label);
+ sprintf(tmp_20k_buf, "沒有%s", loc_label);
loc_len += 4;
}else{
switch(as.style){
case FolderName : /* "x,xxx <loc_label>s" */
loc_len += digit_count(mn_get_total(as.msgmap)) + 3;
- sprintf(tmp_20k_buf, "%s %s%s", comatose(mn_get_total(as.msgmap)),
- loc_label, plural(mn_get_total(as.msgmap)));
+ sprintf(tmp_20k_buf, "%s 封%s", comatose(mn_get_total(as.msgmap)),
+ loc_label);
break;
case MessageNumber : /* "<loc_label> xxx of xxx DEL" */
num_len = digit_count(mn_get_total(as.msgmap));
@@ -1319,7 +1319,7 @@
as.cur_mess_col = sc - (2 * num_len) - 10;
as.del_column = as.cur_mess_col + num_len
+ digit_count(as.current_msg) + 5;
- sprintf(tmp_20k_buf, "%s %s of %s %s", loc_label,
+ sprintf(tmp_20k_buf, "%s %s 之 %s %s", loc_label,
strcpy(tmp_20k_buf + 1000, comatose(as.current_msg)),
strcpy(tmp_20k_buf + 1500, comatose(mn_get_total(as.msgmap))),
BAR_STATUS(as.msg_state));
@@ -1331,7 +1331,7 @@
as.percent_column = as.cur_mess_col + num_len
+ digit_count(as.current_msg) + 7;
as.del_column = as.percent_column + 4;
- sprintf(tmp_20k_buf, "%s %s of %s %s %s", loc_label,
+ sprintf(tmp_20k_buf, "%s %s 之 %s %s %s", loc_label,
strcpy(tmp_20k_buf + 1000, comatose(as.current_msg)),
strcpy(tmp_20k_buf + 1500, comatose(mn_get_total(as.msgmap))),
percentage(as.current_line, as.total_lines, 1),
@@ -1342,7 +1342,7 @@
case FileTextPercent :
as.page_column = sc - (14 + 2*(num_len = digit_count(as.total_lines)));
loc_len = 17 + 2*num_len;
- sprintf(tmp_20k_buf, "Line %*ld of %*ld %s ",
+ sprintf(tmp_20k_buf, "行 %*ld 之 %*ld %s ",
num_len, as.current_line,
num_len, as.total_lines,
percentage(as.current_line, as.total_lines, 1));
@@ -1417,7 +1417,7 @@
ss_string);
}
else{
- char *fmt = "Folder: %s%s";
+ char *fmt = "信件匣:%s%s";
if(fold_len + ss_len + 8 < avail) /* all of folder fit? */
sprintf(fold_tmp, fmt, as.folder_name, ss_string);
else if((fold_len/2) + ss_len + 8 < avail)
@@ -1474,7 +1474,7 @@
if(as.style == MsgTextPercent){
as.percent_column += delta;
- PutLine5(0, as.cur_mess_col, "%s of %s %s %s%s",
+ PutLine5(0, as.cur_mess_col, "%s 之 %s %s %s%s",
strcpy(tmp_20k_buf + 1000, comatose(as.current_msg)),
strcpy(tmp_20k_buf + 1500,
comatose(mn_get_total(as.msgmap))),
@@ -1483,7 +1483,7 @@
repeat_char(max(0, -delta), SPACE));
}
else
- PutLine4(0, as.cur_mess_col, "%s of %s %s%s",
+ PutLine4(0, as.cur_mess_col, "%s 之 %s %s%s",
strcpy(tmp_20k_buf + 1000, comatose(as.current_msg)),
strcpy(tmp_20k_buf + 1500,
comatose(mn_get_total(as.msgmap))),
@@ -1610,7 +1610,7 @@
as.current_line = new_line_number;
- sprintf(tmp_20k_buf, "%*ld of %*ld %s ",
+ sprintf(tmp_20k_buf, "%*ld 之 %*ld %s ",
digit_count(as.total_lines), as.current_line,
digit_count(as.total_lines), as.total_lines,
percentage(as.current_line, as.total_lines, 0));