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

319 lines
9.8 KiB
Plaintext
Raw Normal View History

--- pine/mailindx.c.orig Thu Sep 3 00:22:21 1998
+++ pine/mailindx.c Tue Sep 22 19:18:33 1998
@@ -55,10 +55,10 @@
/*
* Some common Command Bindings
*/
-#define VIEWMSG_MENU {">", "[ViewMsg]", \
+#define VIEWMSG_MENU {">", "[<5B>˵<EFBFBD><CBB5>H<EFBFBD><48>]", \
{MC_VIEW_TEXT, 5,{'v','.','>',ctrl('M'),ctrl('J')}}, \
KS_VIEW}
-#define FLDRSORT_MENU {"$", "SortIndex", {MC_SORT,1,{'$'}}, KS_SORT}
+#define FLDRSORT_MENU {"$", "<22>Ƨǯ<C6A7><C7AF><EFBFBD>", {MC_SORT,1,{'$'}}, KS_SORT}
/*
@@ -67,7 +67,7 @@
static struct key index_keys[] =
{HELP_MENU,
OTHER_MENU,
- {"<", "FldrList", {MC_FOLDERS,2,{'<',','}}, KS_NONE},
+ {"<", "<22>H<EFBFBD><48><EFBFBD>X<EFBFBD>C<EFBFBD><43>", {MC_FOLDERS,2,{'<',','}}, KS_NONE},
VIEWMSG_MENU,
PREVMSG_MENU,
NEXTMSG_MENU,
@@ -94,9 +94,9 @@
HELP_MENU,
OTHER_MENU,
{"X",NULL,{MC_EXPUNGE,1,{'x'}},KS_NONE},
- {"&","unXclude",{MC_UNEXCLUDE,1,{'&'}},KS_NONE},
- {";","Select",{MC_SELECT,1,{';'}},KS_SELECT},
- {"A","Apply",{MC_APPLY,1,{'a'}},KS_APPLY},
+ {"&","<22><><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD>(exclude)",{MC_UNEXCLUDE,1,{'&'}},KS_NONE},
+ {";","<22><><EFBFBD><EFBFBD>",{MC_SELECT,1,{';'}},KS_SELECT},
+ {"A","<22>M<EFBFBD><4D>",{MC_APPLY,1,{'a'}},KS_APPLY},
FLDRSORT_MENU,
JUMP_MENU,
HDRMODE_MENU,
@@ -106,8 +106,8 @@
HELP_MENU,
OTHER_MENU,
- {":","SelectCur",{MC_SELCUR,1,{':'}},KS_SELECTCUR},
- {"Z","ZoomMode",{MC_ZOOM,1,{'z'}},KS_ZOOM},
+ {":","<22><><EFBFBD><EFBFBD>",{MC_SELCUR,1,{':'}},KS_SELECTCUR},
+ {"Z","<22>Y<EFBFBD><59><EFBFBD>Ҧ<EFBFBD>",{MC_ZOOM,1,{'z'}},KS_ZOOM},
LISTFLD_MENU,
NULL_MENU,
NULL_MENU,
@@ -175,9 +175,9 @@
static struct key simple_index_keys[] =
{HELP_MENU,
- {"E","ExitSelect",{MC_EXIT,1,{'e'}},KS_EXITMODE},
+ {"E","<22><><EFBFBD>}",{MC_EXIT,1,{'e'}},KS_EXITMODE},
NULL_MENU,
- {"S","[Select]",{MC_SELECT,3,{'s',ctrl('M'),ctrl('J')}},KS_SELECT},
+ {"S","[<5B><><EFBFBD><EFBFBD>]",{MC_SELECT,3,{'s',ctrl('M'),ctrl('J')}},KS_SELECT},
PREVMSG_MENU,
NEXTMSG_MENU,
PREVPAGE_MENU,
@@ -356,14 +356,14 @@
if(flags & INDX_HEADER)
set_titlebar((stream == ps_global->mail_stream)
? (style == MsgIndex || style == MultiMsgIndex)
- ? "MESSAGE INDEX"
- : "ZOOMED MESSAGE INDEX"
+ ? "<22>H<EFBFBD><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
+ : "<22>Y<EFBFBD><59><EFBFBD><EFBFBD>H<EFBFBD><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
: (!strcmp(folder, INTERRUPTED_MAIL))
- ? "COMPOSE: SELECT INTERRUPTED"
+ ? "<22>s<EFBFBD><73><EFBFBD>G<EFBFBD><47><EFBFBD>ܳQ<DCB3><51><EFBFBD>_<EFBFBD><5F>"
: (ps_global->VAR_FORM_FOLDER
&& !strcmp(ps_global->VAR_FORM_FOLDER, folder))
- ? "COMPOSE: SELECT FORM LETTER"
- : "COMPOSE: SELECT POSTPONED",
+ ? "<22>s<EFBFBD><73><EFBFBD>G<EFBFBD><47><EFBFBD>ܼ˪<DCBC><CBAA>H<EFBFBD><48>"
+ : "<22>s<EFBFBD><73><EFBFBD>G<EFBFBD><47><EFBFBD>ܳQ<DCB3>Ƚw<C8BD><77>",
stream, cntxt, folder, msgmap, 1, MessageNumber, 0, 0);
if(flags & INDX_FOOTER) {
@@ -455,7 +455,7 @@
{
dprint(1, (debugfile, "\n\n ---- MAIL INDEX ----\n"));
if(!state->mail_stream) {
- q_status_message(SM_ORDER, 0, 3, "No folder is currently open");
+ q_status_message(SM_ORDER, 0, 3, "<22>ثe<D8AB>|<7C>L<EFBFBD>w<EFBFBD>}<7D>Ҫ<EFBFBD><D2AA>H<EFBFBD><48><EFBFBD>X");
state->prev_screen = mail_index_screen;
state->next_screen = main_menu_screen;
return;
@@ -657,7 +657,7 @@
if(F_ON(F_SHOW_CURSOR, state) && cur_row < 0){
q_status_message(SM_ORDER,
(ch==NO_OP_IDLE || ch==NO_OP_COMMAND) ? 0 : 3, 5,
- "No messages in folder");
+ "<22>H<EFBFBD><48><EFBFBD>X<EFBFBD><58><EFBFBD>S<EFBFBD><53><EFBFBD>H");
cur_row = state->ttyo->screen_rows - FOOTER_ROWS(state);
display_message(ch);
}
@@ -778,7 +778,7 @@
k = i;
if(++j >= id.lines_per_page){
if((id.msg_at_top = i) == 1L)
- q_status_message(SM_ORDER, 0, 1, "First Index page");
+ q_status_message(SM_ORDER, 0, 1, "<22><><EFBFBD>޲Ĥ@<40><>");
break;
}
@@ -787,7 +787,7 @@
if(i <= 1L){
if(mn_get_cur(msgmap) == 1L)
q_status_message(SM_ORDER, 0, 1,
- "Already at start of Index");
+ "<22>w<EFBFBD>g<EFBFBD>b<EFBFBD><62><EFBFBD>ު<EFBFBD><DEAA>_<EFBFBD>Y<EFBFBD>F");
break;
}
@@ -807,7 +807,7 @@
k = i;
if(++j >= id.lines_per_page){
if(i+id.lines_per_page >= mn_get_total(msgmap))
- q_status_message(SM_ORDER, 0, 1, "Last Index page");
+ q_status_message(SM_ORDER, 0, 1, "<22><><EFBFBD>޳̲׭<CCB2>");
id.msg_at_top = i;
break;
@@ -816,7 +816,7 @@
if(i >= mn_get_total(msgmap)){
if(mn_get_cur(msgmap) == k)
- q_status_message(SM_ORDER,0,1,"Already at end of Index");
+ q_status_message(SM_ORDER,0,1,"<22>w<EFBFBD>g<EFBFBD>b<EFBFBD><62><EFBFBD>ު<EFBFBD><DEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>F");
break;
}
@@ -1029,9 +1029,9 @@
}
q_status_message2(SM_ORDER, 0, 1,
- "Message %s %sdeleted",
+ "<22>H<EFBFBD><48> %s %s<>R<EFBFBD><52>",
long2string(mn_get_cur(msgmap)),
- (del) ? "" : "already ");
+ (del) ? "" : "<22>w");
}
break;
@@ -1053,9 +1053,9 @@
}
q_status_message2(SM_ORDER, 0, 1,
- "Message %s %sdeleted",
+ "<22>H<EFBFBD><48> %s %s<>R<EFBFBD><52>",
long2string(mn_get_cur(msgmap)),
- (del) ? "UN" : "NOT ");
+ (del) ? "<22>w<EFBFBD>D<EFBFBD>_<EFBFBD><5F>" : "<22><><EFBFBD>Q");
}
break;
@@ -1861,7 +1861,7 @@
dprint(1, (debugfile,
"parse_index_format: unrecognized token: %s\n", q));
q_status_message1(SM_ORDER | SM_DING, 0, 3,
- "Unrecognized string in index-format: %s", q);
+ "<22><><EFBFBD>ޮ榡<DEAE><E6A6A1><EFBFBD>X<EFBFBD>{<7B>L<EFBFBD>k<EFBFBD><6B><EFBFBD>Ѫ<EFBFBD><D1AA>r<EFBFBD><72><EFBFBD>G%s", q);
continue;
}
@@ -1903,7 +1903,7 @@
if(!column){
dprint(1, (debugfile, "Completely unrecognizable index-format\n"));
q_status_message(SM_ORDER | SM_DING, 0, 3,
- "Configured \"index-format\" unrecognizable. Using default.");
+ "<22>L<EFBFBD>k<EFBFBD><6B><EFBFBD>Ѥw<D1A4>]<5D>w<EFBFBD><77> \"index-format\"<22>C<EFBFBD>ϥιw<CEB9>]<5D>ȡC");
return(0);
}
@@ -2526,7 +2526,7 @@
sprintf(str, "%ld", idata->msgno);
else if(idata->bogus < 2 && cdesc->ctype == iSubject)
sprintf(str, "%-*.*s", width, width,
- "[ No Message Text Available ]");
+ "[ <20>L<EFBFBD>k<EFBFBD><6B><EFBFBD>o<EFBFBD>H<EFBFBD><48> ]");
}
else
switch(cdesc->ctype){
@@ -3425,8 +3425,8 @@
HelpType help;
static char search_string[MAX_SEARCH+1] = { '\0' };
static ESCKEY_S header_search_key[] = { {0, 0, NULL, NULL },
- {ctrl('Y'), 10, "^Y", "First Msg"},
- {ctrl('V'), 11, "^V", "Last Msg"},
+ {ctrl('Y'), 10, "^Y", "<22>Ĥ@<40>ʫH"},
+ {ctrl('V'), 11, "^V", "<22>̫<EFBFBD><CCAB>@<40>ʫH"},
{-1, 0, NULL, NULL} };
dprint(4, (debugfile, "\n - search headers - \n"));
@@ -3435,7 +3435,7 @@
return;
}
else if(mn_total_cur(msgmap) > 1L){
- q_status_message1(SM_ORDER, 0, 2, "%s msgs selected; Can't search",
+ q_status_message1(SM_ORDER, 0, 2, "<22>w<EFBFBD><77><EFBFBD><EFBFBD> %s <20>ʫH<CAAB><48><EFBFBD>F<EFBFBD>L<EFBFBD>k<EFBFBD>j<EFBFBD>M",
comatose(mn_total_cur(msgmap)));
return;
}
@@ -3446,13 +3446,13 @@
new_string[0] = '\0';
while(1) {
- sprintf(prompt, "Word to search for [%s] : ", search_string);
+ sprintf(prompt, "<22>j<EFBFBD>M[%s]<5D>G", search_string);
if(F_ON(F_ENABLE_AGG_OPS, ps_global)){
header_search_key[0].ch = ctrl('X');
header_search_key[0].rval = 12;
header_search_key[0].name = "^X";
- header_search_key[0].label = "Select Matches";
+ header_search_key[0].label = "<22><><EFBFBD><EFBFBD><EFBFBD>ŦX<C5A6><58>";
}
else{
header_search_key[0].ch = header_search_key[0].rval = 0;
@@ -3471,7 +3471,7 @@
continue;
}
else if(rc == 10){
- q_status_message(SM_ORDER, 0, 3, "Searched to First Message.");
+ q_status_message(SM_ORDER, 0, 3, "<22>j<EFBFBD>M<EFBFBD>ܲĤ@<40>ʫH<CAAB><48><EFBFBD>C");
if(any_lflagged(msgmap, MN_HIDE)){
do{
selected = sorted_msg;
@@ -3487,7 +3487,7 @@
return;
}
else if(rc == 11){
- q_status_message(SM_ORDER, 0, 3, "Searched to Last Message.");
+ q_status_message(SM_ORDER, 0, 3, "<22>j<EFBFBD>M<EFBFBD>̫ܳ<DCB3><CCAB>@<40>ʫH<CAAB><48><EFBFBD>C");
if(any_lflagged(msgmap, MN_HIDE)){
do{
selected = sorted_msg;
@@ -3512,7 +3512,7 @@
}
if(rc == 1 || (new_string[0] == '\0' && search_string[0] == '\0')) {
- cmd_cancelled("Search");
+ cmd_cancelled("<22>j<EFBFBD>M");
return;
}
@@ -3551,21 +3551,21 @@
}
if(ps_global->intr_pending){
- q_status_message1(SM_ORDER, 0, 3, "Search cancelled.%s",
+ q_status_message1(SM_ORDER, 0, 3, "<22><><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>M<EFBFBD>C%s",
select_all ? " Selected set may be incomplete.":"");
}
else if(select_all){
- q_status_message1(SM_ORDER, 0, 3, "%s messages found matching word",
+ q_status_message1(SM_ORDER, 0, 3, "<22>@ %s <20>ʫH<CAAB><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ŦX<C5A6><58><EFBFBD>r<EFBFBD><72>",
long2string(selected));
}
else if(selected){
- q_status_message1(SM_ORDER, 0, 3, "Word found%s",
+ q_status_message1(SM_ORDER, 0, 3, "<22>r<EFBFBD><72><EFBFBD>w<EFBFBD><77><EFBFBD><EFBFBD>%s",
(i <= sorted_msg)
- ? ". Search wrapped to beginning" : "");
+ ? "<22>C<EFBFBD><43><EFBFBD>Y<EFBFBD>j<EFBFBD>M" : "");
mn_set_cur(msgmap, i);
}
else
- q_status_message(SM_ORDER, 0, 3, "Word not found");
+ q_status_message(SM_ORDER, 0, 3, "<22><EFBFBD><E4A4A3><EFBFBD>r<EFBFBD><72>");
#ifndef DOS
intr_handling_off();
@@ -3702,7 +3702,7 @@
&& LEVELSORT(ps_global->mail_stream)))
sort_func = percent_sorted;
- sprintf(sort_msg, "Sorting \"%s\"",
+ sprintf(sort_msg, "<22><><EFBFBD>b<EFBFBD>Ƨ<EFBFBD> \"%s\"",
strsquish(tmp_20k_buf + 500, ps_global->cur_folder,
ps_global->ttyo->screen_cols - 20));
we_cancel = busy_alarm(1, sort_msg, sort_func, 1);
@@ -3752,8 +3752,8 @@
new_sort = mn_get_sort(msgmap);
new_rev = mn_get_revsort(msgmap);
q_status_message2(SM_ORDER, 3, 3,
- "Sort %s! Restored %s sort.",
- g_sort_prog->abort ? "Canceled" : "Failed",
+ "<22>Ƨ<EFBFBD>%s<>I<EFBFBD>^<5E>_<EFBFBD><5F> %s <20>ƧǡC",
+ g_sort_prog->abort ? "<22>w<EFBFBD><77><EFBFBD><EFBFBD>" : "<22><><EFBFBD><EFBFBD>",
sort_name(new_sort));
}
else if(mn_get_total(msgmap) < g_sort_prog->nmsgs)
@@ -4515,7 +4515,7 @@
icache.name = temp_nam(NULL, "pi");
if((icache.cache = (void *)fopen(icache.name,"w+b")) == NULL){
- sprintf(tmp_20k_buf, "Can't open index cache: %s",icache.name);
+ sprintf(tmp_20k_buf, "<22>L<EFBFBD>k<EFBFBD>}<7D>ү<EFBFBD><D2AF>ާ֨<DEA7><D6A8>G%s",icache.name);
fatal(tmp_20k_buf);
}
@@ -4897,10 +4897,10 @@
&& format_message(mn_m2raw(ps_global->msgmap,
mn_get_cur(ps_global->msgmap)),
env, body, FM_NEW_MESS, pc)){
- sprintf(title, "Folder %s -- Message %ld of %ld",
+ sprintf(title, "<22>H<EFBFBD><48><EFBFBD>X %s -- %ld <20>ʫH<CAAB>󤤪<EFBFBD><F3A4A4AA><EFBFBD> %ld <20><>",
strsquish(tmp_20k_buf + 500, ps_global->cur_folder, 50),
- mn_get_cur(ps_global->msgmap),
- mn_get_total(ps_global->msgmap));
+ mn_get_total(ps_global->msgmap),
+ mn_get_cur(ps_global->msgmap));
*text = so_text(so);
*l = strlen((char *)so_text(so));
*style = GETTEXT_TEXT;