]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/translation.html
Merge changes from CUPS 1.4svn-r8606.
[thirdparty/cups.git] / doc / help / translation.html
CommitLineData
4744bd90 1<HTML>
2<!-- SECTION: Getting Started -->
3<HEAD>
d09495fa 4 <TITLE>Translating and Customizing CUPS</TITLE>
4744bd90 5</HEAD>
6<BODY>
7
8<P>Thanks to its extensive use of templates, images, and message
9catalogs, CUPS can be easily translated (or customized!) to suit
10your needs. This help file will guide you through the CUPS
11localization files so you can get the most out of it.</P>
12
13<H2 CLASS="title"><A NAME="INTRO">Getting Started</A></H2>
14
15<P>Start by downloading the CUPS source code from <A
16HREF="http://www.cups.org/software.php"
17TARGET="_blank">www.cups.org</A>. After you extract the files
18from the source archive, you will want to copy the following
19files and directories:</P>
20
21<UL>
22
d09495fa 23 <LI><VAR>desktop/cups.desktop</VAR> - the GNOME/KDE
24 desktop file pointing to the CUPS web interface</LI>
25
4744bd90 26 <LI><VAR>doc/index.html</VAR> - the web interface home
27 page</LI>
28
29 <LI><VAR>locale/cups.pot</VAR> - the message catalog</LI>
30
31 <LI><VAR>templates/*.tmpl</VAR> - the web interface
32 template files</LI>
d09495fa 33
4744bd90 34</UL>
35
d09495fa 36<P>With the exception of the message catalogs and desktop file,
37localization files are placed in subdirectories under the
38<VAR>doc</VAR> and <VAR>templates</VAR> using the locale name.
39Locale names are either <VAR>ll</VAR> or <VAR>ll_CC</VAR>, where
40"ll" is the 2-letter language code and "CC" is the 2-letter
2e4ff8af
MS
41country code. <em>CUPS does not currently use or support the newer
42<VAR>ll-region</VAR> syntax for locale names.</em></P>
4744bd90 43
44<P>All non-image files must be encoded using the UTF-8 character
45set.</P>
46
47
48<H2 CLASS="title"><A NAME="SUBMIT">Submitting a Translation for CUPS</A></H2>
49
d09495fa 50<P>To submit a translation for inclusion in CUPS, translate the
2e4ff8af
MS
51desktop file, all of the template files, the <VAR>index.html.in</VAR>
52file, and the message catalog. Place these files in the correct
53subdirectories in the CUPS source code archive and run the following
54command to create an archive with your files:</P>
4744bd90 55
56<PRE CLASS="command">
d09495fa 57tar cvf <I>ll_CC</I>.tar.gz desktop/cups.desktop doc/<I>ll_CC</I> \
58 locale/cups_<I>ll_CC</I>.po templates/<I>ll_CC</I>
4744bd90 59</PRE>
60
61<P>Replace "ll_CC" with the locale name for your translation.
62Once you have created the archive, go to the <A
63HREF="http://www.cups.org/str.php" TARGET="_blank">CUPS Bugs
64&amp; Features</A> page and submit a bug report, attaching the
65translation to the report.</P>
66
67
d09495fa 68<H2 CLASS="title"><A NAME="DESKTOP">The Desktop File</A></H2>
69
70<P>The <VAR>desktop/cups.desktop</VAR> file provides a link to
71the CUPS web interface from desktop environments such as
72GNOME and KDE. To translate this file, add two lines to the
73bottom with the <tt>Name</tt> and <tt>Comment</tt> keys:</P>
74
75<PRE CLASS="command">
76Name[<I>ll_CC</I>]=<I>Translation of "Manage Printing"</I>
77Comment[<I>ll_CC</I>]=<I>Translation of "CUPS Web Interface"</I>
78</PRE>
79
80
4744bd90 81<H2 CLASS="title"><A NAME="HOMEPAGE">The Home Page</A></H2>
82
83<P>The <VAR>index.html</VAR> file is a complete HTML file that is
84displayed when the user visits "http://localhost:631/". Edit the
85existing <VAR>doc/index.html</VAR> and save it in the
86<VAR>doc/ll_CC</VAR> subdirectory so that the makefile can
87install it. Run "make install" in the <VAR>doc</VAR> subdirectory
88to test the new home page.</P>
89
90
91<H2 CLASS="title"><A NAME="CATALOGS">Message Catalogs</A></H2>
92
93<P>CUPS message catalogs are GNU gettext ".po" text files that
94provide a list of localized message strings for the CUPS
95software. Message catalogs are named <VAR>cups_ll.po</VAR> or
96<VAR>cups_ll_CC.po</VAR>, where "ll" is the standard 2-letter
97abbreviation for the language and "CC" is the standard 2-letter
98abbreviation for the country.</P>
99
100<P>When translating a new message catalog, copy the
101<VAR>cups.pot</VAR> message catalog file in the <VAR>locale</VAR>
102subdirectory of the CUPS source code. For example, to start
103translating the message catalog to Canadian French, you would
104type the following commands:</P>
105
106<PRE CLASS="command">
107cd locale
d09495fa 108cp cups.pot cups_fr_CA.po
4744bd90 109</PRE>
110
d09495fa 111<P>Alternatively, you can copy the existing <VAR>cups_fr.po</VAR>
4744bd90 112message catalog and then make any necessary changes.</P>
113
114<P>Once you have make your copy of the file, edit it using your
115favorite text editor or translation program to translate the text
116to the desired language.</P>
117
db1f069b
MS
118<P>Then validate your translation using the <VAR>locale/checkpo</VAR> utility:</P>
119
120<PRE CLASS="command">
121cd locale
122./checkpo cups_ll_CC.po
123</PRE>
124
125<P>After fixing any errors in your translation, add your locale to the <CODE>LANGUAGES</CODE>
d09495fa 126variable in the <VAR>Makedefs</VAR> file and run the "make
4744bd90 127install" command in the <VAR>locale</VAR> subdirectory to test
128the translation.</P>
129
130
131<H2 CLASS="title"><A NAME="TEMPLATES">Template Files</A></H2>
132
133<P>The CUPS scheduler provides a web interface that can be used
134to do many common printing and administration tasks. The built-in
135web server supports localization of web pages through the use of
136subdirectories for each locale, e.g. "fr" for French, "de" for
137German, "fr_ca" for French in Canada, and so forth.</P>
138
139<P>Template files are HTML files with special formatting
140characters in them that allow substition of variables and arrays.
141The CUPS CGI programs (<CODE>admin.cgi</CODE>,
142<CODE>classes.cgi</CODE>, <CODE>help.cgi</CODE>,
143<CODE>jobs.cgi</CODE>, and <CODE>printers.cgi</CODE>) use these
144template file to provide dynamic content for the web interface.
145Template files are installed in the
146<VAR>/usr/share/cups/templates</VAR> directory by default. Table
1472 lists the various template files and their purpose.</P>
148
149<P>Translated versions of the template files should be saved in
150the <VAR>templates/ll_CC</VAR> subdirectory. For example,
151Canadian French template files should be saved in the
152<VAR>templates/fr_CA</VAR> subdirectory. After you have
153translated all of the templates, add the locale to the
154<CODE>LANGUAGES</CODE> variable in the
d09495fa 155<VAR>Makedefs</VAR> file and run "make install" in the
4744bd90 156<VAR>templates</VAR> subdirectory to test the translation.</P>
157
158<DIV CLASS="table"><TABLE SUMMARY="Web Interface Template Files">
159<CAPTION>Table 2: Web Interface Template Files</CAPTION>
160<THEAD>
161<TR>
162 <TH>Filename</TH>
163 <TH>Purpose</TH>
164</TR>
165</THEAD>
166<TBODY>
167<TR>
168 <TD>add-class.tmpl</TD>
169 <TD>This is the initial form that is shown to add a new
170 printer class.</TD>
171</TR>
172<TR>
173 <TD>add-printer.tmpl</TD>
174 <TD>This is the initial form that is shown to add a new
175 printer.</TD>
176</TR>
f7deaa1a 177<TR>
178 <TD>add-rss-subscription.tmpl</TD>
179 <TD>This is the form that is shown to add a new RSS subscription.</TD>
180</TR>
4744bd90 181<TR>
182 <TD>admin.tmpl</TD>
183 <TD>This is the main administration page.</TD>
184</TR>
185<TR>
186 <TD>choose-device.tmpl</TD>
187 <TD>This is the form that shows the list of available
188 devices.</TD>
189</TR>
190<TR>
191 <TD>choose-make.tmpl</TD>
192 <TD>This is the form that shows the list of available
193 manufacturers.</TD>
194</TR>
195<TR>
196 <TD>choose-model.tmpl</TD>
197 <TD>This is the form that shows the list of available
198 printer models/drivers.</TD>
199</TR>
200<TR>
201 <TD>choose-serial.tmpl</TD>
202 <TD>This is the form that allows the user to choose
203 a serial port and any options.</TD>
204</TR>
205<TR>
206 <TD>choose-uri.tmpl</TD>
207 <TD>This is the form that allows the user to enter
208 a device URI for network printers.</TD>
209</TR>
210<TR>
211 <TD>class-added.tmpl</TD>
212 <TD>This template shows the "class added" message.</TD>
213</TR>
214<TR>
215 <TD>class-confirm.tmpl</TD>
216 <TD>This is the template used to confirm the
217 deletion of a class.</TD>
218</TR>
219<TR>
220 <TD>class-deleted.tmpl</TD>
221 <TD>This template shows the "class deleted" message.</TD>
222</TR>
223<TR>
224 <TD>class-jobs-header.tmpl</TD>
225 <TD>This template shows the "jobs" header for jobs in a
226 class.</TD>
227</TR>
228<TR>
229 <TD>class-modified.tmpl</TD>
230 <TD>This template shows the "class modified" message.</TD>
231</TR>
232<TR>
233 <TD>classes.tmpl</TD>
234 <TD>This template shows one or more printer classes.</TD>
235</TR>
236<TR>
237 <TD>classes-header.tmpl</TD>
238 <TD>This template shows the "showing N of M classes" header in
239 the class list.</TD>
240</TR>
241<TR>
242 <TD>edit-config.tmpl</TD>
243 <TD>This is the cupsd.conf editor page.</TD>
244</TR>
245<TR>
246 <TD>error.tmpl</TD>
247 <TD>This template displays a generic error message.</TD>
248</TR>
249<TR>
250 <TD>error-op.tmpl</TD>
251 <TD>This is the "unknown operation" error page.</TD>
252</TR>
253<TR>
254 <TD>header.tmpl</TD>
255 <TD>This template is used as the standard header on all dynamic
256 content.</TD>
257</TR>
258<TR>
259 <TD>help-header.tmpl</TD>
260 <TD>This is the top part of the help page.</TD>
261</TR>
262<TR>
263 <TD>help-printable.tmpl</TD>
264 <TD>This is the standard page header for the printable
265 version of help files.</TD>
266</TR>
267<TR>
268 <TD>job-cancel.tmpl</TD>
2e4ff8af 269 <TD>This template shows "job canceled".</TD>
4744bd90 270</TR>
271<TR>
272 <TD>job-hold.tmpl</TD>
273 <TD>This template shows "job held".</TD>
274</TR>
275<TR>
276 <TD>job-move.tmpl</TD>
277 <TD>This template shows the move-job form.</TD>
278</TR>
279<TR>
280 <TD>job-moved.tmpl</TD>
281 <TD>This template shows "job moved".</TD>
282</TR>
283<TR>
284 <TD>job-release.tmpl</TD>
285 <TD>This template shows "job released".</TD>
286</TR>
287<TR>
288 <TD>job-restart.tmpl</TD>
289 <TD>This template shows "job reprinted".</TD>
290</TR>
291<TR>
292 <TD>jobs.tmpl</TD>
293 <TD>This template is used to list the print jobs on a server,
294 class, or printer.</TD>
295</TR>
296<TR>
297 <TD>jobs-header.tmpl</TD>
298 <TD>This template shows the "showing N or M jobs" header in the
299 jobs list.</TD>
300</TR>
db1f069b
MS
301<TR>
302 <TD>list-available-printers.tmpl</TD>
303 <TD>This template shows a list of new printers that have been found.</TD>
304</TR>
4744bd90 305<TR>
306 <TD>maintenance.tmpl</TD>
307 <TD>This template shows "maintenance commands sent".</TD>
308</TR>
309<TR>
310 <TD>modify-class.tmpl</TD>
311 <TD>This template is used as the first form when modifying a
312 class.</TD>
313</TR>
314<TR>
315 <TD>modify-printer.tmpl</TD>
316 <TD>This template is used as the first form when modifying a
317 printer.</TD>
318</TR>
d09495fa 319<TR>
320 <TD>norestart.tmpl</TD>
321 <TD>This template shows "server not restarted because no
322 changes were made to the configuration".</TD>
323</TR>
4744bd90 324<TR>
325 <TD>option-boolean.tmpl</TD>
326 <TD>This template is used to select a boolean PPD option.</TD>
327</TR>
328<TR>
329 <TD>option-conflict.tmpl</TD>
330 <TD>This template shows the conflicting options.</TD>
331</TR>
332<TR>
333 <TD>option-header.tmpl</TD>
334 <TD>This template is used to start a PPD option group.</TD>
335</TR>
336<TR>
337 <TD>option-pickmany.tmpl</TD>
338 <TD>This template is used to select a multi-valued PPD option.</TD>
339</TR>
340<TR>
341 <TD>option-pickone.tmpl</TD>
342 <TD>This template is used to select a single-valued PPD option.</TD>
343</TR>
344<TR>
345 <TD>option-trailer.tmpl</TD>
346 <TD>This template is used to end a PPD option group.</TD>
347</TR>
348<TR>
349 <TD>pager.tmpl</TD>
350 <TD>This template shows the previous/next pager bar.</TD>
351</TR>
352<TR>
353 <TD>printer-accept.tmpl</TD>
354 <TD>This template shows "printer now accepting jobs".</TD>
355</TR>
356<TR>
357 <TD>printer-added.tmpl</TD>
358 <TD>This template shows "printer added".</TD>
359</TR>
360<TR>
361 <TD>printer-configured.tmpl</TD>
362 <TD>This template shows "printer configured".</TD>
363</TR>
364<TR>
365 <TD>printer-confirm.tmpl</TD>
366 <TD>This template asks the user to confirm the deletion
367 of a printer.</TD>
368</TR>
369<TR>
370 <TD>printer-default.tmpl</TD>
371 <TD>This template shows "default printer set".</TD>
372</TR>
373<TR>
374 <TD>printer-deleted.tmpl</TD>
375 <TD>This template shows "printer deleted".</TD>
376</TR>
377<TR>
378 <TD>printer-jobs-header.tmpl</TD>
379 <TD>This templates shows the "jobs" header for jobs on a
380 printer.</TD>
381</TR>
382<TR>
383 <TD>printer-modified.tmpl</TD>
384 <TD>This template shows "printer modified".</TD>
385</TR>
386<TR>
387 <TD>printer-purge.tmpl</TD>
388 <TD>This template shows "printer has been purged of all jobs".</TD>
389</TR>
390<TR>
391 <TD>printer-reject.tmpl</TD>
392 <TD>This template shows "printer now rejecting jobs".</TD>
393</TR>
394<TR>
395 <TD>printer-start.tmpl</TD>
396 <TD>This template shows "printer started".</TD>
397</TR>
398<TR>
399 <TD>printer-stop.tmpl</TD>
400 <TD>This template shows "printer stopped".</TD>
401</TR>
402<TR>
403 <TD>printers.tmpl</TD>
404 <TD>This template is used to list information on one or more
405 printers.</TD>
406</TR>
407<TR>
408 <TD>printers-header.tmpl</TD>
409 <TD>This template shows the "showing printer N of M" header in
410 the printers list.</TD>
411</TR>
412<TR>
413 <TD>restart.tmpl</TD>
414 <TD>This template shows "server restarting".</TD>
415</TR>
416<TR>
417 <TD>samba-export.tmpl</TD>
418 <TD>This template shows the export printers to Samba form.</TD>
419</TR>
420<TR>
421 <TD>samba-exported.tmpl</TD>
422 <TD>This template shows "printers exported to Samba".</TD>
423</TR>
424<TR>
425 <TD>search.tmpl</TD>
426 <TD>This template shows the search form.</TD>
427</TR>
428<TR>
429 <TD>set-printer-options-header.tmpl</TD>
430 <TD>This template shows the first part of the set printer options
431 form.</TD>
432</TR>
433<TR>
434 <TD>set-printer-options-trailer.tmpl</TD>
435 <TD>This template shows the last part of the set printer options
436 form.</TD>
437</TR>
f7deaa1a 438<TR>
439 <TD>subscription-added.tmpl</TD>
440 <TD>This template shows "subscription xyz added".</TD>
441</TR>
442<TR>
443 <TD>subscription-canceled.tmpl</TD>
444 <TD>This template shows "subscription #NNN canceled".</TD>
445</TR>
4744bd90 446<TR>
447 <TD>test-page.tmpl</TD>
448 <TD>This template shows "test page printed".</TD>
449</TR>
450<TR>
451 <TD>trailer.tmpl</TD>
452 <TD>This template is used as the standard trailer on all dynamic
453 content.</TD>
454</TR>
455<TR>
456 <TD>users.tmpl</TD>
457 <TD>This template shows the set allowed users form.</TD>
458</TR>
459</TBODY>
460</TABLE></DIV>
461
462<H3><A NAME="VARIABLE">Inserting Attributes and Values</A></H3>
463
464<P>Template files consist of HTML with variable substitutions for
465named inside curley braces "{name}". Variable names are generally
466the IPP attribute names with the hyphen ("-") replaced by the
467underscore ("_") character. For example, the
468<TT>job-printer-uri</TT> attribute is renamed to
469<TT>job_printer_uri</TT>.</P>
470
471<P>Curley braces ("{" and "}") to indicate substitutions, and the
472backslash ("\") character for quoting. To insert any of these
473special characters as-is you need to use the HTML
474<CODE>&amp;name;</CODE> mechanism or prefix each special
475character with the backslash ("\".)</P>
476
477<P>You substitute the value of a variable using
478<CODE>{NAME}</CODE> in your template file. If the variable is
479undefined then the <CODE>{NAME}</CODE> string is output
480as-is.</P>
481
482<P>To substitute an empty string if the variable is undefined,
483use <CODE>{?NAME}</CODE> instead.</P>
484
485<H3>Array Substitutions</H3>
486
487<P>The number of array elements can be inserted using
488<CODE>{#NAME}</CODE>. If the array is undefined then 0 is output.
489The current array element (starting at 1) is inserted with
490<CODE>{#}</CODE>.</P>
491
492<P>Arrays are handled using <CODE>{[NAME]</CODE> at the beginning
493of a section and <CODE>}</CODE> at the end. The information
494between the closing bracket ("]") and closing brace ("}") is
495repeated for as many elements as are in the named array. For
496example, the following template will display a list of each job
497in the <CODE>job_id</CODE> array:</P>
498
499<PRE CLASS="command">
500&lt;TABLE&gt;
501&lt;TR&gt;
502 &lt;TH&gt;Job ID&lt;/TH&gt;
503 &lt;TH&gt;Destination&lt;/TH&gt;
504 &lt;TH&gt;Title&lt;/TH&gt;
505&lt;/TR&gt;
506
507{[job_id]
508&lt;TR&gt;
509 &lt;TD&gt;{?job_id}&lt;/TD&gt;
510 &lt;TD&gt;{?job_printer_name}&lt;/TD&gt;
511 &lt;TD&gt;{?job_name}&lt;/TD&gt;
512&lt;/TR&gt;
513}
514&lt;/TABLE&gt;
515</PRE>
516
517<P>Arrays can be nested, however all elements within the curley
518braces ("{" and "}") are indexed using the innermost array.</P>
519
520<H3>Conditional Tests</H3>
521
522<P>Templates can also test variables against specific values and
523conditionally include text in the template. The format is:</P>
524
525<PRE CLASS="command">
526{<I>variable</I>?<I>true</I>:<I>false</I>}
527{<I>variable</I>=<I>value</I>?<I>true</I>:<I>false</I>}
528{<I>variable</I>!<I>value</I>?<I>true</I>:<I>false</I>}
529{<I>variable</I>&lt;<I>value</I>?<I>true</I>:<I>false</I>}
530{<I>variable</I>><I>value</I>?<I>true</I>:<I>false</I>}
531</PRE>
532
533<P>where <VAR>true</VAR> is the text that is included if the
534condition is true and <VAR>false</VAR> is the text that is
535included if the condition is false. A value of <CODE>#</CODE> is
536replaced with the current element number (starting at 1.) The
537character after the variable name specifies the condition to
538test. Table 3 shows the available test conditions.</P>
539
540<DIV CLASS="table"><TABLE SUMMARY="Template Substitution Conditions">
541<CAPTION>Table 3: Template Substitution Conditions</CAPTION>
542<TR>
543 <TH>Char</TH>
544 <TH>Condition</TH>
545</TR>
546<TR>
547 <TD>?</TD>
548 <TD>True if <VAR>variable</VAR> exists.</TD>
549</TR>
550<TR>
551 <TD>=</TD>
552 <TD>True if <VAR>variable</VAR> is equal to <VAR>value</VAR>.</TD>
553</TR>
554<TR>
555 <TD>!</TD>
556 <TD>True if <VAR>variable</VAR> is not equal to <VAR>value</VAR>.</TD>
557</TR>
558<TR>
559 <TD>&lt;</TD>
560 <TD>True if <VAR>variable</VAR> is less than <VAR>value</VAR>.</TD>
561</TR>
562<TR>
563 <TD>></TD>
564 <TD>True if <VAR>variable</VAR> is greater than <VAR>value</VAR>.</TD>
565</TR>
566</TABLE></DIV>
567
568<H3><A NAME="CGI">CGI Programs</A></H3>
569
570<P>CUPS uses five CGI programs to manage the dynamic web
571interfaces:</P>
572
573<UL>
574
575 <LI><CODE>admin.cgi</CODE></LI>
576 <LI><CODE>classes.cgi</CODE></LI>
577 <LI><CODE>help.cgi</CODE></LI>
578 <LI><CODE>jobs.cgi</CODE></LI>
579 <LI><CODE>printers.cgi</CODE></LI>
580
581</UL>
582
583<P>Each CGI program accepts standard form variables such as
584<CODE>OP</CODE> for the operation to perform,
585<CODE>PRINTER_NAME</CODE> for the printer or class name to
586operate on, <CODE>QUERY</CODE> for any search words,
587<CODE>FIRST</CODE> for the first class, job, or printer to
588display, and <CODE>ORDER</CODE> to control the order that
589classes, jobs, or printers are displayed.</P>
590
591<P>In addition, the <CODE>classes.cgi</CODE>,
592<CODE>jobs.cgi</CODE>, and <CODE>printers.cgi</CODE> programs
593support a <CODE>WHICH_JOBS</CODE> variable to control which jobs
594are displayed. Table 4 lists the supported values.</P>
595
596<DIV CLASS="table"><TABLE SUMMARY="WHICH_JOBS Values">
597<CAPTION>Table 4: WHICH_JOBS Values</CAPTION>
598<THEAD>
599<TR>
2e4ff8af 600 <TH>WHICH_JOBS Value</TH>
4744bd90 601 <TH>Description</TH>
602</TR>
603</THEAD>
604<TR>
605 <TD>all</TD>
606 <TD>Show all jobs</TD>
607</TR>
608<TR>
609 <TD>completed</TD>
610 <TD>Show completed jobs</TD>
611</TR>
612<TR>
613 <TD>not-completed</TD>
614 <TD>Show active jobs</TD>
615</TR>
616</TABLE></DIV>
617
618<H4><A NAME="admin.cgi">admin.cgi</A></H4>
619
620<P>The <CODE>admin.cgi</CODE> program handles all of the printer
621and class administration functions and is run for all direct
622accesses to the <VAR>/admin</VAR> resource. For most operations
623it uses the <CODE>PRINTER_NAME</CODE> and <CODE>OP</CODE> form
624variables to specify the action requested. Table 5 shows the
625supported <CODE>OP</CODE> values.</P>
626
627<DIV CLASS="table"><TABLE SUMMARY="admin.cgi OP Values">
628<CAPTION>Table 5: admin.cgi OP Values</CAPTION>
629<THEAD>
630<TR>
631 <TH>OP Value</TH>
632 <TH>Description</TH>
633</TR>
634</THEAD>
635<TBODY>
636<TR>
637 <TD>accept-jobs</TD>
638 <TD>Accepts jobs on the named destination.</TD>
639</TR>
640<TR>
641 <TD>add-class</TD>
642 <TD>Adds a new printer class.</TD>
643</TR>
644<TR>
645 <TD>add-printer</TD>
646 <TD>Adds a new printer.</TD>
647</TR>
648<TR>
649 <TD>config-server</TD>
650 <TD>Configures the server.</TD>
651</TR>
652<TR>
653 <TD>delete-class</TD>
654 <TD>Deletes a printer class. The form variable <CODE>CONFIRM</CODE>
655 may be set to any value to bypass the confirmation page.</TD>
656</TR>
657<TR>
658 <TD>delete-printer</TD>
659 <TD>Deletes a printer. The form variable <CODE>CONFIRM</CODE>
660 may be set to any value to bypass the confirmation page.</TD>
661</TR>
662<TR>
663 <TD>export-samba</TD>
664 <TD>Exports printers to Samba.</TD>
665</TR>
db1f069b
MS
666<TR>
667 <TD>find-new-printers</TD>
668 <TD>Find new printers that have not yet been added.</TD>
669</TR>
4744bd90 670<TR>
671 <TD>modify-class</TD>
672 <TD>Modifies a printer class.</TD>
673</TR>
674<TR>
675 <TD>modify-printer</TD>
676 <TD>Modifies a printer.</TD>
677</TR>
678<TR>
679 <TD>purge-jobs</TD>
680 <TD>Purges all jobs on the named destination.</TD>
681</TR>
682<TR>
683 <TD>redirect</TD>
684 <TD>Redirects the web browser to the location referenced by
685 the URL form variable.</TD>
686</TR>
687<TR>
688 <TD>reject-jobs</TD>
689 <TD>Rejects new jobs on the named destination.</TD>
690</TR>
691<TR>
692 <TD>set-allowed-users</TD>
693 <TD>Sets the allowed users for a destination.</TD>
694</TR>
695<TR>
696 <TD>set-as-default</TD>
697 <TD>Sets the default destination.</TD>
698</TR>
699<TR>
700 <TD>set-printer-options</TD>
701 <TD>Sets the default options for a printer.</TD>
702</TR>
703<TR>
704 <TD>set-sharing</TD>
705 <TD>Sets the printer-is-shared attribute for a destination.</TD>
706</TR>
707<TR>
708 <TD>start-class</TD>
709 <TD>Starts the named class.</TD>
710</TR>
711<TR>
712 <TD>start-printer</TD>
713 <TD>Starts the named printer.</TD>
714</TR>
715<TR>
716 <TD>stop-class</TD>
717 <TD>Stops the named class.</TD>
718</TR>
719<TR>
720 <TD>stop-printer</TD>
721 <TD>Stops the named printer.</TD>
722</TR>
723</TBODY>
724</TABLE></DIV>
725
726<H4><A NAME="classes.cgi">classes.cgi</A></H4>
727
728<P>The <CODE>classes.cgi</CODE> program is responsible for
729listing class information, including jobs destined for that
730class. It is for all direct accesses to the <VAR>/classes</VAR>
731resource and supports the optional form variables <CODE>OP</CODE>
732and <CODE>WHICH_JOBS</CODE>. If no form variables are supplied
733then the CGI lists all or a specific class and the active jobs on
734each class. Table 6 shows the supported <CODE>OP</CODE>
735values.</P>
736
737<DIV CLASS="table"><TABLE SUMMARY="classes.cgi OP Values">
738<CAPTION>Table 6: classes.cgi OP Values</CAPTION>
739<THEAD>
740<TR>
741 <TH>OP Value</TH>
742 <TH>Description</TH>
743</TR>
744</THEAD>
745<TBODY>
746<TR>
747 <TD>move-jobs</TD>
748 <TD>Moves the jobs on this class to another destination.</TD>
749</TR>
750<TR>
751 <TD>print-test-page</TD>
752 <TD>Prints the standard PostScript test page.</TD>
753</TR>
754</TBODY>
755</TABLE></DIV>
756
757
758<H4><A NAME="help.cgi">help.cgi</A></H4>
759
760<P>The <CODE>help.cgi</CODE> program handles all of the on-line
761help functions and is run for all direct accesses to the
762<VAR>/help</VAR> resource.</P>
763
764
765<H4><A NAME="jobs.cgi">jobs.cgi</A></H4>
766
767<P>The <CODE>jobs.cgi</CODE> program handles all of the job
768functions and is run for all direct accesses to the
769<VAR>/jobs</VAR> resource. For most operations it uses the
770<CODE>JOB_ID</CODE>, <CODE>OP</CODE>, and <CODE>WHICH_JOBS</CODE>
771form variables to specify the action requested. Table 7 shows the
772supported <CODE>OP</CODE> values.</P>
773
774<DIV CLASS="table"><TABLE SUMMARY="jobs.cgi OP Values">
775<CAPTION>Table 7: jobs.cgi OP Values</CAPTION>
776<THEAD>
777<TR>
778 <TH>OP Value</TH>
779 <TH>Description</TH>
780</TR>
781</THEAD>
782<TBODY>
783<TR>
784 <TD>cancel-job</TD>
785 <TD>Cancels a job.</TD>
786</TR>
787<TR>
788 <TD>hold-job</TD>
789 <TD>Holds a job indefinitely.</TD>
790</TR>
791<TR>
792 <TD>move-job</TD>
793 <TD>Moves a job to another destination.</TD>
794</TR>
795<TR>
796 <TD>release-job</TD>
797 <TD>Releases a job for printing.</TD>
798</TR>
799<TR>
800 <TD>restart-job</TD>
2e4ff8af 801 <TD>Restarts/reprints a stopped, canceled, completed, or aborted
4744bd90 802 print job.</TD>
803</TR>
804</TBODY>
805</TABLE></DIV>
806
807
808<H4><A NAME="printers.cgi">printers.cgi</A></H4>
809
810<P>The <CODE>printers.cgi</CODE> program is responsible for
811listing printer information, including jobs destined for that
812printer. It is for all direct accesses to the
813<VAR>/printers</VAR> resource and supports the optional form
814variables <CODE>OP</CODE> and <CODE>WHICH_JOBS</CODE>. If no form
815variables are supplied then the CGI lists all printers or a
816specific printer and the active jobs on that printer. Table 8
817shows the supported <CODE>OP</CODE> values.</P>
818
819<DIV CLASS="table"><TABLE SUMMARY="printers.cgi OP Values">
820<CAPTION>Table 8: printers.cgi OP Values</CAPTION>
821<THEAD>
822<TR>
823 <TH>OP Value</TH>
824 <TH>Description</TH>
825</TR>
826</THEAD>
827<TBODY>
828<TR>
829 <TD>clean-print-heads</TD>
830 <TD>Clean the print heads.</TD>
831</TR>
832<TR>
833 <TD>move-jobs</TD>
834 <TD>Move all jobs to a different destination.</TD>
835</TR>
836<TR>
837 <TD>print-self-test-page</TD>
838 <TD>Print a printer self-test page.</TD>
839</TR>
840<TR>
841 <TD>print-test-page</TD>
842 <TD>Print a PostScript test page.</TD>
843</TR>
844</TBODY>
845</TABLE></DIV>
846
847</BODY>
848</HTML>