1 diff -urNp -x '*.orig' LPRng-3.8.35.org/po/POTFILES.in LPRng-3.8.35/po/POTFILES.in
2 --- LPRng-3.8.35.org/po/POTFILES.in 2003-09-04 22:47:02.000000000 +0200
3 +++ LPRng-3.8.35/po/POTFILES.in 2022-01-23 17:50:18.677027807 +0100
5 src/common/accounting.c
6 src/common/controlword.c
12 @@ -12,6 +14,7 @@ src/common/lpd_status.c
20 diff -urNp -x '*.orig' LPRng-3.8.35.org/src/common/debug.c LPRng-3.8.35/src/common/debug.c
21 --- LPRng-3.8.35.org/src/common/debug.c 2005-04-14 22:05:18.000000000 +0200
22 +++ LPRng-3.8.35/src/common/debug.c 2022-01-23 17:50:18.680361191 +0100
26 static char *guide[] = {
27 - " use on command line, or in printcap :db=... entry",
29 - " print: show queue (printing) actions, larger number, more information",
30 - " NUMBER same as print+NUMBER",
31 - " lpr: show servicing lpr actions",
32 - " lpq: show servicing lpq actions",
33 - " lprm: show servicing lprm actions",
34 - " network: show low level network actions",
35 - " database: show low level database actions",
36 - " log: Testing. Don't use this unless you read the code.",
37 - " test: Testing. don't use this unless you read the code.",
38 - " for clients (lpr, lpq, etc):",
39 - " print: show client actions, larger number, more information",
40 - " NUMBER same as print+NUMBER",
41 - " network: show low level network actions.",
42 - " database: show low level database actions.",
43 + N_(" use on command line, or in printcap :db=... entry"),
45 + N_(" print: show queue (printing) actions, larger number, more information"),
46 + N_(" NUMBER same as print+NUMBER"),
47 + N_(" lpr: show servicing lpr actions"),
48 + N_(" lpq: show servicing lpq actions"),
49 + N_(" lprm: show servicing lprm actions"),
50 + N_(" network: show low level network actions"),
51 + N_(" database: show low level database actions"),
52 + N_(" log: Testing. Don't use this unless you read the code."),
53 + N_(" test: Testing. don't use this unless you read the code."),
54 + N_(" for clients (lpr, lpq, etc):"),
55 + N_(" print: show client actions, larger number, more information"),
56 + N_(" NUMBER same as print+NUMBER"),
57 + N_(" network: show low level network actions."),
58 + N_(" database: show low level database actions."),
61 void Parse_debug (char *dbgstr, int interactive )
62 @@ -157,8 +157,8 @@ void Parse_debug (char *dbgstr, int inte
63 if(!found && interactive ){
66 - FPRINTF (STDERR, "debug flag format: num | flag[+num] | flag=str\n");
67 - FPRINTF (STDERR, " flag names:");
68 + FPRINTF (STDERR, _("debug flag format: num | flag[+num] | flag=str\n"));
69 + FPRINTF (STDERR, _(" flag names:"));
70 for (i = 0; list[i].keyword; i++) {
71 if( safestrchr( list[i].keyword, '+' ) ) continue;
73 @@ -169,10 +169,10 @@ void Parse_debug (char *dbgstr, int inte
75 switch( list[i].type ){
77 - FPRINTF (STDERR, "%s=num", list[i].keyword);
78 + FPRINTF (STDERR, _("%s=num"), list[i].keyword);
81 - FPRINTF (STDERR, "%s=str", list[i].keyword);
82 + FPRINTF (STDERR, _("%s=str"), list[i].keyword);
85 FPRINTF (STDERR, "%s[+N]", list[i].keyword );
86 @@ -184,7 +184,7 @@ void Parse_debug (char *dbgstr, int inte
88 FPRINTF (STDERR, "\n");
89 for(i = 0; guide[i]; ++i ){
90 - FPRINTF (STDERR, "%s\n", guide[i]);
91 + FPRINTF (STDERR, "%s\n", _(guide[i]));
95 diff -urNp -x '*.orig' LPRng-3.8.35.org/src/common/getopt.c LPRng-3.8.35/src/common/getopt.c
96 --- LPRng-3.8.35.org/src/common/getopt.c 2005-04-14 22:05:18.000000000 +0200
97 +++ LPRng-3.8.35/src/common/getopt.c 2022-01-23 17:50:18.677027807 +0100
98 @@ -89,7 +89,7 @@ int Getopt (int argc, char *argv[], char
102 - (void) FPRINTF (STDERR, "--X option form illegal\n" );
103 + (void) FPRINTF (STDERR, _("--X option form illegal\n") );
107 @@ -100,7 +100,7 @@ int Getopt (int argc, char *argv[], char
109 if ((match = (char *) safestrchr (optstring, option)) == 0 ){
111 - (void) FPRINTF (STDERR, "%s: Illegal option '%c'\n", Name, option);
112 + (void) FPRINTF (STDERR, _("%s: Illegal option '%c'\n"), Name, option);
116 @@ -122,7 +122,7 @@ int Getopt (int argc, char *argv[], char
118 if( Optarg == 0 && Opterr ) {
119 (void) FPRINTF (STDERR,
120 - "%s: missing argument for '%c'\n", Name, option);
121 + _("%s: missing argument for '%c'\n"), Name, option);
125 diff -urNp -x '*.orig' LPRng-3.8.35.org/src/common/lpd_status.c LPRng-3.8.35/src/common/lpd_status.c
126 --- LPRng-3.8.35.org/src/common/lpd_status.c 2022-01-23 17:50:18.410357100 +0100
127 +++ LPRng-3.8.35/src/common/lpd_status.c 2022-01-23 17:50:18.680361191 +0100
128 @@ -467,7 +467,7 @@ void Get_queue_status( struct line_list
130 if( displayformat != REQ_DSHORT ){
131 SNPRINTF( header, sizeof(header)) "%s: ",
132 - Server_queue_name_DYN?"Server Printer":"Printer" );
133 + Server_queue_name_DYN?_("Server Printer"):_("Printer") );
135 len = safestrlen(header);
136 SNPRINTF( header+len, sizeof(header)-len) "%s@%s",
137 diff -urNp -x '*.orig' LPRng-3.8.35.org/src/common/lpstat.c LPRng-3.8.35/src/common/lpstat.c
138 --- LPRng-3.8.35.org/src/common/lpstat.c 2005-04-14 22:05:19.000000000 +0200
139 +++ LPRng-3.8.35/src/common/lpstat.c 2022-01-23 17:50:18.677027807 +0100
140 @@ -114,7 +114,7 @@ int main(int argc, char *argv[], char *e
141 Setup_configuration();
142 Get_parms(argc, argv ); /* scan input args */
143 if( A_flag && !getenv( "AUTH" ) ){
144 - FPRINTF(STDERR,"lpstat: requested authenticated transfer (-A) and AUTH environment variable not set");
145 + FPRINTF(STDERR,_("lpstat: requested authenticated transfer (-A) and AUTH environment variable not set"));
149 @@ -162,14 +162,14 @@ int main(int argc, char *argv[], char *e
150 if(DEBUGL1)Dump_line_list("lpstat - options", &options);
153 - Write_fd_str(1,"scheduler is running\n");
154 + Write_fd_str(1,_("scheduler is running\n"));
157 if( Printer_DYN == 0 ){
158 - Write_fd_str(1,"no system default destination\n");
159 + Write_fd_str(1,_("no system default destination\n"));
161 SNPRINTF(msg,sizeof(msg))
162 - "system default destination: %s\n", Printer_DYN);
163 + _("system default destination: %s\n"), Printer_DYN);
167 @@ -177,7 +177,7 @@ int main(int argc, char *argv[], char *e
168 for( i = 0; i < request_list.count; ++i ){
169 Set_DYN(&Printer_DYN,request_list.list[i] );
171 - SNPRINTF(msg,sizeof(msg)) "system for %s: %s\n", Printer_DYN, RemoteHost_DYN);
172 + SNPRINTF(msg,sizeof(msg)) _("system for %s: %s\n"), Printer_DYN, RemoteHost_DYN);
176 @@ -221,7 +221,7 @@ void Show_status(char **argv, int displa
178 if( Check_for_rg_group( Logname_DYN ) ){
179 SNPRINTF( msg, sizeof(msg))
180 - " Printer: %s - cannot use printer, not in privileged group\n", Printer_DYN );
181 + _(" Printer: %s - cannot use printer, not in privileged group\n"), Printer_DYN );
182 if( Write_fd_str( 1, msg ) < 0 ) cleanup(0);
185 @@ -359,25 +359,25 @@ int Read_status_info( char *host, int so
188 SNPRINTF(msg,sizeof(msg))
189 - "%s accepting requests since %s\n",
190 + _("%s accepting requests since %s\n"),
191 Printer_DYN, Time_str(0,0) );
193 SNPRINTF(msg,sizeof(msg))
194 - "%s not accepting requests since %s -\n\tunknown reason\n",
195 + _("%s not accepting requests since %s -\n\tunknown reason\n"),
196 Printer_DYN, Time_str(0,0) );
198 if( Write_fd_str( output, msg ) < 0 ) return(1);
201 SNPRINTF(msg,sizeof(msg))
202 - "printer %s unknown state. %s since %s. available\n",
203 + _("printer %s unknown state. %s since %s. available\n"),
204 Printer_DYN, noprint?"disabled":"enabled",
206 if( Write_fd_str( output, msg ) < 0 ) return(1);
208 if( p_flag && D_flag ){
209 SNPRINTF(msg,sizeof(msg))
210 - "\tDescription: %s@%s\n",
211 + _("\tDescription: %s@%s\n"),
212 RemotePrinter_DYN, RemoteHost_DYN );
213 if( Write_fd_str( output, msg ) < 0 ) return(1);
215 @@ -585,30 +585,30 @@ void Get_parms(int argc, char *argv[] )
218 static char *lpstat_msg[] = {
219 - "usage: %s [-A] [-d] [-l] [-r] [-R] [-s] [-t] [-a [list]]\n",
220 - " [-c [list]] [-f [list]] [-o [list]]\n",
221 - " [-p [list]] [-P] [-S [list]] [list]\n",
222 - " [-u [login-ID-list]] [-v [list]] [-V] [-n] [-Tdbgflags]\n",
223 - " list is a list of print queues\n",
224 - " -A use authentication specified by AUTH environment variable\n",
225 - " -a [list] destination status *\n",
226 - " -c [list] class status *\n",
227 - " -d print default destination\n",
228 - " -f [list] forms status *\n",
229 - " -o [list] job or printer status *\n",
230 - " -n each -n increases number of status lines (default 1) *\n",
231 - " -N maximum number of status lines *\n",
232 - " -p [list] printer status *\n",
233 - " -P paper types - ignored\n",
234 - " -r scheduler status\n",
235 - " -s summary status information - short format\n",
236 - " -S [list] character set - ignored\n",
237 - " -t all status information - long format\n",
238 - " -u [joblist] job status information\n",
239 - " -v [list] printer mapping *\n",
240 - " -V verbose mode \n",
241 - " -Tdbgflags debug flags\n",
242 - " * - long status format produced\n",
243 + N_("usage: %s [-A] [-d] [-l] [-r] [-R] [-s] [-t] [-a [list]]\n"),
244 + N_(" [-c [list]] [-f [list]] [-o [list]]\n"),
245 + N_(" [-p [list]] [-P] [-S [list]] [list]\n"),
246 + N_(" [-u [login-ID-list]] [-v [list]] [-V] [-n] [-Tdbgflags]\n"),
247 + N_(" list is a list of print queues\n"),
248 + N_(" -A use authentication specified by AUTH environment variable\n"),
249 + N_(" -a [list] destination status *\n"),
250 + N_(" -c [list] class status *\n"),
251 + N_(" -d print default destination\n"),
252 + N_(" -f [list] forms status *\n"),
253 + N_(" -o [list] job or printer status *\n"),
254 + N_(" -n each -n increases number of status lines (default 1) *\n"),
255 + N_(" -N maximum number of status lines *\n"),
256 + N_(" -p [list] printer status *\n"),
257 + N_(" -P paper types - ignored\n"),
258 + N_(" -r scheduler status\n"),
259 + N_(" -s summary status information - short format\n"),
260 + N_(" -S [list] character set - ignored\n"),
261 + N_(" -t all status information - long format\n"),
262 + N_(" -u [joblist] job status information\n"),
263 + N_(" -v [list] printer mapping *\n"),
264 + N_(" -V verbose mode \n"),
265 + N_(" -Tdbgflags debug flags\n"),
266 + N_(" * - long status format produced\n"),
270 @@ -616,7 +616,7 @@ void usage(void)
273 for( sptr= lpstat_msg; (s = *sptr); ++sptr ){
274 - FPRINTF( STDERR, s, Name );
275 + FPRINTF( STDERR, _(s), Name );