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