summaryrefslogtreecommitdiffstats
path: root/chinese/pine4/files/patch-as
blob: 18a08ee415fcd559128664bf1b7ae1d4072832f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
--- 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 */
@@ -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){
-      emlwrite("\"%s\" not found", defpat);
+      emlwrite("找不到 \"%s\"", defpat);
     }
     else if((gmode & MDREPLACE) && repl_mode == TRUE){
         status = replace_pat(defpat, &wrapt2);    /* replace pattern */
 	if (wrapt == TRUE || wrapt2 == TRUE)
-	  emlwrite("Replacement %srapped",
-		   (status == ABORT) ? "cancelled but w" : "W");
+	  emlwrite("取代%s由檔案起始從頭搜尋",
+		   (status == ABORT) ? "已取消,但" : "");
     }
     else if(wrapt == TRUE){
-	emlwrite("Search Wrapped", NULL);
+	emlwrite("從頭搜尋", NULL);
     }
     else if(status == TRUE){
 	emlwrite("", NULL);
@@ -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);
 		}
 	    }
 	    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);
 
-	strcpy(prompt, "Replace \"");
+	strcpy(prompt, "取代 \"");
 	expandp(&orig[0], &prompt[strlen(prompt)], NPAT/2);
-	strcat(prompt, "\" with \"");
+	strcat(prompt, "\" 為 \"");
 	expandp(&repl[0], &prompt[strlen(prompt)], NPAT/2);
 	strcat(prompt, "\"");
 
@@ -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);
+		emlwrite("在取消「取代所有」之前,已做過 %d 個改變", (char *) n);
 		return (ABORT);			/* ... else keep looking */
 	    }
 	}
     }
     else{
-	emlwrite("No more matches for \"%s\"", orig);
+	emlwrite("沒有符合 \"%s\" 的字串了", orig);
 	return (FALSE);
     }
 }
@@ -440,18 +440,18 @@
 	EXTRAKEYS    menu_pat[4];
 
 	menu_pat[0].name  = "^Y";
-	menu_pat[0].label = "FirstLine";
+	menu_pat[0].label = "第一行";
 	menu_pat[0].key   = (CTRL|'Y');
 	KS_OSDATASET(&menu_pat[0], KS_NONE);
 	menu_pat[1].name  = "^V";
-	menu_pat[1].label = "LastLine";
+	menu_pat[1].label = "最後一行";
 	menu_pat[1].key   = (CTRL|'V');
 	KS_OSDATASET(&menu_pat[1], KS_NONE);
 	menu_pat[2].name  = "^R";
 	if (repl_mode)
-	  menu_pat[2].label = "No Replace";
+	  menu_pat[2].label = "不取代";
 	else
-	  menu_pat[2].label = "Replace";
+	  menu_pat[2].label = "取代";
 	menu_pat[2].key   = (CTRL|'R');
 	KS_OSDATASET(&menu_pat[2], KS_NONE);
 	menu_pat[3].name  = NULL;
@@ -504,11 +504,11 @@
 	EXTRAKEYS    menu_pat[3];
 
 	menu_pat[0].name  = "^Y";
-	menu_pat[0].label = "FirstLine";
+	menu_pat[0].label = "第一行";
 	menu_pat[0].key   = (CTRL|'Y');
 	KS_OSDATASET(&menu_pat[0], KS_NONE);
 	menu_pat[1].name  = "^V";
-	menu_pat[1].label = "LastLine";
+	menu_pat[1].label = "最後一行";
 	menu_pat[1].key   = (CTRL|'V');
 	KS_OSDATASET(&menu_pat[1], KS_NONE);
 	menu_pat[2].name  = NULL;
OpenPOWER on IntegriCloud