1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/chinese/pine4/files/patch-aw

478 lines
14 KiB
Plaintext
Raw Normal View History

--- pine/mailview.c.orig Tue Jul 7 10:05:59 1998
+++ pine/mailview.c Wed Jul 15 17:02:35 1998
@@ -142,8 +142,8 @@
static struct key view_keys[] =
{HELP_MENU,
OTHER_MENU,
- {"<","MsgIndex",{MC_INDEX,3,{'i','<',','}},KS_FLDRINDEX},
- {">","ViewAttch",{MC_VIEW_ATCH,3,{'v','>','.'}},KS_NONE},
+ {"<","<22><><EFBFBD><EFBFBD>",{MC_INDEX,3,{'i','<',','}},KS_FLDRINDEX},
+ {">","<22>˵<EFBFBD><CBB5><EFBFBD><EFBFBD><EFBFBD>",{MC_VIEW_ATCH,3,{'v','>','.'}},KS_NONE},
PREVMSG_MENU,
NEXTMSG_MENU,
PREVPAGE_MENU,
@@ -168,11 +168,11 @@
HELP_MENU,
OTHER_MENU,
- {"Ret","[View Hilite]",{MC_VIEW_HANDLE,3,
+ {"Ret","[<5B>˵<EFBFBD> Hilite]",{MC_VIEW_HANDLE,3,
{ctrl('m'),ctrl('j'),KEY_RIGHT}},KS_NONE},
- {":","SelectCur",{MC_SELCUR,1,{':'}},KS_SELECTCUR},
- {"^B","Prev URL",{MC_PREV_HANDLE,1,{ctrl('B')}},KS_NONE},
- {"^F","Next URL",{MC_NEXT_HANDLE,1,{ctrl('F')}},KS_NONE},
+ {":","<22><><EFBFBD><EFBFBD>",{MC_SELCUR,1,{':'}},KS_SELECTCUR},
+ {"^B","<22>e<EFBFBD>@ URL",{MC_PREV_HANDLE,1,{ctrl('B')}},KS_NONE},
+ {"^F","<22><><EFBFBD>@ URL",{MC_NEXT_HANDLE,1,{ctrl('F')}},KS_NONE},
JUMP_MENU,
TAB_MENU,
HDRMODE_MENU,
@@ -189,7 +189,7 @@
#define FLAG_KEY 34
#define VIEW_PIPE_KEY 35
-static struct key nr_anon_view_keys[] =
+static struct key nr_anon_view_keys[] =
{HELP_MENU,
WHEREIS_MENU,
QUIT_MENU,
@@ -213,7 +213,7 @@
NEXTMSG_MENU,
PREVPAGE_MENU,
NEXTPAGE_MENU,
- {"F", "Fwd Email", {MC_FORWARD,1,{'f'}}, KS_FORWARD},
+ {"F", "<22>H<EFBFBD><48><EFBFBD><EFBFBD><EFBFBD>H", {MC_FORWARD,1,{'f'}}, KS_FORWARD},
JUMP_MENU,
PRYNTTXT_MENU,
SAVE_MENU,
@@ -235,7 +235,7 @@
static struct key simple_text_keys[] =
{HELP_MENU,
NULL_MENU,
- {"E","Exit Viewer",{MC_EXIT,1,{'e'}},KS_NONE},
+ {"E","<22><><EFBFBD>}",{MC_EXIT,1,{'e'}},KS_NONE},
NULL_MENU,
NULL_MENU,
NULL_MENU,
@@ -244,7 +244,7 @@
PRYNTTXT_MENU,
WHEREIS_MENU,
FWDEMAIL_MENU,
- {"S", "Save", {MC_SAVETEXT,1,{'s'}}, KS_SAVE}};
+ {"S", "<22>s<EFBFBD><73>", {MC_SAVETEXT,1,{'s'}}, KS_SAVE}};
INST_KEY_MENU(simple_text_keymenu, simple_text_keys);
@@ -379,7 +379,7 @@
* we were viewing. If so, make sure we don't just come back.
*/
if(mn_get_total(ps->msgmap) <= 0L || !ps->mail_stream){
- q_status_message(SM_ORDER, 0, 3, "No messages to read!");
+ q_status_message(SM_ORDER, 0, 3, "<22>S<EFBFBD><53><EFBFBD>i<EFBFBD><69>Ū<EFBFBD><C5AA><EFBFBD><EFBFBD><EFBFBD>H<EFBFBD><48><EFBFBD>I");
ps->next_screen = mail_index_screen;
break;
}
@@ -393,7 +393,7 @@
body = NULL;
if(!(env = mail_fetchstructure(ps->mail_stream, raw_msgno, &body))
|| !(mc = mail_elt(ps->mail_stream, raw_msgno))){
- q_status_message1(SM_ORDER, 3, 3, "Error getting message %s data",
+ q_status_message1(SM_ORDER, 3, 3, "<22><><EFBFBD>o<EFBFBD>H<EFBFBD><48> %s <20><><EFBFBD><EFBFBD><EFBFBD>Ʈɵo<C9B5>Ϳ<EFBFBD><CDBF>~",
comatose(mn_get_cur(ps->msgmap)));
dprint(1, (debugfile, "!!!! ERROR fetching %s of msg %ld\n",
env ? "elt" : "env", mn_get_cur(ps->msgmap)));
@@ -446,7 +446,7 @@
memset(&scrollargs, 0, sizeof(SCROLL_S));
scrollargs.text.text = so_text(store);
scrollargs.text.src = src;
- scrollargs.text.desc = "message";
+ scrollargs.text.desc = "<22>H<EFBFBD><48>";
/*
* make first selectable handle the default
@@ -465,11 +465,11 @@
else
scrollargs.body_valid = 1;
- scrollargs.bar.title = "MESSAGE TEXT";
+ scrollargs.bar.title = "<22>H<EFBFBD><48><EFBFBD><EFBFBD><EFBFBD>r";
scrollargs.end_scroll = view_end_scroll;
scrollargs.resize_exit = 1;
scrollargs.help.text = h_mail_view;
- scrollargs.help.title = "HELP FOR MESSAGE TEXT VIEW";
+ scrollargs.help.title = "<22>H<EFBFBD><48><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD><72><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>";
scrollargs.keys.menu = &view_keymenu;
scrollargs.keys.what = save_what;
setbitmap(scrollargs.keys.bitmap);
@@ -1192,7 +1192,7 @@
/*---- format and copy envelope ----*/
if(ps_global->full_header)
q_status_message(SM_INFO, 0, 3,
- "Full header mode ON. All header text being included");
+ "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Y<EFBFBD>Ҧ<EFBFBD><D2A6>}<7D>ҡC<D2A1>Ҧ<EFBFBD><D2A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Y<EFBFBD><59><EFBFBD>r<EFBFBD><72><EFBFBD>]<5D>t<EFBFBD>b<EFBFBD><62>");
HD_INIT(&h, ps_global->VAR_VIEW_HEADERS, ps_global->view_all_except,
FE_DEFAULT);
@@ -1231,7 +1231,7 @@
if(append_file_name)
fs_give((void **)&append_file_name);
- q_status_message1(SM_ORDER,3,3,"Can't make temp file: %s",
+ q_status_message1(SM_ORDER,3,3,"<22>L<EFBFBD>k<EFBFBD>إ߼Ȧs<C8A6>ɡG%s",
error_description(errno));
return(0);
}
@@ -1525,7 +1525,7 @@
write_error:
if(!(flgs & FM_DISPLAY))
- q_status_message1(SM_ORDER, 3, 4, "Error writing message: %s",
+ q_status_message1(SM_ORDER, 3, 4, "<22>g<EFBFBD>J<EFBFBD>H<EFBFBD><48><EFBFBD>ɵo<C9B5>Ϳ<EFBFBD><CDBF>~<7E>G%s",
decode_err ? decode_err : error_description(errno));
return(0);
@@ -1855,8 +1855,8 @@
char prompt[256], tmp[MAILTMPLEN];
int rc, flags, local_h;
static ESCKEY_S launch_opts[] = {
- {'y', 'y', "Y", "Yes"},
- {'n', 'n', "N", "No"},
+ {'y', 'y', "Y", "<22>O"},
+ {'n', 'n', "N", "<22>_"},
{-2, 0, NULL, NULL},
{-2, 0, NULL, NULL},
{0, 'u', "U", "editURL"},
@@ -1877,7 +1877,7 @@
else{
launch_opts[5].ch = -1;
if(!local_h){
- if(want_to("No Web-Browser application defined! Define now",
+ if(want_to("<22>|<7C><><EFBFBD>w<EFBFBD>q Web-Browser<65>I<EFBFBD>{<7B>b<EFBFBD>w<EFBFBD>q",
'y', 0, NO_HELP, WT_SEQ_SENSITIVE) == 'y'){
/* Prompt for the displayer? */
tmp[0] = '\0';
@@ -1921,7 +1921,7 @@
}
else{
q_status_message1(SM_ORDER | SM_DING, 2, 2,
- "Browser not found: %s",
+ "<22><EFBFBD><E4A4A3><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>G%s",
error_description(errno));
continue;
}
@@ -1950,8 +1950,8 @@
return(1);
while(1){
- sprintf(prompt, "View selected %s %s%.37s%s? ",
- (handle->type == URL) ? "URL" : "Attachment",
+ sprintf(prompt, "<22>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>ܪ<EFBFBD> %s %s%.37s%s? ",
+ (handle->type == URL) ? "URL" : "<22><><EFBFBD><EFBFBD>",
(handle->type == URL) ? "\"" : "",
(handle->type == URL) ? handle->h.url.path : "",
(handle->type == URL)
@@ -2416,11 +2416,11 @@
mode = PIPE_RESET | PIPE_USER ;
if(syspipe = open_system_pipe(cmd, NULL, NULL, mode)){
close_system_pipe(&syspipe);
- q_status_message(SM_ORDER, 0, 4, "VIEWER command completed");
+ q_status_message(SM_ORDER, 0, 4, "VIEWER <20>R<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD>");
}
else
q_status_message1(SM_ORDER, 3, 4,
- "Cannot spawn command : %s", cmd);
+ "<22>L<EFBFBD>k<EFBFBD>_<EFBFBD>l<EFBFBD>R<EFBFBD>O<EFBFBD>G%s", cmd);
}
else if(f = url_local_handler(handle->h.url.path)){
if((*f)(handle->h.url.path) > 1)
@@ -2428,7 +2428,7 @@
}
else
q_status_message1(SM_ORDER, 2, 2,
- "\"Web-Browser\" not defined: Can't open %s",
+ "<22>|<7C><><EFBFBD>w<EFBFBD>q \"Web-Browser\"<22>G<EFBFBD>L<EFBFBD>k<EFBFBD>}<7D><> %s",
handle->h.url.path);
return(rv);
@@ -2748,7 +2748,7 @@
}
else
q_status_message(SM_ORDER | SM_DING, 3, 4,
- "Can't create space for composer");
+ "<22>L<EFBFBD>k<EFBFBD><6B><EFBFBD>s<EFBFBD><EFBFBD>إߪŶ<DFAA>");
if(outgoing)
mail_free_envelope(&outgoing);
@@ -2835,7 +2835,7 @@
if(uid_val != ps_global->mail_stream->uid_validity){
/* Complain! */
q_status_message(SM_ORDER|SM_DING, 3, 3,
- "Warning! Referenced folder changed since URL recorded");
+ "ĵ<>i<EFBFBD>I<EFBFBD>ѦҸ<D1A6><D2B8>ƧX<C6A7>w<EFBFBD><77> URL <20>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
}
if(uid){
@@ -2851,7 +2851,7 @@
if(i > mn_get_total(ps_global->msgmap))
q_status_message(SM_ORDER, 2, 3,
- "Couldn't find specified article number");
+ "<22><EFBFBD><E4A4A3><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD>s<EFBFBD><73>");
}
else if(search){
/*
@@ -2872,9 +2872,9 @@
if(i = any_lflagged(ps_global->msgmap, MN_SLCT)){
extern long zoom_index();
- q_status_message2(SM_ORDER, 0, 3,
- "%s message%s selected",
- long2string(i), plural(i));
+ q_status_message1(SM_ORDER, 0, 3,
+ "<22>w<EFBFBD><77><EFBFBD><EFBFBD> %s <20>ʫH<CAAB><48>",
+ long2string(i));
/* Zoom the index! */
zoom_index(ps_global, ps_global->msgmap);
}
@@ -3013,9 +3013,9 @@
if(auth && *auth != '*')
q_status_message1(SM_ORDER, 3, 3,
- "Unsupported authentication method. %s.",
- user ? "Using standard login"
- : "Logging in as \"Anonymous\"");
+ "<22><><EFBFBD><EFBFBD><E4B4A9><EFBFBD>{<7B>ҼҦ<D2BC><D2A6>C%s<>C",
+ user ? "<22>ϥμзǵn<C7B5>J"
+ : "<22>H \"Anonymous\" <20>n<EFBFBD>J");
/*
* At this point our structure should contain the
@@ -3100,7 +3100,7 @@
if(i > mn_get_total(ps_global->msgmap))
q_status_message(SM_ORDER, 2, 3,
- "Couldn't find specified article number");
+ "<22><EFBFBD><E4A4A3><EFBFBD><EFBFBD><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD>s<EFBFBD><73>");
}
break;
@@ -3179,7 +3179,7 @@
}
else
q_status_message1(SM_ORDER | SM_DING, 0, 3,
- "Can't find fragment: %s", fragment);
+ "<22><EFBFBD><E4A4A3><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>G%s", fragment);
return(1);
}
@@ -3190,10 +3190,10 @@
url_local_phone_home(url)
char *url;
{
- if(want_to("Request document", 'y', 0, NO_HELP, WT_FLUSH_IN) == 'y')
+ if(want_to("<22>n<EFBFBD>D<EFBFBD><44><EFBFBD><EFBFBD>", 'y', 0, NO_HELP, WT_FLUSH_IN) == 'y')
phone_home(url + 18); /* 18 == length of "x-pine-phone-home:" */
else
- q_status_message(SM_ORDER, 0, 3, "No request sent");
+ q_status_message(SM_ORDER, 0, 3, "<22>ШD<D0A8><44><EFBFBD>e<EFBFBD>X");
return(1);
}
@@ -3210,7 +3210,7 @@
dprint(2, (debugfile, "-- bogus url \"%s\": %s\n",
url ? url : "<NULL URL>", reason));
if(url)
- q_status_message3(SM_ORDER|SM_DING, 2, 3, "Malformed \"%.*s\" URL: %s",
+ q_status_message3(SM_ORDER|SM_DING, 2, 3, "<22><EFBFBD><E6A6A1><EFBFBD>~<7E><> \"%.*s\" URL<52>G%s",
(void *) (strchr(url, ':') - url), url, reason);
return(0);
@@ -3354,7 +3354,7 @@
write_error:
if(style == QStatus)
- q_status_message1(SM_ORDER, 3, 4, "Error writing message: %s",
+ q_status_message1(SM_ORDER, 3, 4, "<22>g<EFBFBD>J<EFBFBD>H<EFBFBD><48><EFBFBD>ɵo<C9B5>Ϳ<EFBFBD><CDBF>~<7E>G%s",
error_description(errno));
return(1);
@@ -3604,7 +3604,7 @@
gf_set_so_writec(&tmp_pc, df_store);
if(errstr = dfilter(display_filter, tmp_store, tmp_pc, NULL)){
q_status_message1(SM_ORDER | SM_DING, 3, 3,
- "Formatting error: %s", errstr);
+ "<22><EFBFBD><E6A6A1><EFBFBD>~<7E>G%s", errstr);
rv = FHT_WRTERR;
}
else{
@@ -3616,7 +3616,7 @@
}
else{
q_status_message1(SM_ORDER | SM_DING, 3, 3,
- "No space for filtered text: %s", errstr);
+ "<22>S<EFBFBD><53><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŷ<EFBFBD><C5B6>L<EFBFBD>o<EFBFBD><6F><EFBFBD>r<EFBFBD>G%s", errstr);
rv = FHT_WRTERR;
}
}
@@ -3641,7 +3641,7 @@
if(errstr = gf_pipe(tmp_gc, final_pc)){
rv = FHT_WRTERR;
q_status_message1(SM_ORDER | SM_DING, 3, 3,
- "Can't build header : %s", errstr);
+ "<22>L<EFBFBD>k<EFBFBD>إ߼<D8A5><DFBC>Y<EFBFBD>G%s", errstr);
}
}
@@ -3780,7 +3780,7 @@
format_newsgroup_string("Newsgroups: ", e->newsgroups, prefix, pc);
if(e->ngbogus)
q_status_message(SM_ORDER, 0, 3,
- "Unverified Newsgroup header -- Message MAY or MAY NOT have been posted");
+ "<22><><EFBFBD>g<EFBFBD>ҹꪺ<D2B9>s<EFBFBD>D<EFBFBD>ոs<D5B8><73><EFBFBD>Y -- <20>T<EFBFBD><54><EFBFBD>i<EFBFBD><69><EFBFBD>q<EFBFBD><71><EFBFBD>Q<EFBFBD>i<EFBFBD>K");
}
if((which & FE_FOLLOWUPTO) && e->followup_to)
@@ -4404,7 +4404,7 @@
}
if(!sparms->bar.title)
- sparms->bar.title = "Text";
+ sparms->bar.title = "<22><><EFBFBD>r";
if(sparms->bar.style == TitleBarNone)
sparms->bar.style = MsgTextPercent;
@@ -4553,7 +4553,7 @@
}
if(first_view && num_display_lines >= get_scroll_text_lines())
- q_status_message1(SM_INFO, 0, 1, "ALL of %s", STYLE_NAME(sparms));
+ q_status_message1(SM_INFO, 0, 1, "%s <20><><EFBFBD><EFBFBD>", STYLE_NAME(sparms));
force = 0; /* may not need to next time around */
@@ -4669,7 +4669,7 @@
whereis_pos.row = 0;
if(sparms->help.text == NO_HELP || ps_global->nr_mode){
q_status_message(SM_ORDER, 0, 5,
- "No help text currently available");
+ "<22>ثe<D8AB>|<7C>L<EFBFBD><4C><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>");
break;
}
@@ -4708,12 +4708,12 @@
cur_top_line -= scroll_lines;
if(cur_top_line <= 0){
cur_top_line = 0;
- q_status_message1(SM_INFO, 0, 1, "START of %s",
+ q_status_message1(SM_INFO, 0, 1, "%s<>_<EFBFBD>l",
STYLE_NAME(sparms));
}
}
else
- q_status_message1(SM_ORDER, 0, 1, "Already at start of %s",
+ q_status_message1(SM_ORDER, 0, 1, "<22>w<EFBFBD>g<EFBFBD>b%s<><73><EFBFBD>_<EFBFBD>l",
STYLE_NAME(sparms));
break;
@@ -4727,12 +4727,12 @@
cur_top_line += scroll_lines;
if(cur_top_line + num_display_lines >= get_scroll_text_lines())
- q_status_message1(SM_INFO, 0, 1, "END of %s",
+ q_status_message1(SM_INFO, 0, 1, "%s<><73><EFBFBD><EFBFBD>",
STYLE_NAME(sparms));
}
else if(!sparms->end_scroll
|| !(done = (*sparms->end_scroll)(sparms)))
- q_status_message1(SM_ORDER, 0, 1, "Already at end of %s",
+ q_status_message1(SM_ORDER, 0, 1, "<22>w<EFBFBD>g<EFBFBD>b%s<><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
STYLE_NAME(sparms));
break;
@@ -4749,11 +4749,11 @@
cur_top_line++;
if(cur_top_line + num_display_lines
>= get_scroll_text_lines())
- q_status_message1(SM_INFO, 0, 1, "END of %s",
+ q_status_message1(SM_INFO, 0, 1, "%s<><73><EFBFBD><EFBFBD>",
STYLE_NAME(sparms));
}
else
- q_status_message1(SM_ORDER, 0, 1, "Already at end of %s",
+ q_status_message1(SM_ORDER, 0, 1, "<22>w<EFBFBD>g<EFBFBD>b%s<><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
STYLE_NAME(sparms));
}
@@ -4770,11 +4770,11 @@
if(cur_top_line){
cur_top_line--;
if(cur_top_line == 0)
- q_status_message1(SM_INFO, 0, 1, "START of %s",
+ q_status_message1(SM_INFO, 0, 1, "%s<>_<EFBFBD>l",
STYLE_NAME(sparms));
}
else
- q_status_message1(SM_ORDER, 0, 1, "Already at start of %s",
+ q_status_message1(SM_ORDER, 0, 1, "<22>w<EFBFBD>g<EFBFBD>b%s<><73><EFBFBD>_<EFBFBD>l",
STYLE_NAME(sparms));
}
@@ -4805,7 +4805,7 @@
}
q_status_message(SM_ORDER, 0, 1,
- "Already on last selectable item");
+ "<22>w<EFBFBD>g<EFBFBD>b<EFBFBD>̫<EFBFBD><CCAB>@<40>ӥi<D3A5><69><EFBFBD>ܪ<EFBFBD><DCAA><EFBFBD><EFBFBD>ؤW");
}
break;
@@ -4835,7 +4835,7 @@
}
q_status_message(SM_ORDER, 0, 1,
- "Already on first selectable item");
+ "<22>w<EFBFBD>g<EFBFBD>b<EFBFBD>Ĥ@<40>ӥi<D3A5><69><EFBFBD>ܪ<EFBFBD><DCAA><EFBFBD><EFBFBD>ؤW");
}
break;
@@ -4941,14 +4941,14 @@
q_status_message(SM_ORDER, 0, 3, tmp_20k_buf);
else
q_status_message2(SM_ORDER, 0, 3,
- "%sFound on line %s on screen",
- result ? "Search wrapped to start. " : "",
+ "%s<>b<EFBFBD>e<EFBFBD><65><EFBFBD>W<EFBFBD><57> %s <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",
+ result ? "<22><><EFBFBD>Y<EFBFBD>j<EFBFBD>M<EFBFBD>C" : "",
int2string(whereis_pos.row));
}
else if(found_on == -1)
cmd_cancelled("Search");
else
- q_status_message(SM_ORDER | SM_DING, 0, 3, "Word not found");
+ q_status_message(SM_ORDER | SM_DING, 0, 3, "<22><EFBFBD><E4A4A3><EFBFBD>Ӧr");
break;
@@ -6065,10 +6065,10 @@
if(*msg_p[0])
for(i = 0; i < msg_q; i++)
q_status_message2(SM_ORDER, 3, 4,
- "%s Result: %s", title, msg_p[i]);
+ "%s <20><><EFBFBD>G<EFBFBD>G%s", title, msg_p[i]);
else
q_status_message2(SM_ORDER, 0, 4, "%s%s", title,
- alt_msg ? alt_msg : " command completed");
+ alt_msg ? alt_msg : " <20>R<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD>");
}
else{
SCROLL_S sargs;
@@ -6079,7 +6079,7 @@
memset(&sargs, 0, sizeof(SCROLL_S));
sargs.text.text = f;
sargs.text.src = FileStar;
- sargs.text.desc = "help text";
+ sargs.text.desc = "<22><><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>r";
sargs.bar.title = title;
sargs.bar.style = TextPercent;
sargs.help.text = h_simple_text_view;