summaryrefslogtreecommitdiff
path: root/chinese/pine4/files/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/pine4/files/patch-as')
-rw-r--r--chinese/pine4/files/patch-as210
1 files changed, 104 insertions, 106 deletions
diff --git a/chinese/pine4/files/patch-as b/chinese/pine4/files/patch-as
index bc2d25b502a9..18a08ee415fc 100644
--- a/chinese/pine4/files/patch-as
+++ b/chinese/pine4/files/patch-as
@@ -1,39 +1,44 @@
---- pico/search.c.orig Fri Jun 26 05:48:14 1998
-+++ pico/search.c Wed Aug 19 10:45:20 1998
+--- pico/search.c.orig Sat Sep 12 01:15:02 1998
++++ pico/search.c Tue Sep 22 18:54:24 1998
@@ -127,9 +127,9 @@
/* ask the user for the text of a pattern */
while(1){
- if (gmode & MDREPLACE)
-- status = srpat("Search", defpat, repl_mode);
-+ status = srpat("搜尋", defpat, repl_mode);
- else
-- status = readpattern("Search");
-+ status = readpattern("搜尋");
-
- switch(status){
- case TRUE: /* user typed something */
-@@ -138,9 +138,9 @@
- case HELPCH: /* help requested */
- if(Pmaster)
- (*Pmaster->helper)(Pmaster->search_help,
-- "Help for Searching", 1);
-+ "搜尋的輔助說明", 1);
- else
-- pico_help(SearchHelpText, "Help for Searching", 1);
-+ pico_help(SearchHelpText, "搜尋的輔助說明", 1);
- case (CTRL|'L'): /* redraw requested */
- refresh(FALSE, 1);
- update();
-@@ -165,7 +165,7 @@
- break;
- default:
- if(status == ABORT)
-- emlwrite("Search Cancelled", NULL);
-+ emlwrite("取消搜尋", NULL);
- else
- mlerase();
- curwp->w_flag |= WFMODE;
-@@ -212,16 +212,16 @@
+ if (gmode & MDREPLACE)
+- status = srpat("Search", defpat, repl_mode);
++ status = srpat("搜尋", defpat, repl_mode);
+ else
+- status = readpattern("Search");
++ status = readpattern("搜尋");
+
+ switch(status){
+ case TRUE: /* user typed something */
+@@ -142,14 +142,14 @@
+
+ saved_state = save_pico_state();
+ (*Pmaster->helper)(Pmaster->search_help,
+- "Help for Searching", 1);
++ "搜尋的輔助說明", 1);
+ if(saved_state){
+ restore_pico_state(saved_state);
+ free_pico_state(saved_state);
+ }
+ }
+ else
+- pico_help(SearchHelpText, "Help for Searching", 1);
++ pico_help(SearchHelpText, "搜尋的輔助說明", 1);
+
+ case (CTRL|'L'): /* redraw requested */
+ refresh(FALSE, 1);
+@@ -179,7 +179,7 @@
+
+ default:
+ if(status == ABORT)
+- emlwrite("Search Cancelled", NULL);
++ emlwrite("取消搜尋", NULL);
+ else
+ mlerase();
+
+@@ -228,16 +228,16 @@
/* and complain if not there */
if (status == FALSE){
@@ -54,75 +59,68 @@
}
else if(status == TRUE){
emlwrite("", NULL);
-@@ -251,7 +251,7 @@
- /* additional 'replace all' menu option */
- menu_pat[0].name = "^X";
- menu_pat[0].key = (CTRL|'X');
-- menu_pat[0].label = "Repl All";
-+ menu_pat[0].label = "取代所有";
- KS_OSDATASET(&menu_pat[0], KS_NONE);
- menu_pat[1].name = NULL;
-
-@@ -263,12 +263,12 @@
- (*term.t_rev)(0);
-
- if (repl_all)
-- strcpy(prompt, "Replace every \"");
-+ strcpy(prompt, "取代每一個 \"");
- else
-- strcpy(prompt, "Replace \"");
-+ strcpy(prompt, "取代 \"");
-
- expandp(&defpat[0], &prompt[strlen(prompt)], NPAT/2);
-- strcat(prompt, "\" with");
-+ strcat(prompt, "\" 為");
- if(rpat[0] != 0){
- strcat(prompt, " [");
- expandp(rpat, &prompt[strlen(prompt)], NPAT/2);
-@@ -286,9 +286,9 @@
- case HELPCH: /* help requested */
- if(Pmaster)
- (*Pmaster->helper)(Pmaster->search_help,
-- "Help for Searching", 1);
-+ "搜尋的輔助說明", 1);
- else
-- pico_help(SearchHelpText, "Help for Searching", 1);
-+ pico_help(SearchHelpText, "搜尋的輔助說明", 1);
-
- case (CTRL|'L'): /* redraw requested */
- refresh(FALSE, 1);
-@@ -298,10 +298,10 @@
- case (CTRL|'X'): /* toggle replace all option */
- if (repl_all){
- repl_all = FALSE;
-- menu_pat[0].label = "Repl All";
-+ menu_pat[0].label = "取代所有";
- }else{
- repl_all = TRUE;
-- menu_pat[0].label = "Repl One";
-+ menu_pat[0].label = "取代一個";
+@@ -267,7 +267,7 @@
+ /* additional 'replace all' menu option */
+ menu_pat[0].name = "^X";
+ menu_pat[0].key = (CTRL|'X');
+- menu_pat[0].label = "Repl All";
++ menu_pat[0].label = "取代所有";
+ KS_OSDATASET(&menu_pat[0], KS_NONE);
+ menu_pat[1].name = NULL;
+
+@@ -279,10 +279,10 @@
+ pputs(origpat, 1); /* highlight word */
+ (*term.t_rev)(0);
+
+- sprintf(prompt, "Replace%s \"", repl_all ? " every" : "");
++ sprintf(prompt, "取代%s \"", repl_all ? "每一個" : "");
+
+ expandp(&defpat[0], &prompt[strlen(prompt)], NPAT/2);
+- strcat(prompt, "\" with");
++ strcat(prompt, "\" 為");
+ if(rpat[0] != 0){
+ strcat(prompt, " [");
+ expandp(rpat, &prompt[strlen(prompt)], NPAT/2);
+@@ -324,14 +324,14 @@
+
+ saved_state = save_pico_state();
+ (*Pmaster->helper)(Pmaster->search_help,
+- "Help for Searching", 1);
++ "搜尋的輔助說明", 1);
+ if(saved_state){
+ restore_pico_state(saved_state);
+ free_pico_state(saved_state);
}
- break;
-
-@@ -342,7 +342,7 @@
- else
- {
- if(status == ABORT)
-- emlwrite("Replacement Cancelled", NULL);
-+ emlwrite("取消取代", NULL);
- else
- mlerase();
- chword(defpat, defpat);
-@@ -352,7 +352,7 @@
-
- default:
- if(status == ABORT)
-- emlwrite("Replacement Cancelled", NULL);
-+ emlwrite("取消取代", NULL);
- else
- mlerase();
- chword(defpat, defpat);
-@@ -384,9 +384,9 @@
+ }
+ else
+- pico_help(SearchHelpText, "Help for Searching", 1);
++ pico_help(SearchHelpText, "搜尋的輔助說明", 1);
+
+ case (CTRL|'L'): /* redraw requested */
+ refresh(FALSE, 1);
+@@ -341,18 +341,18 @@
+ case (CTRL|'X'): /* toggle replace all option */
+ if (repl_all){
+ repl_all = FALSE;
+- menu_pat[0].label = "Repl All";
++ menu_pat[0].label = "取代所有";
+ }
+ else{
+ repl_all = TRUE;
+- menu_pat[0].label = "Repl One";
++ menu_pat[0].label = "取代一個";
+ }
+
+ break;
+
+ default:
+ if(status == ABORT)
+- emlwrite("Replacement Cancelled", NULL);
++ emlwrite("取消取代", NULL);
+ else
+ mlerase();
+ chword(defpat, origpat);
+@@ -401,9 +401,9 @@
(*term.t_rev)(0);
fflush(stdout);
@@ -134,8 +132,8 @@
expandp(&repl[0], &prompt[strlen(prompt)], NPAT/2);
strcat(prompt, "\"");
-@@ -400,13 +400,13 @@
- chword(orig, orig); /* replace word by itself */
+@@ -417,13 +417,13 @@
+ chword(realpat, realpat); /* replace word by itself */
update();
if(status == ABORT){ /* if cancelled return */
- emlwrite("Replace All cancelled after %d changes", (char *) n);
@@ -150,7 +148,7 @@
return (FALSE);
}
}
-@@ -423,18 +423,18 @@
+@@ -440,18 +440,18 @@
EXTRAKEYS menu_pat[4];
menu_pat[0].name = "^Y";
@@ -165,7 +163,7 @@
KS_OSDATASET(&menu_pat[1], KS_NONE);
menu_pat[2].name = "^R";
if (repl_mode)
-- menu_pat[2].label = "Don't Replace";
+- menu_pat[2].label = "No Replace";
+ menu_pat[2].label = "不取代";
else
- menu_pat[2].label = "Replace";
@@ -173,7 +171,7 @@
menu_pat[2].key = (CTRL|'R');
KS_OSDATASET(&menu_pat[2], KS_NONE);
menu_pat[3].name = NULL;
-@@ -485,11 +485,11 @@
+@@ -504,11 +504,11 @@
EXTRAKEYS menu_pat[3];
menu_pat[0].name = "^Y";