aboutsummaryrefslogtreecommitdiff
path: root/chinese/pine4/files/patch-bd
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/pine4/files/patch-bd')
-rw-r--r--chinese/pine4/files/patch-bd209
1 files changed, 106 insertions, 103 deletions
diff --git a/chinese/pine4/files/patch-bd b/chinese/pine4/files/patch-bd
index 4a01615b4505..02422af079c0 100644
--- a/chinese/pine4/files/patch-bd
+++ b/chinese/pine4/files/patch-bd
@@ -1,6 +1,6 @@
---- pine/mailview.c.orig Tue Feb 2 01:26:04 1999
-+++ pine/mailview.c Tue Feb 23 15:45:46 1999
-@@ -157,8 +157,8 @@
+--- pine/mailview.c.orig Tue Oct 12 09:19:53 1999
++++ pine/mailview.c Thu Oct 14 12:25:15 1999
+@@ -159,8 +159,8 @@
static struct key view_keys[] =
{HELP_MENU,
OTHER_MENU,
@@ -11,7 +11,7 @@
PREVMSG_MENU,
NEXTMSG_MENU,
PREVPAGE_MENU,
-@@ -183,11 +183,11 @@
+@@ -185,11 +185,11 @@
HELP_MENU,
OTHER_MENU,
@@ -27,7 +27,7 @@
JUMP_MENU,
TAB_MENU,
HDRMODE_MENU,
-@@ -204,7 +204,7 @@
+@@ -219,7 +219,7 @@
#define FLAG_KEY 34
#define VIEW_PIPE_KEY 35
@@ -36,7 +36,7 @@
{HELP_MENU,
WHEREIS_MENU,
QUIT_MENU,
-@@ -228,7 +228,7 @@
+@@ -243,7 +243,7 @@
NEXTMSG_MENU,
PREVPAGE_MENU,
NEXTPAGE_MENU,
@@ -45,7 +45,7 @@
JUMP_MENU,
PRYNTTXT_MENU,
SAVE_MENU,
-@@ -250,7 +250,7 @@
+@@ -265,7 +265,7 @@
static struct key simple_text_keys[] =
{HELP_MENU,
NULL_MENU,
@@ -54,7 +54,7 @@
NULL_MENU,
NULL_MENU,
NULL_MENU,
-@@ -259,7 +259,7 @@
+@@ -274,7 +274,7 @@
PRYNTTXT_MENU,
WHEREIS_MENU,
FWDEMAIL_MENU,
@@ -63,7 +63,7 @@
INST_KEY_MENU(simple_text_keymenu, simple_text_keys);
-@@ -403,7 +403,7 @@
+@@ -430,7 +430,7 @@
* we were viewing. If so, make sure we don't just come back.
*/
if(mn_get_total(ps->msgmap) <= 0L || !ps->mail_stream){
@@ -72,7 +72,7 @@
ps->next_screen = mail_index_screen;
break;
}
-@@ -417,7 +417,7 @@
+@@ -444,7 +444,7 @@
body = NULL;
if(!(env = mail_fetchstructure(ps->mail_stream, raw_msgno, &body))
|| !(mc = mail_elt(ps->mail_stream, raw_msgno))){
@@ -81,7 +81,7 @@
comatose(mn_get_cur(ps->msgmap)));
dprint(1, (debugfile, "!!!! ERROR fetching %s of msg %ld\n",
env ? "elt" : "env", mn_get_cur(ps->msgmap)));
-@@ -472,7 +472,7 @@
+@@ -502,7 +502,7 @@
memset(&scrollargs, 0, sizeof(SCROLL_S));
scrollargs.text.text = so_text(store);
scrollargs.text.src = src;
@@ -90,10 +90,10 @@
/*
* make first selectable handle the default
-@@ -492,11 +492,11 @@
- else
- scrollargs.body_valid = 1;
-
+@@ -528,11 +528,11 @@
+ offset = 0L;
+ }
+
- scrollargs.bar.title = "MESSAGE TEXT";
+ scrollargs.bar.title = "信件文字";
scrollargs.end_scroll = view_end_scroll;
@@ -104,7 +104,7 @@
scrollargs.keys.menu = &view_keymenu;
scrollargs.keys.what = save_what;
setbitmap(scrollargs.keys.bitmap);
-@@ -1237,7 +1237,7 @@
+@@ -1319,7 +1319,7 @@
/*---- format and copy envelope ----*/
if(ps_global->full_header)
q_status_message(SM_INFO, 0, 3,
@@ -113,7 +113,7 @@
HD_INIT(&h, ps_global->VAR_VIEW_HEADERS, ps_global->view_all_except,
FE_DEFAULT);
-@@ -1276,7 +1276,7 @@
+@@ -1358,7 +1358,7 @@
if(append_file_name)
fs_give((void **)&append_file_name);
@@ -122,7 +122,7 @@
error_description(errno));
return(0);
}
-@@ -1570,7 +1570,7 @@
+@@ -1665,7 +1665,7 @@
write_error:
if(!(flgs & FM_DISPLAY))
@@ -131,7 +131,7 @@
decode_err ? decode_err : error_description(errno));
return(0);
-@@ -1908,12 +1908,12 @@
+@@ -2137,12 +2137,12 @@
char prompt[256], tmp[MAILTMPLEN];
int rc, flags, local_h;
static ESCKEY_S launch_opts[] = {
@@ -148,7 +148,7 @@
{-1, 0, NULL, NULL}};
if(handle->type == URL){
-@@ -1939,11 +1939,11 @@
+@@ -2168,11 +2168,11 @@
if(!local_h){
if(ps_global->vars[V_BROWSER].is_fixed){
q_status_message(SM_ORDER, 3, 4,
@@ -162,7 +162,7 @@
'y', 0, NO_HELP, WT_SEQ_SENSITIVE) == 'y'){
/* Prompt for the displayer? */
tmp[0] = '\0';
-@@ -1987,7 +1987,7 @@
+@@ -2216,7 +2216,7 @@
}
else{
q_status_message1(SM_ORDER | SM_DING, 2, 2,
@@ -171,18 +171,31 @@
error_description(errno));
continue;
}
-@@ -2017,8 +2017,8 @@
- return(1);
-
- while(1){
-- sprintf(prompt, "View selected %s %s%.37s%s? ",
-- (handle->type == URL) ? "URL" : "Attachment",
-+ sprintf(prompt, "檢視選擇的 %s %s%.37s%s? ",
-+ (handle->type == URL) ? "URL" : "附件",
- (handle->type == URL) ? "\"" : "",
- (handle->type == URL) ? handle->h.url.path : "",
- (handle->type == URL)
-@@ -2723,11 +2723,11 @@
+@@ -2260,8 +2260,8 @@
+ max(0,sc - 25), handle->h.url.path+7,
+ (strlen(handle->h.url.path+7) > max(0,sc-25)) ? "..." : "");
+ else
+- sprintf(prompt, "View selected %s %s%.*s%s ? ",
+- (handle->type == URL) ? "URL" : "Attachment",
++ sprintf(prompt, "檢視選擇的 %s %s%.*s%s ? ",
++ (handle->type == URL) ? "URL" : "附件",
+ (handle->type == URL) ? "\"" : "",
+ max(0,sc-27),
+ (handle->type == URL) ? handle->h.url.path : "",
+@@ -2320,10 +2320,10 @@
+ OE_KEEP_TRAILING_SPACE |
+ OE_DISALLOW_HELP;
+
+- sprintf(prompt, "Viewer command: ");
++ sprintf(prompt, "檢視器命令:");
+
+ rc = optionally_enter(tmp, -FOOTER_ROWS(ps_global), 0,
+- MAILTMPLEN - 1, "Viewer Command: ",
++ MAILTMPLEN - 1, "檢視器命令:",
+ NULL, NO_HELP, &flags);
+ if(rc == 0){
+ if(flags & OE_USER_MODIFIED){
+@@ -3639,11 +3639,11 @@
mode = PIPE_RESET | PIPE_USER ;
if(syspipe = open_system_pipe(cmd, NULL, NULL, mode, 0)){
close_system_pipe(&syspipe);
@@ -196,7 +209,7 @@
}
else if(f = url_local_handler(handle->h.url.path)){
if((*f)(handle->h.url.path) > 1)
-@@ -2735,7 +2735,7 @@
+@@ -3651,7 +3651,7 @@
}
else
q_status_message1(SM_ORDER, 2, 2,
@@ -205,7 +218,7 @@
handle->h.url.path);
return(rv);
-@@ -2747,7 +2747,7 @@
+@@ -3663,7 +3663,7 @@
int return_value;
{
q_status_message(SM_ORDER | SM_DING, 3, 3,
@@ -214,16 +227,16 @@
return(return_value);
}
-@@ -3046,7 +3046,7 @@
+@@ -4008,7 +4008,7 @@
}
else
q_status_message(SM_ORDER | SM_DING, 3, 4,
- "Can't create space for composer");
+ "無法替編輯器建立空間");
+ outta_here:
if(outgoing)
- mail_free_envelope(&outgoing);
-@@ -3113,7 +3113,7 @@
+@@ -4079,7 +4079,7 @@
else if(errstr)
q_status_message(SM_ORDER|SM_DING, 3, 3, errstr);
else
@@ -232,7 +245,7 @@
break;
-@@ -3136,7 +3136,7 @@
+@@ -4102,7 +4102,7 @@
if(uid_val != ps_global->mail_stream->uid_validity){
/* Complain! */
q_status_message(SM_ORDER|SM_DING, 3, 3,
@@ -241,7 +254,7 @@
}
if(uid){
-@@ -3152,7 +3152,7 @@
+@@ -4118,7 +4118,7 @@
if(i > mn_get_total(ps_global->msgmap))
q_status_message(SM_ORDER, 2, 3,
@@ -250,7 +263,7 @@
}
else if(search){
/*
-@@ -3173,9 +3173,9 @@
+@@ -4139,9 +4139,9 @@
if(i = any_lflagged(ps_global->msgmap, MN_SLCT)){
extern long zoom_index();
@@ -263,20 +276,16 @@
/* Zoom the index! */
zoom_index(ps_global, ps_global->msgmap);
}
-@@ -3314,9 +3314,9 @@
+@@ -4289,7 +4289,7 @@
- if(auth && *auth != '*')
- q_status_message1(SM_ORDER, 3, 3,
-- "Unsupported authentication method. %s.",
-- user ? "Using standard login"
-- : "Logging in as \"Anonymous\"");
-+ "未支援的認證模式。%s。",
-+ user ? "使用標準登入"
-+ : "以 \"Anonymous\" 登入");
+ if(auth && *auth != '*')
+ q_status_message(SM_ORDER, 3, 3,
+- "Unsupported authentication method. Using standard login.");
++ "未支援的認證方式。使用標準登入。");
- /*
- * At this point our structure should contain the
-@@ -3401,7 +3401,7 @@
+ /*
+ * At this point our structure should contain the
+@@ -4373,7 +4373,7 @@
if(i > mn_get_total(ps_global->msgmap))
q_status_message(SM_ORDER, 2, 3,
@@ -285,7 +294,7 @@
}
break;
-@@ -3515,7 +3515,7 @@
+@@ -4490,7 +4490,7 @@
}
else
q_status_message1(SM_ORDER | SM_DING, 0, 3,
@@ -294,7 +303,7 @@
return(1);
}
-@@ -3542,7 +3542,7 @@
+@@ -4517,7 +4517,7 @@
dprint(2, (debugfile, "-- bogus url \"%s\": %s\n",
url ? url : "<NULL URL>", reason));
if(url)
@@ -303,7 +312,7 @@
(void *) (strchr(url, ':') - url), url, reason);
return(0);
-@@ -3684,7 +3684,7 @@
+@@ -4678,7 +4678,7 @@
write_error:
if(style == QStatus)
@@ -312,7 +321,7 @@
error_description(errno));
return(1);
-@@ -3935,7 +3935,7 @@
+@@ -4931,7 +4931,7 @@
gf_set_so_readc(&tmp_gc, df_store);
if(errstr = dfilter(display_filter, tmp_store, tmp_pc, NULL)){
q_status_message1(SM_ORDER | SM_DING, 3, 3,
@@ -321,16 +330,16 @@
rv = FHT_WRTERR;
}
else
-@@ -3945,7 +3945,7 @@
+@@ -4941,7 +4941,7 @@
}
else{
- q_status_message1(SM_ORDER | SM_DING, 3, 3,
-- "No space for filtered text: %s", errstr);
-+ "沒有足夠的空間過濾文字:%s", errstr);
+ q_status_message(SM_ORDER | SM_DING, 3, 3,
+- "No space for filtered text.");
++ "沒有足夠的空間過濾文字。");
rv = FHT_WRTERR;
}
}
-@@ -3971,7 +3971,7 @@
+@@ -4983,7 +4983,7 @@
if(errstr = gf_pipe(tmp_gc, final_pc)){
rv = FHT_WRTERR;
q_status_message1(SM_ORDER | SM_DING, 3, 3,
@@ -339,8 +348,8 @@
}
}
-@@ -4115,7 +4115,7 @@
- format_newsgroup_string("Newsgroups: ", e->newsgroups, prefix, pc);
+@@ -5121,7 +5121,7 @@
+ format_newsgroup_string("Newsgroups: ", e->newsgroups, flags, pc);
if(e->ngbogus)
q_status_message(SM_ORDER, 0, 3,
- "Unverified Newsgroup header -- Message MAY or MAY NOT have been posted");
@@ -348,7 +357,7 @@
}
if((which & FE_FOLLOWUPTO) && e->followup_to)
-@@ -4756,7 +4756,7 @@
+@@ -5880,7 +5880,7 @@
}
if(!sparms->bar.title)
@@ -357,7 +366,7 @@
if(sparms->bar.style == TitleBarNone)
sparms->bar.style = MsgTextPercent;
-@@ -4914,7 +4914,7 @@
+@@ -6053,7 +6053,7 @@
}
if(first_view && num_display_lines >= scroll_text_lines())
@@ -366,7 +375,7 @@
force = 0; /* may not need to next time around */
-@@ -5047,7 +5047,7 @@
+@@ -6191,7 +6191,7 @@
whereis_pos.row = 0;
if(sparms->help.text == NO_HELP || ps_global->nr_mode){
q_status_message(SM_ORDER, 0, 5,
@@ -375,7 +384,7 @@
break;
}
-@@ -5086,12 +5086,12 @@
+@@ -6230,7 +6230,7 @@
cur_top_line -= scroll_lines;
if(cur_top_line <= 0){
cur_top_line = 0;
@@ -384,13 +393,16 @@
STYLE_NAME(sparms));
}
}
- else{
-- q_status_message1(SM_ORDER, 0, 1, "Already at start of %s",
-+ q_status_message1(SM_ORDER, 0, 1, "已經在%s的起始",
- STYLE_NAME(sparms));
+@@ -6246,7 +6246,7 @@
+ }
- /* hilite last available handle */
-@@ -5117,12 +5117,12 @@
+ if(!next_handle)
+- q_status_message1(SM_ORDER, 0, 1, "Already at start of %s",
++ q_status_message1(SM_ORDER, 0, 1, "已經在%s的起始",
+ STYLE_NAME(sparms));
+
+ }
+@@ -6264,12 +6264,12 @@
cur_top_line += scroll_lines;
if(cur_top_line + num_display_lines >= scroll_text_lines())
@@ -405,7 +417,7 @@
STYLE_NAME(sparms));
/* hilite last available handle */
if(sparms->text.handles){
-@@ -5184,11 +5184,11 @@
+@@ -6339,11 +6339,11 @@
whereis_pos.row = 0;
cur_top_line++;
if(cur_top_line + num_display_lines >= scroll_text_lines())
@@ -419,7 +431,7 @@
STYLE_NAME(sparms));
}
-@@ -5243,11 +5243,11 @@
+@@ -6406,11 +6406,11 @@
if(cur_top_line){
cur_top_line--;
if(cur_top_line == 0)
@@ -433,7 +445,7 @@
STYLE_NAME(sparms));
}
-@@ -5281,7 +5281,7 @@
+@@ -6444,7 +6444,7 @@
}
q_status_message1(SM_ORDER, 0, 1,
@@ -442,7 +454,7 @@
STYLE_NAME(sparms));
}
-@@ -5315,7 +5315,7 @@
+@@ -6478,7 +6478,7 @@
}
q_status_message1(SM_ORDER, 0, 1,
@@ -451,16 +463,7 @@
STYLE_NAME(sparms));
}
-@@ -5335,7 +5335,7 @@
- break;
-
- case -1 :
-- cmd_cancelled("View");
-+ cmd_cancelled("檢視");
- break;
-
- default :
-@@ -5434,8 +5434,8 @@
+@@ -6611,8 +6611,8 @@
q_status_message(SM_ORDER, 0, 3, tmp_20k_buf);
else
q_status_message2(SM_ORDER, 0, 3,
@@ -471,7 +474,7 @@
int2string(whereis_pos.row));
if(key){
-@@ -5452,9 +5452,9 @@
+@@ -6629,9 +6629,9 @@
}
}
else if(found_on == -1)
@@ -483,16 +486,7 @@
}
break;
-@@ -5548,7 +5548,7 @@
- break;
-
- case -1 :
-- cmd_cancelled("View");
-+ cmd_cancelled("檢視");
- break;
-
- default :
-@@ -5836,13 +5836,13 @@
+@@ -7002,13 +7002,13 @@
int rc, flags;
static char search_string[MAX_SEARCH+1] = { '\0' };
static ESCKEY_S word_search_key[] = { { 0, 0, "", "" },
@@ -509,7 +503,7 @@
help = NO_HELP;
nsearch_string[0] = '\0';
-@@ -5857,13 +5857,13 @@
+@@ -7023,13 +7023,13 @@
continue;
}
else if(rc == 10){
@@ -525,7 +519,7 @@
cursor_pos->row = max(scroll_text_lines() - 1, 0);
cursor_pos->col = 0;
return(cursor_pos->row);
-@@ -6808,12 +6808,12 @@
+@@ -8165,12 +8165,12 @@
if(*msg_p[0])
for(i = 0; i < msg_q; i++)
q_status_message2(SM_ORDER, 3, 4,
@@ -540,7 +534,7 @@
fclose(f);
f = NULL;
-@@ -6826,7 +6826,7 @@
+@@ -8183,7 +8183,7 @@
q_status_message2(SM_ORDER, 0, 4, "%s%s", title,
alt_msg
? alt_msg
@@ -549,7 +543,7 @@
fclose(f);
f = NULL;
}
-@@ -6841,7 +6841,7 @@
+@@ -8198,7 +8198,7 @@
memset(&sargs, 0, sizeof(SCROLL_S));
sargs.text.text = f;
sargs.text.src = FileStar;
@@ -558,3 +552,12 @@
sargs.bar.title = title;
sargs.bar.style = TextPercent;
sargs.help.text = h_simple_text_view;
+@@ -8399,7 +8399,7 @@
+ break;
+
+ case -1 :
+- cmd_cancelled("View");
++ cmd_cancelled("檢視");
+ break;
+
+ default :