1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/chinese/pine4/files/patch-bj
Steve Price 386876662e Update to version 4.10.
PR:		10245
Submitted by:	maintainer
1999-03-15 01:45:43 +00:00

110 lines
4.4 KiB
Plaintext

--- pine/screen.c.orig Wed Jan 13 10:51:51 1999
+++ pine/screen.c Tue Feb 23 15:57:08 1999
@@ -435,7 +435,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},
@@ -1128,10 +1128,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 */
@@ -1148,17 +1148,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));
@@ -1166,7 +1166,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));
@@ -1178,7 +1178,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),
@@ -1189,7 +1189,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));
@@ -1264,7 +1264,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)
@@ -1313,7 +1313,7 @@
StartInverse();
if(delta) {
if(as.style == MsgTextPercent){
- 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))),
@@ -1324,7 +1324,7 @@
as.percent_column += delta;
}
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))),
@@ -1426,7 +1426,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));