xref: /illumos-gate/usr/src/cmd/lp/lib/oam/msg.source (revision 533affcbc7fc4d0c8132976ea454aaa715fe2307)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/**
28 **
29 ** This file contains definitions for the E_... symbols
30 ** used with the LP_ERRMSG routines. The definitions are
31 ** linked with the text in this file, but they have to be split:
32 ** The E_... symbols go into a header file, and the text
33 ** go into separate, compilable files.
34 **/
35
36/*
37 *
38 * Format of lines in this file:
39 *
40 *	E_...
41 *		"text-for-error-message"
42 *		"text-for-TO-FIX-statement"
43 *
44 * Lines that DON'T begin with E_..., " (double quote), or #
45 * (after leading spaces or tabs) are skipped. Thus these comment
46 * lines are ignored, but the C preprocessor directives are kept.
47 *
48 * Note: The preprocessor directives DO NOT keep text from being
49 * generated, nor do they keep the E_... symbols from being numbered
50 * (which is consistent). The directives ARE useful for keeping them
51 * from being needlessly defined in a program that includes "oam.h"
52 */
53
54#define	I_AM_CANCEL		1
55#define	I_AM_COMB		2
56#define	I_AM_LP			3
57#define	I_AM_LPADMIN		4
58#define	I_AM_LPFILTER		5
59#define	I_AM_LPFORMS		6
60#define	I_AM_LPMOVE		7
61#define	I_AM_LPNETWORK		8
62#define	I_AM_LPPRIVATE		9
63#define	I_AM_LPSCHED		10
64#define	I_AM_LPSHUT		11
65#define	I_AM_LPSTAT		12
66#define	I_AM_LPUSERS		13
67#define	I_AM_LPSYSTEM		14
68#define I_AM_OZ			99
69
70/**
71 ** COMMON MESSAGES USED BY ALL PROGRAMS
72 **/
73
74/* DON'T TOUCH THE NEXT LINE */
75E_LP__MSGS
76
77E_LP_OPTION
78	"Unrecognized option \"%s\"."
79	""
80E_LP_MALLOC
81	"Not enough memory."
82	"Try again later or give a simpler\ncommand."
83E_LP_AGAIN
84	"Another process is using the file\n\"%s\"."
85	"Try again later."
86E_LP_ANYNONE
87	"The names \"any\" and \"none\" are reserved."
88	"You must use a different name."
89E_LP_ACCESS
90	"Can't access the file\n\"%s\"."
91	"Check its file permissions."
92E_LP_NOTNAME
93	"\"%s\" doesn't have the correct syntax."
94	"Give a name that has 1 to 14 letters,\ndigits, dashes, or underscores."
95E_LP_OPTARG
96	"The option %s requires an argument."
97	""
98E_LP_UNKREQID
99	"Request \"%s\" doesn't exist."
100	""
101E_LP_MSEND
102	"Can't send message to the LP print service."
103	"The LP print service apparently has been\nstopped. Get help from your system\nadministrator."
104E_LP_MRECV
105	"Can't receive message from the LP print service."
106	"The LP print service apparently has been\nstopped. Get help from your system\nadministrator."
107E_LP_BADSTATUS
108	"Received unexpected status %d in a reply from the\nLP print service."
109	"It's likely there is an error in this\nsoftware. Please get help from your\nsystem administrator."
110E_LP_PGONE
111	"Printer \"%s\" has disappeared!"
112	"The administrator should completely\nremove the printer."
113E_LP_PNBUSY
114	"Printer \"%s\" was not busy."
115	""
116E_LP_MOPEN
117	"Can't establish contact with the LP print service."
118	"Either the LP print service has stopped,\nor all message channels are busy. If the\nproblem continues, get help from your\nsystem administrator."
119E_LP_MLATER
120	"All message channels busy."
121	"Try again later."
122E_LP_AMBIG
123	"Ambiguous or invalid combination of\n%s and %s options."
124	"Give only one of the two options."
125E_LP_2MANY
126	"Multiple -%c options given."
127	"The last one will be used;\nprocessing continues."
128E_LP_BADREPLY
129	"Received unexpected message %d from the LP print service."
130	"It's likely there is an error in this\nsoftware. Please get help from your\nsystem administrator."
131E_LP_DSTUNK
132	"Destination \"%s\" is unknown to the\nLP print service."
133	""
134E_LP_NOTADM
135	"You aren't allowed to do that."
136	"You must be logged in as \"lp\" or \"root\"."
137E_LP_NODEST
138	"No destinations specified."
139	""
140E_LP_BADFILE
141	"Cannot access the file:\n%s."
142	"Make sure file names are valid."
143E_LP_EMPTY
144	"\"%s\" is empty."
145	""
146E_LP_NOFILES
147	"No (or empty) input files."
148	""
149E_LP_OPTCOMB
150	"Illegal combination of options."
151	"Check the manual for proper usage."
152E_LP_NOSPACE
153	"No space to allocate temp files."
154	"Clean up disk, or try again later."
155E_LP_ISDIR
156	"\"%s\" is a directory."
157	"A regular file is needed here; check the\nname."
158E_LP_BADSCALE
159	"Improper scaled decimal number."
160	"Number must be greater than zero. You\ncan use only 'i' and 'c' for scaling\nnumbers ('i' inches, 'c' centimeters).\nFor setting cpi (horizontal pitch),\nsynonyms \"pica\", \"elite\", \"compressed\"\nare allowed."
161E_LP_EXTRA
162	"Extra command line arguments starting with\n\"%s\"."
163	"Processing continues, but check for a\nmissing option. Use the -? option to see\na list of valid options."
164E_LP_BADPRI
165	"Bad priority value \"%s\"."
166	"Use an integer value from 0 to 39."
167E_LP_2LATE
168	"Request \"%s\" is done."
169	"It is too late to do anything with it."
170E_LP_BUSY
171	"Request \"%s\" is busy."
172	"If the request is printing, disable the\nprinter and resubmit this command."
173E_LP_NULLARG
174	"Null argument given for %s option."
175	"You have to give a non-empty value for\nthis option."
176E_LP_BADOARG
177	"Argument to option -%c is invalid: \"%s\"."
178	"Re-enter with valid option arguments."
179E_LP_NEEDSCHED
180	"The LP print service isn't running or can't be\nreached."
181	"Your request can't be completely handled\nwithout the LP print service. If this\nproblem continues, get help from your\nsystem administrator."
182E_LP_BADDEST
183	"Destination \"%s\" does not exist."
184	"Use a printer or class that exists on\nthis system."
185E_LP_PUTCLASS
186	"Error writing class \"%s\" to disk\n(%s)."
187	""
188E_LP_GETCLASS
189	"Error reading class \"%s\" from disk\n(%s)."
190	""
191E_LP_DELCLASS
192	"Error deleting class \"%s\" from disk\n(%s)."
193	""
194E_LP_GETPRINTER
195	"Error reading printer information for \"%s\"\n(%s)."
196	""
197E_LP_PUTPRINTER
198	"Error writing printer information for \"%s\"\n(%s)."
199	""
200E_LP_DELPRINTER
201	"Error deleting printer information for \"%s\"\n(%s)."
202	""
203E_LP_GETFORM
204	"Error reading form information for \"%s\"\n(%s)."
205	""
206E_LP_PUTFORM
207	"Error writing form information for \"%s\"\n(%s)."
208	""
209E_LP_DELFORM
210	"Error deleting form information for \"%s\"\n(%s)."
211	""
212E_LP_GETREQUEST
213	"Error reading request file.\n(%s)."
214	""
215E_LP_PUTREQUEST
216	"Error writing request file.\n(%s)."
217	""
218E_LP_NOCLASS
219	"Class \"%s\" does not exist."
220	"Use the \"lpstat -c all\" command to list\nall known classes."
221E_LP_NOPRINTER
222	"Printer \"%s\" does not exist."
223	"Use the \"lpstat -p all\" command to list\nall known printers."
224E_LP_NOFORM
225	"Form \"%s\" does not exist."
226	"Use the \"lpstat -f all\" command to list\nall known forms."
227E_LP_GETMSG
228	"Failed to parse message from the LP print service.\n(%s)"
229	""
230E_LP_HAVEREQS
231	"The LP print service isn't running."
232	"Your request may affect print jobs, but\nthe LP print service isn't running to\nevaluate this. Start it by running the\n/usr/lib/lp/lpsched command."
233E_LP_DENYDEST
234	"You are not allowed to use the destination\n\"%s\"."
235	"Use the lpstat -p command to list all\nknown printers; you can use those marked\n\"available\"."
236E_LP_NOFILTER
237	"There is no filter to convert the file content."
238	"Use the lpstat -p -l command to find a\nprinter that can handle the file type\n directly, check your filters using lpfilter -f all -l, or consult with your system\nadministrator."
239E_LP_REQDENY
240	"Requests for destination \"%s\" aren't\nbeing accepted."
241	"Use the \"lpstat -a\" command to see why\nthis destination is not accepting\nrequests."
242E_LP_PTRCHK
243	"The following options can't be handled:\n%s"
244	"The printer(s) that otherwise qualify\nfor printing your request can't handle\none or more of these options. Try\nanother printer, or change the options."
245E_LP_MNOMEM
246	"No room for this request!"
247	"The spooling directory is full, or the\nLP print service can't allocate enough\nmemory for this request."
248E_LP_UALLOWDENY
249	"Invalid argument to the -u option."
250	"The argument must begin with either\n\"allow:\" or \"deny:\" and be followed with\na list of user names."
251E_LP_NOQUIET
252	"No alerts are active for \"%s\"."
253	""
254E_LP_GARBNMB
255	"Illegal value for the -%c option."
256	"Give an integer value with this option."
257E_LP_NEGARG
258	"Illegal value for the -%c option."
259	"This must be a non-negative number, that\nis also small enough to be interpreted\ncorrectly (numbers too large might be\nconverted to negative values)."
260E_LP_GONEREMOTE
261	"Request %s is on the remote system."
262	"The LP print service currently does not\nallow you to change or move a request,\nonce it is on the remote system."
263E_LP_ZEROARG
264	"Illegal value for the -%c option."
265	"Give a positive value for the option."
266E_LP_MISSING
267	"No list given after the \"%s:\"."
268	"You seem to have left something out;\nhowever, processing of the rest of the\ncommand line options continues."
269E_LP_ACCESSINFO
270	"Error writing access information to disk\n(%s)."
271	""
272E_LP_GARBAGE
273	"Too many bad input lines."
274	"Fix the input and try again."
275E_LP_USAGE
276	"Unrecognized option \"%s\".\nEnter command with -? option for proper usage."
277	""
278E_LP_NOREQ
279	"No request ids available."
280	"Check for faulted or disabled printer(s) with \n\"lpstat -a\"."
281E_LP_LARGEFILE
282	"Large File encountered, can't print:\n%s."
283	"Make sure the file is not a Large File."
284/**
285 ** MESSAGES FOR THE LPFILTER PROGRAM
286 **/
287
288/* DON'T TOUCH THE NEXT LINE */
289E_FL__MSGS
290
291#if	WHO_AM_I == I_AM_LPFILTER || WHO_AM_I == I_AM_OZ
292#define E_FL_IGNORE		E_LP_EXTRA
293#define E_FL_GARBAGE		E_LP_GARBAGE
294
295E_FL_ACCESS
296	"Can't access filter table\n\"%s\"."
297	"Check its file permissions."
298E_FL_ACCESSI
299	"Can't access archived filter table\n\"%s\"."
300	"Check its file permissions."
301E_FL_NOCMD
302	"No command specified."
303	"You must give a command or program name."
304E_FL_NOFACTY
305	"No filters are archived."
306	"See if any were installed originally."
307E_FL_FACTYNM
308	"No filter by that name was archived."
309	"Check the name again."
310E_FL_NOFILT
311	"No filter name given."
312	"You must specify a filter name;\nuse the -f option."
313E_FL_OPEN
314	"Can't open the file for reading: \"%s\""
315	"Check that it exists and that you\ncan read it."
316E_FL_READ
317	"Error reading input."
318	""
319E_FL_UNKFILT
320	"No filter by the name \"%s\" exists."
321	"Check the name again."
322E_FL_UNKNOWN
323	"Error accessing filter table\n\"%s\"\n(%s)."
324	""
325E_FL_HEADING
326	"Input line %d can not be used."
327	"Fix the input if necessary;\nprocessing continues."
328E_FL_NOACT
329	"Nothing to do."
330	"You must give one of these options:\n-F, -, -x, -l."
331E_FL_NOTALL
332	"Can't add a filter named \"all\"."
333	"You must use another name."
334E_FL_STRANGE
335	"Could not read all filters from table\n\"%s\"."
336	""
337E_FL_NOSPLOAD
338	"The LP print service didn't load the filter table."
339	"Try restarting the LP print service by\nrunning the /usr/lib/lp/lpsched command."
340E_FL_BADTEMPLATE
341	"Missing option template."
342	"There appears to be an incomplete option\ntemplate. This can be caused by a double\ncomma in the option list. Resubmit the\nentire input."
343E_FL_BADKEY
344	"Unrecognized keyword in option template."
345	"Resubmit the entire input. Check the\nlpfilter(8) manual page for the list of\nvalid keywords."
346E_FL_BADPATT
347	"Missing pattern in option template."
348	"Resubmit the entire input; make sure all\noption templates include a keyword,\npattern, and replacement:\nkeyword pattern = replacement\n(e.g. MODES * = -m *)."
349E_FL_BADRESULT
350	"Missing replacement in option template."
351	"Resubmit the entire input; make sure all\noption templates include a keyword,\npattern, and replacement:\nkeyword pattern = replacement\n(e.g. MODES * = -m *)."
352E_FL_BADREGEX
353	"Error in regular expression:\n  %s"
354	"Resubmit the entire input with the\ncorrect regular expression."
355#endif
356
357/**
358 ** MESSAGES FOR THE CANCEL PROGRAM
359 **/
360
361/* DON'T TOUCH THE NEXT LINE */
362E_CAN__MSGS
363
364#if	WHO_AM_I == I_AM_CANCEL || WHO_AM_I == I_AM_OZ
365
366E_CAN_BADARG
367	"\"%s\" is not a request id or a printer."
368	"Cancel requests by id or by\nname of printer where printing."
369E_CAN_CANT
370	"Can't cancel request \"%s\"."
371	"You are not allowed to cancel\nanother's request."
372E_CAN_NOUSERP
373	"No jobs on printer %s for user(s) %s."
374	"Use the lpstat -o or lpstat -u commands\nto see what requests have been queued."
375E_CAN_ANYUSERP
376	"No user has a job on printer %s."
377	"Use the lpstat -o or lpstat -u commands\nto see what requests have been queued."
378E_CAN_NOUSERANYP
379	"No jobs on any printer for user(s) %s."
380	"Use the lpstat -o command to see what\nrequests have been queued."
381E_CAN_ANYUSERANYP
382	"No requests queued."
383	""
384E_CAN_NOACT
385	"Nothing to do."
386	"You need to give a request ID or printer\nname, or the -u option to specify a user."
387
388#endif
389
390/**
391 ** MESSAGES FOR THE ACCEPT, REJECT, ENABLE, DISABLE PROGRAMS
392 **/
393
394/* DON'T TOUCH THE NEXT LINE */
395E_CMB__MSGS
396
397#if	WHO_AM_I == I_AM_COMB || WHO_AM_I == I_AM_OZ
398
399E_REJ_2TIME
400	"Destination \"%s\" was already\nnot accepting requests."
401	""
402
403E_ACC_2TIME
404	"Destination \"%s\" was already accepting\nrequests."
405	""
406
407E_DIS_2TIME
408	"Destination \"%s\" was already disabled."
409	""
410E_DIS_CLASS
411	"\"%s\" is a class."
412	"You can only disable printers, not\nclasses. If you want to prevent people\nfrom submitting requests to this class,\nuse the /usr/sbin/reject command."
413
414E_ENA_2TIME
415	"Destination \"%s\" was already enabled."
416	""
417E_ENA_CLASS
418	"\"%s\" is a class."
419	"You can only enable printers, not\nclasses. If you want to allow people to\nsubmit requests to this class, use the\n/usr/sbin/accept command."
420
421#endif
422
423/**
424 ** MESSAGES FOR THE LPMOVE PROGRAM
425 **/
426
427/* DON'T TOUCH THE NEXT LINE */
428E_MOV__MSGS
429
430#if	WHO_AM_I == I_AM_LPMOVE || WHO_AM_I == I_AM_OZ
431
432E_MOV_BADDEST
433	"Request \"%s\" cannot be moved."
434	""
435E_MOV_NOMEDIA
436	"Request \"%s\" cannot be moved."
437	"The form or character set needed by the\nrequest no longer exists. You should\ncancel this request."
438E_MOV_DENYMEDIA
439	"Request \"%s\" cannot be moved."
440	"The form needed by the request is no\nlonger available to the user. You should\ncancel this request."
441E_MOV_NOMOUNT
442	"Request \"%s\" cannot be moved."
443	"The form needed by the request can't be\nmounted on the destined printer. Try\nanother destination, or wait for the\nrequest to finish printing or cancel it."
444E_MOV_PTRCHK
445	"Request \"%s\" cannot be moved\nbecause the following options can't be handled:\n%s"
446	"Try moving the request to another\ndestination, or wait for the request to\nfinish printing or cancel it."
447E_MOV_DENYDEST
448	"Request \"%s\" cannot be moved."
449	"The person who submitted the request is\nnot allowed to use the printer(s). Try\nanother destination, or wait for the\nrequest to finish printing or cancel it."
450E_MOV_NOFILTER
451	"Request \"%s\" cannot be moved."
452	"There is no filter to convert the file\ncontent for the printer(s). Try another\ndestination, or wait for the request to\nfinish printing or cancel it."
453
454#endif
455
456/**
457 ** MESSAGES FOR THE LPUSERS PROGRAM
458 **/
459
460/* DON'T TOUCH THE NEXT LINE */
461E_LPU__MSGS
462
463#if	WHO_AM_I == I_AM_LPUSERS || WHO_AM_I == I_AM_OZ
464
465E_LPU_BADFILE
466	"Bad file: %s, errno=%d."
467	""
468E_LPU_BADFORM
469	"Bad user profile:\n\"%s\"."
470	""
471E_LPU_DEFTWICE
472	"Default listed twice."
473	""
474E_LPU_NOLOAD
475	"The LP print service did not load new priority\ndefinitions."
476	"Try restarting the LP print service."
477E_LPU_BADU
478	"Bad user specified: %s"
479	""
480E_LPU_NOUSER
481	"User \"%s\" did not have a limit set\n(or is illegal)"
482	""
483
484#endif
485
486/**
487 ** MESSAGES FOR THE LP PROGRAM
488 **/
489
490/* DON'T TOUCH THE NEXT LINE */
491E_LPP__MSGS
492
493#if	WHO_AM_I == I_AM_LP || WHO_AM_I == I_AM_OZ
494#define E_LPP_BADDEST		E_LP_BADDEST
495
496E_LPP_ILLARG
497	"Illegal file arguments with change request."
498	"To change which files should be printed,\ncancel this request and resubmit it."
499E_LPP_NOSTART
500	"End change received, but no start."
501	"Internal error, report to administrator."
502E_LPP_FPUTREQ
503	"Could not write request."
504	""
505E_LPP_FGETREQ
506	"Could not read request \"%s\"."
507	"Check argument to -i option."
508E_LPP_NODEST
509	"No default destination."
510	"You must identify which printer should\nhandle your request by naming it or a\nclass of printers (-d name) or by naming\na type of printer (-T type)."
511E_LPP_NOMEDIA
512	"Form or character set not available."
513	"Check the spelling of the form/character\nset name. Use the lpstat -f -S command\nto list all known forms and character\nsets."
514E_LPP_DENYMEDIA
515	"You are not allowed to use the form\n\"%s\"."
516	"Use the lpstat -f command to list all\nknown forms; you can use those marked\n\"available\"."
517E_LPP_NOMOUNT
518	"The form or print wheel can't be used."
519	"The printer(s) that otherwise qualify\nfor printing your request are not\nallowed to have the form or print wheel\nmounted.  Use the lpstat -p -l command\nto list printers where it (they) can be\nmounted."
520E_LPP_COMBMW
521	"Illegal combination of -w and -m options."
522	"Notification will be by mail only;\nthe \"-w\" option is ignored."
523E_LPP_NOOPEN
524	"The LP print service could not read your request\nfile."
525	"See if the spooling file system is full.\nGet help from your system administrator."
526E_LPP_FORMCHARSET
527	"The character set can't be used with the form."
528	"Since the form is defined as needing a\nparticular character set, just resubmit\nthe command without the -S option."
529E_LPP_CURDIR
530	"Can't determine the current directory."
531	"The LP print service can not determine\nwhere all your files are located because\nit doesn't have the same current\ndirectory. Give the -c option to copy\nthe file(s)."
532E_LPP_ODDFILE
533	"One or more files can't be used or found."
534	"Either the files are illegal (fifos,\nblock devices, etc.), or can't be found\nby the LP print service. The latter\ntypically happens when your files are on\nlocal resources not accessible over RFS."
535
536#endif
537
538/**
539 ** MESSAGES FOR THE LPSHUT PROGRAM
540 **/
541
542/* DON'T TOUCH THE NEXT LINE */
543E_SHT__MSGS
544
545#if	WHO_AM_I == I_AM_LPSHUT || WHO_AM_I == I_AM_OZ
546
547E_SHT_CANT
548	"You can't shut down the LP print service."
549	"You must be logged in as \"lp\" or \"root\"."
550
551#endif
552
553/**
554 ** MESSAGES FOR THE LPADMIN PROGRAM
555 **/
556
557/* DON'T TOUCH THE NEXT LINE */
558E_ADM__MSGS
559
560#if	WHO_AM_I == I_AM_LPADMIN || WHO_AM_I == I_AM_OZ
561#define E_ADM_ZEROARG		E_LP_ZEROARG
562#define E_ADM_MISSING		E_LP_MISSING
563#define E_ADM_ACCESSINFO	E_LP_ACCESSINFO
564
565E_ADM_NOTLOCAL
566	"You have specified a remote printer\nand supplied one or more of the following\noptions: A,a,e,F,H,h,i,l,m,M,o,U,v,Q,W."
567	""
568E_ADM_ANYALLSYS
569	"The names \"any\" and \"all\" are reserved."
570	"You must use a system name that has\nbeen defined with the lpsystem command."
571E_ADM_DALONE
572	"Other options given with -d option."
573	"Give only the -d option to define\na default destination."
574E_ADM_XALONE
575	"Other options given with -x option."
576	"Give only the -x option to delete a\nprinter."
577E_ADM_SALONE
578	"Confusing options given."
579	"You are either missing the -p option or\nhave given extraneous options while\ntrying to define alerting for a\nprint wheel."
580E_ADM_JALONE
581	"Wrong combination of options."
582	"The -j option should not be given when\nadding a new printer."
583E_ADM_MNTNONE
584	"Nothing to mount."
585	"Give the -f or -S option to identify\nform or print wheel to mount."
586E_ADM_PNOQ
587	"Illegal use of the -Q option."
588	"Don't give the -Q option when setting\na printer fault alert."
589E_ADM_NODEST
590	"Destination \"%s\" doesn't exist."
591	"Check the name again. Use the lpstat -p\nor lpstat -c command to see if the\nprinter or class exists."
592E_ADM_NOACT
593	"Nothing to do."
594	"You must give one of these options:\n-p, -d, -x, -S."
595E_ADM_CNOU
596	"No -u option given."
597	"Give the -C option only with the\n-u option."
598E_ADM_JNOF
599	"No -F option given."
600	"Give the -j option only with the\n-F option."
601E_ADM_2MANY
602	"Multiple -o %s options given."
603	"The last one will be used;\nprocessing continues."
604E_ADM_QUOTES
605	"Missing right %c quote in stty= argument."
606	""
607E_ADM_BADTYPE
608	"Printer type \"%s\" is not in the\nTerminfo database."
609	"Check the name again; if it is correct\nyou have to make an entry for it in the\nTerminfo database."
610E_ADM_MIXEDTYPES
611	"Inconsistent printer types."
612	"The printer types do not agree on\nwhether the printer takes print wheels\nor not. Check the printer types or the\nTerminfo database."
613E_ADM_MUNKNOWN
614	"\"unknown\" not allowed with multiple printer types."
615	"Your list of printer types includes the\ntype \"unknown\"; either remove that type\nfrom the list or give just the type\n\"unknown\"."
616E_ADM_BADCAP
617	"\"%s\" setting impossible."
618	""
619E_ADM_BADCAPS
620	"The printer can't handle all the above setting(s)."
621	"Check the manual for the printer to make\nsure each value is correct; check that\nthe Terminfo entry/entries are correct."
622E_ADM_NBADCAPS
623	"Settings won't work on these printer types:\n  %s"
624	"The incompatible settings won't be\napplied when these types are used to\nprint a request. Change the settings or\nlist of types, if you want."
625E_ADM_PRCL
626	"Can't create the printer \"%s\"."
627	"This is an existing class name;\nchoose another name."
628E_ADM_NOUV
629	"Missing -U or -v option."
630	"Local printers must have\na port defined (-v option) or\nhave dial-out instructions (-U option)."
631E_ADM_BOTHUV
632	"Both -U and -v given."
633	"Give only one of these options, the\n-v option to name the direct connect\nport or the -U to identify the dial-out\nmethod."
634E_ADM_NOTMEM
635	"The printer \"%s\" is not a member of\nthe class \"%s\"."
636	"Use the lpstat -c command to find the\ncorrect class."
637E_ADM_TOPT
638	"No printer type (-T option) given."
639	"The printer type must be known:\n* to set default cpi, lpi, length, width\n* to define character sets, print wheels\n* to allow forms."
640E_ADM_INTCONF
641	"The options -e, -i and -m are mutually exclusive."
642	"Give just one of these options to define\nan interface program."
643E_ADM_NOPR
644	"The printer \"%s\" does not exist."
645	"You must give the name of an existing\nprinter in the -e option."
646E_ADM_SAMEPE
647	"The -p and -e options have the same value."
648	"You must name a different printer\nin the -e option."
649E_ADM_SAMECR
650	"The -c and -r options have the same value."
651	"Don't try to remove the printer from the\nsame class to which you are adding it."
652E_ADM_NOMODEL
653	"The model \"%s\" does not exist."
654	"Use the command\n    ls /usr/lib/lp/model\nto find the list of known models."
655E_ADM_CONFLICT
656	"The options \"-%c\" and \"-%c\" are contradictory."
657	"Give the -l option if the printer is\nalso a login terminal, give the\n-h option if it is not."
658E_ADM_ISDIR
659	"\"%s\" is a directory."
660	"If this is not what you intended, enter\nthe command again with the correct name."
661E_ADM_ISBLK
662	"\"%s\" is a block device."
663	"If this is not what you intended, enter\nthe command again with the correct name."
664E_ADM_ISMISMATCH
665	"\"%s\" is a symlink that points to a file with a different owner."
666	"Retry this operation with a new device."
667E_ADM_ISNOTROOTOWNED
668	"\"%s\" is a symlink owned by an unprivileged user.\nThis introduces a potential security hole in your configuration."
669	"If this is not what you intended, enter\nthe command again with the correct name."
670E_ADM_DEVACCESS
671	"\"%s\" is accessible by others."
672	"If other users can access it you may get\nunwanted output. If this is not what you\nwant change the owner to \"lp\" and change\nthe mode to 0600.\nProcessing continues."
673E_ADM_NOENT
674	"\"%s\" doesn't exist."
675	"Create the file, special device, or FIFO\nfor the -v option before running this\ncommand."
676E_ADM_INCLASS
677	"The printer \"%s\" is already a member\nof the class \"%s\"."
678	"If you made a mistake, rerun the command\nwith the correct names;\nprocessing continues."
679E_ADM_GETCLASSES
680	"Error reading all classes from disk\n(%s)."
681	""
682E_ADM_GETPRINTERS
683	"Error reading all printers from disk\n(%s)."
684	""
685E_ADM_FALLOWDENY
686	"Invalid argument to the -f option."
687	"The argument must begin with either\n\"allow:\" or \"deny:\" and be followed with\na list of form names. On the other hand,\nperhaps you forgot the -M option?"
688E_ADM_ICKFORM
689	"Form \"%s\" is not listed as available\nfor the printer \"%s\"."
690	"Check the name; if wrong enter the\ncommand again.\nProcessing continues."
691E_ADM_PWHEELS
692	"-S must not give a character set map."
693	"The printer takes only print wheels.\nFix the type or change the value in the\n-S option."
694E_ADM_CHARSETS
695	"-S must give a character set map."
696	"The printer has only selectable\ncharacter sets. Fix the type or change\nthe value in the -S option."
697E_ADM_BADSET
698	"Illegal character set \"%s\"."
699	""
700E_ADM_NBADSET
701	"Character set \"%s\" won't work with\nthese printer types:\n  %s"
702	""
703E_ADM_BADSETS
704	"The printer's type(s) don't have the\nabove character sets defined."
705	"Check the manual for the printer to make\nsure each name is correct; check that\nthe Terminfo entry/entries are correct."
706E_ADM_NOPWHEEL
707	"The printer doesn't take print wheels."
708	"Check that you named the right printer.\nCheck that the Terminfo database is\ncorrect; if wrong, fix it and add the\nprint wheel list for the printer."
709E_ADM_ICKPWHEEL
710	"Print wheel \"%s\" is not listed as\navailable for the printer \"%s\"."
711	"Check the name; if wrong enter the\ncommand again with the correct name.\nProcessing continues."
712E_ADM_MNTLATER
713	"The printer is busy; can't mount/unmount now."
714	"Wait until the current job(s) are\nfinished, or disable the printer."
715E_ADM_NOMEDIA
716	"Can't mount/unmount the form or print wheel."
717	"Check the name. The one you gave isn't\nrecognized."
718E_ADM_DELSTRANGE
719	"Strange, the LP print service took the request to\ndelete printer or class \"%s\" but the disk copy\ncan't be deleted.\n(%s)"
720	""
721E_ADM_DESTBUSY
722	"There are jobs currently queued for destination\n\"%s\""
723	"Use the /usr/sbin/lpmove command to\nassign them to another destination,\nor wait for them to finish printing."
724E_ADM_WRDEFAULT
725	"Error writing default destination\n(%s)."
726	""
727E_ADM_PUTPWHEEL
728	"Error writing print wheel information for \"%s\"\n(%s)."
729	""
730E_ADM_FBAD
731	"Illegal value for the -F option"
732	"You must give one of the values\n\"continue\", \"wait\", or \"beginning\"."
733#if	defined(J_OPTION)
734E_ADM_FBADJ
735	"Illegal value for the -F option"
736	"You must give one of the values\n\"wait\" or \"beginning\".\n(\"continue\" is not allowed if you also\ngive the -j option.)"
737#endif
738E_ADM_BADO
739	"\"%s\" is an illegal value for the\n-o option"
740	"You must give one of the values\nbanner, nobanner,\ncpi=X, lpi=X, width=X, length=X,\nstty=... (if ... is a list, surround IT\nwith single quotes (') and put the whole\nthing in double quotes (\")),\nor filebreak or nofilebreak (with -a)."
741E_ADM_FORMCAP
742	"The form \"%s\" requires capabilities\nnot provided by the printer."
743	""
744E_ADM_FORMCAPS
745	"Can't allow one or more forms."
746	"You have to adjust each form definition,\nif possible. Leave each form out of the\nallow list to continue defining the\nprinter."
747E_ADM_BADINTF
748	"Can't access the file \"%s\"\nto copy the interface program."
749	"Make sure the name is correct;\nmake sure the file exists."
750E_ADM_CLPR
751	"Can't create class \"%s\"."
752	"This is an existing printer name;\nchoose another name."
753E_ADM_BADQUIETORLIST
754	"Illegal -A option for printer/print wheel\n\"%s\"."
755	"You can't give the -A quiet or the\n-A list option for a printer or print\nwheel that doesn't exist yet."
756E_ADM_PLONELY
757	"Nothing to do."
758	"The -p option identifies a printer; give\nother options to do something with it."
759E_ADM_NOAWQ
760	"Nothing to do."
761	"The -S option identifies a print wheel;\ngive a -A, -W, and/or -Q option to set\nor change the alerting for it."
762E_ADM_MALIGN
763	"Missing the -M or -f option"
764	"The -a option asks for an alignment\npattern, but you need to tell what form\nto mount."
765E_ADM_NOALIGN
766	"No alignment pattern has been registered with\nthe form \"%s\"."
767	"The form will be mounted anyway. If you\nneed to check the alignment of the form,\nregister an alignment pattern using the\nlpforms command, unmount the form, then\nissue this command again."
768E_ADM_LISTWQ
769	"Illegal combination of options."
770	"Don't give the \"-A list\" option with the\n-W or -Q options."
771E_ADM_NOPSPACE
772	"The LP print service can't take another printer."
773	"The printer configuration has been saved\non disk nonetheless. Stop the LP print\nservice (/usr/sbin/lpshut) and restart it\n(/usr/lib/lp/lpsched) to have it recognize\nthe new printer."
774E_ADM_NOCSPACE
775	"The LP print service can't take another class."
776	"The class configuration has been saved\non disk nonetheless. Stop the LP print\nservice (/usr/sbin/lpshut) and restart it\n(/usr/lib/lp/lpsched) to have it\nrecognize the new class."
777E_ADM_NOPWSPACE
778	"The LP print service can't take in another print\nwheel alert."
779	"The alert configuration has been saved\non disk nonetheless. Stop the LP print\nservice (/usr/sbin/lpshut) and restart it\n(/usr/lib/lp/lpsched) to have it\nrecognize the new print wheel alert."
780E_ADM_BADMOUNT
781	"Shouldn't mount the form."
782	"You may want to adjust the form\ndefinition, if possible. Check that the\nTerminfo database gives correct\nattributes for the printer type.\nThe form is considered mounted anyway."
783E_ADM_NBADMOUNT
784	"The form \"%s\" won't work with these\nprinter types:\n  %s"
785	""
786E_ADM_CLNPR
787	"Can't create both class and printer \"%s\"."
788	"Make the two names different."
789E_ADM_GETSYS
790	"Error reading system information for \"%s\"\n(%s)."
791	""
792E_ADM_NOSYS
793	"System \"%s\" does not exist."
794	"Use the \"lpsystem -l\" command to list\nall known systems."
795E_ADM_NAMEONLOCAL
796	"You may not specify a remote printer\nname with a local system name."
797	"Either specify a remote system name\nor omit the remote printer name."
798E_ADM_ANYALLNONE
799	"The names \"any\", \"all\" and \"none\" are reserved."
800	"Use a different name when adding a\nprinter. The name \"all\" can be used with\nthe -A, -x, -r, or -c options."
801E_ADM_NFIFO
802	"Can't open FIFO to print alignment pattern.\n(%s)"
803	""
804E_ADM_NFILTER
805	"No filter to convert the alignment pattern."
806	"The printer can't print the alignment\npattern directly, and there's no filter\nthat will convert it. Check the form\ndefinition. Check the printer type."
807E_ADM_NPAGES
808	"There may be extra lines in the alignment pattern."
809	"If the printed alignment pattern is too\nlong, either add a filter that can print\na subset of pages or redefine the form\nwith a manually truncated pattern.\nProcessing continues."
810E_ADM_FILEBREAK
811	"Ignoring the -o filebreak option."
812	"This is only used with the -a option\nwhen mounting a form, to insert a page\nbreak between alignment patterns.\nPerhaps you left out the -a option?"
813E_ADM_UNALIGN
814	"Ignoring the -a option."
815	"This is only used when MOUNTING a form,\nto print a pattern to help you align it.\nUnmounting a form means you're replacing\nit with blank paper, which needs no\nalignment."
816E_ADM_ERRDEST
817	"The LP print service could not read the disk file\ncontaining this configuration information."
818	"This is probably due to a full spooling\nfile system. If it is, clean out files\nto free up space, then resubmit this\ncommand."
819E_ADM_MANDCHSET
820	"The form requires the character set\n\"%s\"."
821	"Check the form name and form definition.\nSince a particular character set is\nmandatory with this form but the printer\ncan't select that character set, you\ncan't mount the form on this printer."
822E_ADM_MANDPWHEEL1
823	"The form requires the print wheel\n\"%s\"."
824	"This print wheel has been listed as\nmandatory for the form, but it is not\ncurrently mounted. If you don't want the\ncurrent print wheel used, enter the\ncommand again, and identify the print\nwheel to be mounted."
825E_ADM_MANDPWHEEL2
826	"The form requires the print wheel\n\"%s\"."
827	"This print wheel has been listed as\nmandatory for the form. If you made a\nmistake, enter the command again and\nchange the print wheel to be mounted."
828E_ADM_ASINGLES
829	"Only one print wheel at a time, please."
830	"You can only give a single print wheel\nname, not a list of names, when defining\na print wheel alert. Only the first\nprint wheel will be defined. (Maybe you\nleft out the -p option?)"
831E_ADM_MSINGLES
832	"Only one print wheel at a time, please."
833	"You can only give a single print wheel\nname, not a list of names, when mounting\na print wheel. Only the first one will\nbe mounted."
834E_ADM_ONLYSIMPLE
835	"Input types not allowed with multiple printer\ntypes."
836	"The LP print service currently doesn't\nallow input types other than \"simple\"\nwhen more than one printer type is\ngiven. You have to change the printer\ntypes or input types."
837E_ADM_SIGNORE
838	"Certain options ignored for remote printer\n  %s."
839	"When you try to change the configuration\nof all printers at once some options are\nignored for remote printers."
840E_ADM_BADPWHEEL
841	"There are no alerts defined for the print wheel\n\"%s\"."
842	"Check the name again."
843E_ADM_BADTRAY
844	"The printer does not have the tray number you specified."
845	"Try using the -t option with -M to set the total number of trays."
846E_ADM_MAXTRAY
847	"The number of trays specified with the -t option must between 1 and 100."
848	""
849E_ADM_ALSO_SEP_FORM
850	"`%s' cannot be used as a paper name because it\nis already defined as an old style form."
851	"Either use another name, or remove the conflicting form using `lpforms'."
852E_ADM_NOPPD
853	"The ppd \"%s\" does not exist."
854	"Use the command\n    find <PPD file repository> -type f\n"
855	"where <PPD file repository> is one or more of the following:\n"
856	"    /usr/share/ppd/*/*/\n    /usr/share/local/ppd/*/*/\n"
857	"    /opt/share/ppd/*/*/\n    /var/lp/ppd/*/*/\n"
858	"to find the list of known printer ppd definitions."
859
860#endif
861
862/**
863 ** MESSAGES FOR THE LPFORMS PROGRAM
864 **/
865
866/* DON'T TOUCH THE NEXT LINE */
867E_FOR__MSGS
868
869#if	WHO_AM_I == I_AM_LPFORMS || WHO_AM_I == I_AM_OZ
870#define E_FOR_MOPENREQX		E_LP_HAVEREQS
871#define E_FOR_UALLOWDENY	E_LP_UALLOWDENY
872#define E_FOR_EXTRAARG		E_LP_EXTRA
873
874E_FOR_FORMNAME
875	"No form name given."
876	"You must specify a form name using the\n-f option."
877E_FOR_NOACT
878	"Nothing to do."
879	"You must give one of these options:\n- -F (new form)\n- -F -l -x -u -A -W -Q (existing form)"
880E_FOR_EMPTYFILE
881	"Empty form description file given."
882	"All defaults will be used; resubmit the\ncommand if this is not what you want.\nProcessing continues."
883E_FOR_DELSTRANGE
884	"Strange, the LP print service accepted\nthe delete form request but the disk\ncopy can't be deleted."
885	""
886E_FOR_CTMPFILE
887	"Unable to create temporary file."
888	"Set the TMPDIR environment variable to a\nsuitable temporary directory name."
889E_FOR_OPEN
890	"Can't open \"%s\" for reading."
891	"Check that it exists and that you\ncan read it."
892E_FOR_ANYNONE
893	"Reserved words \"any\" and \"none\" are not\nappropriate in this context."
894	""
895E_FOR_NOFORMS
896	"No forms currently defined."
897	""
898E_FOR_NOSHCMDERR
899	"No alert given."
900	"You must give a shell command to use as\nthe alert."
901E_FOR_NOSHCMDWARN
902	"No alert defined for form \"%s\"."
903	"Use the -A option to define a shell\ncommand to use as the alert.\nProcessing continues."
904E_FOR_BADHDR
905	"Bad input header in form description file on\nline %d."
906	""
907E_FOR_BADSCALE
908	"Improper scaled decimal number on line %d."
909	"You can use only 'i' and 'c' for scaling numbers."
910E_FOR_BADINT
911	"Invalid integer given on line %d."
912	"You must give a positive non-zero\ninteger value."
913E_FOR_BADCHSETQUALIFIER
914	"Bad qualifier given after character set on\nline %d."
915	"The only legal qualifier immediately\nfollowing a character set name is\n\",mandatory\"."
916E_FOR_TRAILIN
917	"Bad input follows legal input on line %d."
918	"Check to the System Administrator's\nReference manual for the correct syntax."
919E_FOR_NOTNAME
920	"Incorrect syntax for name on line %d."
921	"Give a name that has 1 to 14 letters,\ndigits, or underscores."
922E_FOR_NOTCTYPE
923	"Incorrect syntax for content type on line %d."
924	"Give a content type that has 1 to 14\nletters, digits, or dashes."
925E_FOR_UNKNOWN
926	"Error accessing form \"%s\"\n(%s)."
927	""
928E_FOR_FORMBUSY
929	"There are jobs currently queued for form\n\"%s\""
930	"Either wait for the requests to finish\nprinting or cancel them. Use the\nlpstat -o -l command to find out which\nneed this form."
931E_FOR_NOSPACE
932	"The LP print service can't take in another form."
933	"The form definition has been saved on\ndisk nonetheless. Stop the LP print\nservice (/usr/sbin/lpshut) and restart it\n(/usr/lib/lp/lpsched) to have it\nrecognize the new form."
934E_FOR_ANYDEL
935	"Nothing will happen."
936	"The \"-f any\" option is used to set an\nalert for those forms without an alert,\nbut \"-A none\" defines no alert."
937E_FOR_ALSO_SEP_FORM
938	"The form `%s' cannot be defined with\npaper `%s' because `%s' is already\ndefined as an old style form. "
939	"Either use another name, or remove the\nconflicting form using `lpforms'."
940
941#endif
942
943/**
944 ** MESSAGES FOR THE LPSTAT PROGRAM
945 **/
946
947/* DON'T TOUCH THE NEXT LINE */
948E_STAT__MSGS
949
950#if	WHO_AM_I == I_AM_LPSTAT || WHO_AM_I == I_AM_OZ
951
952E_STAT_BADSET
953	"Non-existent character set \"%s\"."
954	"Check the name again; use the\n\"lpstat -S all\" command to get a list of\nall known character sets."
955E_STAT_BADSTAT
956	"\"%s\" isn't a request ID or destination"
957	"Use the \"lpstat -p all -c all\" command\nto get a list of valid destinations.\nUse the \"lpstat -o all\" command to get a\nlist of all outstanding print requests."
958E_STAT_DONE
959	"\"%s\" already printed."
960	"You can't get any information about this\nrequest, since no record of it remains."
961E_STAT_USER
962	"\"%s\" is not currently a user on this system."
963	"Check the spelling of the name.\nUse the \"lpstat -u all\" command to get a\nlist of outstanding print requests."
964
965#endif
966
967/**
968 ** MESSAGES FOR THE LPSYSTEM PROGRAM
969 **/
970
971/* DON'T TOUCH THE NEXT LINE */
972E_SYS__MSGS
973
974#if	WHO_AM_I == I_AM_LPSYSTEM || WHO_AM_I == I_AM_OZ
975
976E_SYS_NOTCPIP
977	"TCP/IP is not installed on this system."
978	""
979#endif
980