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
188
189
|
--- pico/search.c.orig Fri Jun 26 05:48:14 1998
+++ pico/search.c Wed Aug 19 10:45:20 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("�j�M", defpat, repl_mode);
else
- status = readpattern("Search");
+ status = readpattern("�j�M");
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);
+ "�j�M�����U����", 1);
else
- pico_help(SearchHelpText, "Help for Searching", 1);
+ pico_help(SearchHelpText, "�j�M�����U����", 1);
case (CTRL|'L'): /* redraw requested */
refresh(FALSE, 1);
update();
@@ -165,7 +165,7 @@
break;
default:
if(status == ABORT)
- emlwrite("Search Cancelled", NULL);
+ emlwrite("�����j�M", NULL);
else
mlerase();
curwp->w_flag |= WFMODE;
@@ -212,16 +212,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("���N%s���ɮװ_�l�q�Y�j�M",
+ (status == ABORT) ? "�w�����A��" : "");
}
else if(wrapt == TRUE){
- emlwrite("Search Wrapped", NULL);
+ emlwrite("�q�Y�j�M", NULL);
}
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 = "���N�Ҧ�";
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, "���N�C�@�� \"");
else
- strcpy(prompt, "Replace \"");
+ strcpy(prompt, "���N \"");
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);
+ "�j�M�����U����", 1);
else
- pico_help(SearchHelpText, "Help for Searching", 1);
+ pico_help(SearchHelpText, "�j�M�����U����", 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 = "���N�Ҧ�";
}else{
repl_all = TRUE;
- menu_pat[0].label = "Repl One";
+ menu_pat[0].label = "���N�@��";
}
break;
@@ -342,7 +342,7 @@
else
{
if(status == ABORT)
- emlwrite("Replacement Cancelled", NULL);
+ emlwrite("�������N", NULL);
else
mlerase();
chword(defpat, defpat);
@@ -352,7 +352,7 @@
default:
if(status == ABORT)
- emlwrite("Replacement Cancelled", NULL);
+ emlwrite("�������N", NULL);
else
mlerase();
chword(defpat, defpat);
@@ -384,9 +384,9 @@
(*term.t_rev)(0);
fflush(stdout);
- strcpy(prompt, "Replace \"");
+ strcpy(prompt, "���N \"");
expandp(&orig[0], &prompt[strlen(prompt)], NPAT/2);
- strcat(prompt, "\" with \"");
+ strcat(prompt, "\" �� \"");
expandp(&repl[0], &prompt[strlen(prompt)], NPAT/2);
strcat(prompt, "\"");
@@ -400,13 +400,13 @@
chword(orig, orig); /* replace word by itself */
update();
if(status == ABORT){ /* if cancelled return */
- emlwrite("Replace All cancelled after %d changes", (char *) n);
+ emlwrite("�b�����u���N�Ҧ��v���e�A�w���L %d �ӧ���", (char *) n);
return (ABORT); /* ... else keep looking */
}
}
}
else{
- emlwrite("No more matches for \"%s\"", orig);
+ emlwrite("�S���ŦX \"%s\" ���r��F", orig);
return (FALSE);
}
}
@@ -423,18 +423,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 = "Don't Replace";
+ menu_pat[2].label = "�����N";
else
- menu_pat[2].label = "Replace";
+ menu_pat[2].label = "���N";
menu_pat[2].key = (CTRL|'R');
KS_OSDATASET(&menu_pat[2], KS_NONE);
menu_pat[3].name = NULL;
@@ -485,11 +485,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;
|