]>
Commit | Line | Data |
---|---|---|
e520e666 JB |
1 | --- LPRng-3.8.15/src/common/lpstat.c.orig Mon Aug 12 02:01:45 2002 |
2 | +++ LPRng-3.8.15/src/common/lpstat.c Fri Dec 27 16:57:53 2002 | |
3 | @@ -113,7 +113,7 @@ | |
4 | Setup_configuration(); | |
5 | Get_parms(argc, argv ); /* scan input args */ | |
6 | if( A_flag && !getenv( "AUTH" ) ){ | |
7 | - FPRINTF(STDERR,"lpstat: requested authenticated transfer (-A) and AUTH environment variable not set"); | |
8 | + FPRINTF(STDERR,_("lpstat: requested authenticated transfer (-A) and AUTH environment variable not set")); | |
9 | usage(); | |
10 | } | |
11 | ||
12 | @@ -161,14 +161,14 @@ | |
13 | if(DEBUGL1)Dump_line_list("lpstat - options", &options); | |
14 | ||
15 | if( r_flag ){ | |
16 | - Write_fd_str(1,"scheduler is running\n"); | |
17 | + Write_fd_str(1,_("scheduler is running\n")); | |
18 | } | |
19 | if( d_flag ){ | |
20 | if( Printer_DYN == 0 ){ | |
21 | - Write_fd_str(1,"no system default destination\n"); | |
22 | + Write_fd_str(1,_("no system default destination\n")); | |
23 | } else { | |
24 | SNPRINTF(msg,sizeof(msg)) | |
25 | - "system default destination: %s\n", Printer_DYN); | |
26 | + _("system default destination: %s\n"), Printer_DYN); | |
27 | Write_fd_str(1,msg); | |
28 | } | |
29 | } | |
30 | @@ -176,7 +176,7 @@ | |
31 | for( i = 0; i < request_list.count; ++i ){ | |
32 | Set_DYN(&Printer_DYN,request_list.list[i] ); | |
33 | Fix_Rm_Rp_info(0,0); | |
34 | - SNPRINTF(msg,sizeof(msg)) "system for %s: %s\n", Printer_DYN, RemoteHost_DYN); | |
35 | + SNPRINTF(msg,sizeof(msg)) _("system for %s: %s\n"), Printer_DYN, RemoteHost_DYN); | |
36 | Write_fd_str(1,msg); | |
37 | } | |
38 | } | |
39 | @@ -220,7 +220,7 @@ | |
40 | ||
41 | if( Check_for_rg_group( Logname_DYN ) ){ | |
42 | SNPRINTF( msg, sizeof(msg)) | |
43 | - " Printer: %s - cannot use printer, not in privileged group\n", Printer_DYN ); | |
44 | + _(" Printer: %s - cannot use printer, not in privileged group\n"), Printer_DYN ); | |
45 | if( Write_fd_str( 1, msg ) < 0 ) cleanup(0); | |
46 | return; | |
47 | } | |
48 | @@ -358,25 +358,25 @@ | |
49 | if( a_flag ){ | |
50 | if( !nospool ){ | |
51 | SNPRINTF(msg,sizeof(msg)) | |
52 | - "%s accepting requests since %s\n", | |
53 | + _("%s accepting requests since %s\n"), | |
54 | Printer_DYN, Time_str(0,0) ); | |
55 | } else { | |
56 | SNPRINTF(msg,sizeof(msg)) | |
57 | - "%s not accepting requests since %s -\n\tunknown reason\n", | |
58 | + _("%s not accepting requests since %s -\n\tunknown reason\n"), | |
59 | Printer_DYN, Time_str(0,0) ); | |
60 | } | |
61 | if( Write_fd_str( output, msg ) < 0 ) return(1); | |
62 | } | |
63 | if( p_flag ){ | |
64 | SNPRINTF(msg,sizeof(msg)) | |
65 | - "printer %s unknown state. %s since %s. available\n", | |
66 | + _("printer %s unknown state. %s since %s. available\n"), | |
67 | Printer_DYN, noprint?"disabled":"enabled", | |
68 | Pretty_time(0)); | |
69 | if( Write_fd_str( output, msg ) < 0 ) return(1); | |
70 | } | |
71 | if( p_flag && D_flag ){ | |
72 | SNPRINTF(msg,sizeof(msg)) | |
73 | - "\tDescription: %s@%s\n", | |
74 | + _("\tDescription: %s@%s\n"), | |
75 | RemotePrinter_DYN, RemoteHost_DYN ); | |
76 | if( Write_fd_str( output, msg ) < 0 ) return(1); | |
77 | } | |
78 | @@ -584,7 +584,7 @@ | |
79 | } | |
80 | ||
81 | char *lpstat_msg = | |
82 | -"usage: %s [-A] [-d] [-l] [-r] [-R] [-s] [-t] [-a [list]]\n\ | |
83 | +N_("usage: %s [-A] [-d] [-l] [-r] [-R] [-s] [-t] [-a [list]]\n\ | |
84 | [-c [list]] [-f [list]] [-o [list]]\n\ | |
85 | [-p [list]] [-P] [-S [list]] [list]\n\ | |
86 | [-u [login-ID-list]] [-v [list]] [-V] [-n] [-Tdbgflags]\n\ | |
87 | @@ -607,12 +607,12 @@ | |
88 | -v [list] printer mapping *\n\ | |
89 | -V verbose mode \n\ | |
90 | -Tdbgflags debug flags\n\ | |
91 | - * - long status format produced\n"; | |
92 | + * - long status format produced\n"); | |
93 | ||
94 | ||
95 | void usage(void) | |
96 | { | |
97 | - FPRINTF( STDERR, lpstat_msg, Name ); | |
98 | + FPRINTF( STDERR, _(lpstat_msg), Name ); | |
99 | Parse_debug("=",-1); | |
100 | FPRINTF( STDOUT, "%s\n", Version ); | |
101 | exit(1); | |
102 | --- LPRng-3.8.15/src/common/getopt.c.orig Mon Aug 12 02:01:44 2002 | |
103 | +++ LPRng-3.8.15/src/common/getopt.c Fri Dec 27 17:02:40 2002 | |
104 | @@ -89,7 +89,7 @@ | |
105 | if (option == '-') { | |
106 | if( *next_opt ){ | |
107 | if( Opterr ){ | |
108 | - (void) FPRINTF (STDERR, "--X option form illegal\n" ); | |
109 | + (void) FPRINTF (STDERR, _("--X option form illegal\n") ); | |
110 | return('?'); | |
111 | } | |
112 | } | |
113 | @@ -100,7 +100,7 @@ | |
114 | */ | |
115 | if ((match = (char *) safestrchr (optstring, option)) == 0 ){ | |
116 | if( Opterr ){ | |
117 | - (void) FPRINTF (STDERR, "%s: Illegal option '%c'\n", Name, option); | |
118 | + (void) FPRINTF (STDERR, _("%s: Illegal option '%c'\n"), Name, option); | |
119 | } | |
120 | return( '?' ); | |
121 | } | |
122 | @@ -122,7 +122,7 @@ | |
123 | } | |
124 | if( Optarg == 0 && Opterr ) { | |
125 | (void) FPRINTF (STDERR, | |
126 | - "%s: missing argument for '%c'\n", Name, option); | |
127 | + _("%s: missing argument for '%c'\n"), Name, option); | |
128 | option = '?'; | |
129 | } | |
130 | next_opt = 0; | |
131 | --- LPRng-3.8.15/po/POTFILES.in.orig Wed Aug 22 01:19:53 2001 | |
132 | +++ LPRng-3.8.15/po/POTFILES.in Fri Dec 27 17:11:07 2002 | |
133 | @@ -1,5 +1,6 @@ | |
134 | src/common/accounting.c | |
135 | src/common/controlword.c | |
136 | +src/common/getopt.c | |
137 | src/common/linelist.c | |
138 | src/common/lpc.c | |
139 | src/common/lpd.c | |
140 | @@ -12,6 +13,7 @@ | |
141 | src/common/lpq.c | |
142 | src/common/lpr.c | |
143 | src/common/lprm.c | |
144 | +src/common/lpstat.c | |
145 | src/common/sendjob.c | |
146 | src/common/sendmail.c | |
147 | src/common/sendreq.c |