1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/chinese/pine4/files/patch-bb
Steve Price 965c27e236 Update to version 4.21.
PR:		14994
Submitted by:	maintainer
1999-12-27 00:58:54 +00:00

320 lines
9.7 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- pine/mailindx.c.orig Tue Nov 9 08:20:33 1999
+++ pine/mailindx.c Fri Nov 19 16:18:24 1999
@@ -55,10 +55,10 @@
/*
* Some common Command Bindings
*/
-#define VIEWMSG_MENU {">", "[ViewMsg]", \
+#define VIEWMSG_MENU {">", "[À˵ø«H¥ó]", \
{MC_VIEW_TEXT, 5,{'v','.','>',ctrl('M'),ctrl('J')}}, \
KS_VIEW}
-#define FLDRSORT_MENU {"$", "SortIndex", {MC_SORT,1,{'$'}}, KS_SORT}
+#define FLDRSORT_MENU {"$", "±Æ§Ç¯Á¤Þ", {MC_SORT,1,{'$'}}, KS_SORT}
/*
@@ -67,7 +67,7 @@
static struct key index_keys[] =
{HELP_MENU,
OTHER_MENU,
- {"<", "FldrList", {MC_FOLDERS,2,{'<',','}}, KS_NONE},
+ {"<", "«H¥ó§X¦Cªí", {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},
+ {"&","¨ú®ø±Æ°£(exclude)",{MC_UNEXCLUDE,1,{'&'}},KS_NONE},
+ {";","¿ï¾Ü",{MC_SELECT,1,{';'}},KS_SELECT},
+ {"A","®M¥Î",{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},
+ {":","¿ï¾Ü",{MC_SELCUR,1,{':'}},KS_SELECTCUR},
+ {"Z","ÁY©ñ¼Ò¦¡",{MC_ZOOM,1,{'z'}},KS_ZOOM},
LISTFLD_MENU,
RCOMPOSE_MENU,
NULL_MENU,
@@ -175,9 +175,9 @@
static struct key simple_index_keys[] =
{HELP_MENU,
- {"E","ExitSelect",{MC_EXIT,1,{'e'}},KS_EXITMODE},
+ {"E","Â÷¶}",{MC_EXIT,1,{'e'}},KS_EXITMODE},
NULL_MENU,
- {"S","[Select]",{MC_SELECT,3,{'s',ctrl('M'),ctrl('J')}},KS_SELECT},
+ {"S","[¿ï¾Ü]",{MC_SELECT,3,{'s',ctrl('M'),ctrl('J')}},KS_SELECT},
PREVMSG_MENU,
NEXTMSG_MENU,
PREVPAGE_MENU,
@@ -388,14 +388,14 @@
if(flags & INDX_HEADER)
set_titlebar((stream == ps_global->mail_stream)
? (style == MsgIndex || style == MultiMsgIndex)
- ? "MESSAGE INDEX"
- : "ZOOMED MESSAGE INDEX"
+ ? "«H¥ó¯Á¤Þ"
+ : "ÁY©ñ«áªº«H¥ó¯Á¤Þ"
: (!strcmp(folder, INTERRUPTED_MAIL))
- ? "COMPOSE: SELECT INTERRUPTED"
+ ? "½s¿è¡G¿ï¾Ü³Q¤¤Â_ªº"
: (ps_global->VAR_FORM_FOLDER
&& !strcmp(ps_global->VAR_FORM_FOLDER, folder))
- ? "COMPOSE: SELECT FORM LETTER"
- : "COMPOSE: SELECT POSTPONED",
+ ? "½s¿è¡G¿ï¾Ü¼Ëª©«H¥ó"
+ : "½s¿è¡G¿ï¾Ü³Q¼È½wªº",
stream, cntxt, folder, msgmap, 1, MessageNumber, 0, 0);
if(flags & INDX_FOOTER) {
@@ -487,7 +487,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, "¥Ø«e©|µL¤w¶}±Òªº«H¥ó§X");
state->prev_screen = mail_index_screen;
state->next_screen = main_menu_screen;
return;
@@ -695,7 +695,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");
+ "«H¥ó§X¤¤¨S¦³«H");
cur_row = state->ttyo->screen_rows - FOOTER_ROWS(state);
display_message(ch);
}
@@ -822,7 +822,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, "¯Á¤Þ²Ä¤@­¶");
break;
}
@@ -831,7 +831,7 @@
if(i <= 1L){
if(mn_get_cur(msgmap) == 1L)
q_status_message(SM_ORDER, 0, 1,
- "Already at start of Index");
+ "¤w¸g¦b¯Á¤Þªº°_ÀY¤F");
break;
}
@@ -851,7 +851,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, "¯Á¤Þ³Ì²×­¶");
id.msg_at_top = i;
break;
@@ -860,7 +860,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,"¤w¸g¦b¯Á¤Þªºµ²§À¤F");
break;
}
@@ -1079,9 +1079,9 @@
}
q_status_message2(SM_ORDER, 0, 1,
- "Message %s %sdeleted",
+ "«H¥ó %s %s§R°£",
long2string(mn_get_cur(msgmap)),
- (del) ? "" : "already ");
+ (del) ? "" : "¤w");
}
break;
@@ -1103,9 +1103,9 @@
}
q_status_message2(SM_ORDER, 0, 1,
- "Message %s %sdeleted",
+ "«H¥ó %s %s§R°£",
long2string(mn_get_cur(msgmap)),
- (del) ? "UN" : "NOT ");
+ (del) ? "¤w¾D´_­ì" : "¥¼³Q");
}
break;
@@ -2176,7 +2176,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);
+ "¯Á¤Þ®æ¦¡¤¤¥X²{µLªk¿ëÃѪº¦r¦ê¡G%s", q);
continue;
}
@@ -2218,7 +2218,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.");
+ "µLªk¿ëÃѤw³]©wªº \"index-format\"¡C¨Ï¥Î¹w³]­È¡C");
return(0);
}
@@ -3130,7 +3130,7 @@
sprintf(str, "%ld", idata->msgno);
else if(idata->bogus < 2 && cdesc->ctype == iSubject)
sprintf(str, "%-*.*s", width, width,
- "[ No Message Text Available ]");
+ "[ µLªk¨ú±o«H¥ó ]");
}
else
switch(cdesc->ctype){
@@ -4824,8 +4824,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", "²Ä¤@«Ê«H"},
+ {ctrl('V'), 11, "^V", "³Ì«á¤@«Ê«H"},
{-1, 0, NULL, NULL} };
dprint(4, (debugfile, "\n - search headers - \n"));
@@ -4834,7 +4834,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, "¤w¿ï¾Ü %s «Ê«H¥ó¡FµLªk·j´M",
comatose(mn_total_cur(msgmap)));
return;
}
@@ -4845,13 +4845,13 @@
new_string[0] = '\0';
while(1) {
- sprintf(prompt, "Word to search for [%s] : ", search_string);
+ sprintf(prompt, "·j´M[%s]¡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 = "¿ï¨ú²Å¦XªÌ";
}
else{
header_search_key[0].ch = header_search_key[0].rval = 0;
@@ -4870,7 +4870,7 @@
continue;
}
else if(rc == 10){
- q_status_message(SM_ORDER, 0, 3, "Searched to First Message.");
+ q_status_message(SM_ORDER, 0, 3, "·j´M¦Ü²Ä¤@«Ê«H¥ó¡C");
if(any_lflagged(msgmap, MN_HIDE)){
do{
selected = sorted_msg;
@@ -4886,7 +4886,7 @@
return;
}
else if(rc == 11){
- q_status_message(SM_ORDER, 0, 3, "Searched to Last Message.");
+ q_status_message(SM_ORDER, 0, 3, "·j´M¦Ü³Ì«á¤@«Ê«H¥ó¡C");
if(any_lflagged(msgmap, MN_HIDE)){
do{
selected = sorted_msg;
@@ -4911,7 +4911,7 @@
}
if(rc == 1 || (new_string[0] == '\0' && search_string[0] == '\0')) {
- cmd_cancelled("Search");
+ cmd_cancelled("·j´M");
return;
}
@@ -4950,21 +4950,21 @@
}
if(ps_global->intr_pending){
- q_status_message1(SM_ORDER, 0, 3, "Search cancelled.%s",
+ q_status_message1(SM_ORDER, 0, 3, "¨ú®ø·j´M¡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, "¦@ %s «Ê«H¥ó§ä¨ì²Å¦Xªº¦r¦ê",
long2string(selected));
}
else if(selected){
- q_status_message1(SM_ORDER, 0, 3, "Word found%s",
+ q_status_message1(SM_ORDER, 0, 3, "¦r¦ê¤w§ä¨ì%s",
(i <= sorted_msg)
- ? ". Search wrapped to beginning" : "");
+ ? "¡C­«ÀY·j´M" : "");
mn_set_cur(msgmap, i);
}
else
- q_status_message(SM_ORDER, 0, 3, "Word not found");
+ q_status_message(SM_ORDER, 0, 3, "§ä¤£¨ì¦r¦ê");
#ifndef DOS
intr_handling_off();
@@ -5224,7 +5224,7 @@
&& LEVELSORT(ps_global->mail_stream)))
sort_func = percent_sorted;
- sprintf(sort_msg, "Sorting \"%s\"",
+ sprintf(sort_msg, "¥¿¦b±Æ§Ç \"%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);
@@ -5310,9 +5310,9 @@
new_sort = mn_get_sort(msgmap);
new_rev = mn_get_revsort(msgmap);
q_status_message2(SM_ORDER, 3, 3,
- "Sort %s! Restored %s sort.",
+ "±Æ§Ç%s¡I¦^´_¦Ü %s ±Æ§Ç¡C",
ps_global->intr_pending
- ? "Canceled" : "Failed",
+ ? "¤w¨ú®ø" : "¥¢±Ñ",
sort_name(new_sort));
}
@@ -6135,7 +6135,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, "µLªk¶}±Ò¯Á¤Þ§Ö¨ú¡G%s",icache.name);
fatal(tmp_20k_buf);
}
@@ -6531,10 +6531,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, "«H¥ó§X %s -- %ld «Ê«H¥ó¤¤ªº²Ä %ld «Ê",
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;