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