pmResources.java revision 831:3fb2679c47eb
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 *
24 * ident	"%Z%%M%	%I%	%E% SMI"
25 *
26 * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
27 * Use is subject to license terms.
28 *
29 *
30 * pmResources.java
31 * Localizable resource strings
32 */
33
34package com.sun.admin.pm.client;
35
36import java.util.*;
37
38/*
39 * In accordance with the ResourceBundle pattern,
40 * each line in this file defines a tuple containing
41 * two strings:
42 *	string 1 is the key used by the app -- DO NOT LOCALIZE
43 *	string 2 is the string to be localized
44 *
45 * For example, in the tuple
46 *	{"info_name", "Solaris Print Manager"}
47 *
48 *       "info_name" is the resource key that must
49 * 		          not be modified in any way
50 *
51 *       "Solaris Print Manager" is the corresponding
52 *                        text to be localized
53 */
54
55public class pmResources extends ListResourceBundle {
56    static final Object[][] pmBundlecontents = {
57
58	/*
59	 * Descriptive strings used in the 'About' dialog
60	 */
61        {"info_name", "Solaris Print Manager"},
62        {"info_version", "Version 1.0"},
63	{"info_authors", "Authors: Wendy Phillips"},
64
65	// Note: the copyright notice is displayed on two lines.
66	{"info_copyright1", "Copyright \251 "},
67	/* JSTYLED */
68	{"info_copyright2", " Sun Microsystems, Inc.  All rights reserved.  Use is subject to license terms. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.  Sun, Sun Microsystems, the Sun logo and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.  Federal Acquisitions:  Commercial Software - Government Users Subject to Standard License Terms and Conditions."},
69
70
71	/*
72	 * Main window title, the application name
73	 */
74	{"Solaris.Print.Manager", "Solaris Print Manager"},
75
76
77        /*
78         * Main window column labels for printer list
79         */
80        {"Printer.Name", "Printer Name"},
81        {"Printer.Server", "Printer Server"},
82        {"Description", "Description"},
83
84
85	/*
86	 * Main window menu titles and mnemonics
87	 */
88        {"Print.Manager", "Print Manager"},
89        {"Print.Manager.mnemonic", "M"},
90
91        {"Printer", "Printer" },
92        {"Printer.mnemonic", "P"},
93
94        {"Tools", "Tools" },
95        {"Tools.mnemonic", "T"},
96
97	{"Help", "Help"},
98	{"Help.mnemonic", "H"},
99
100
101	/*
102	 * Main window data labels
103	 */
104        {"Default.Printer:", "Default Printer:"},
105        {"Domain:", "Domain:"},
106	{"Host:", "Host:"},
107
108
109	/*
110	 * 'Printer Manager' menu item labels and mnemonics
111	 */
112        {"Select.Naming.Service", "Select Naming Service..."},
113        {"Select.Naming.Service.mnemonic", "N"},
114
115        {"Show.Command-Line.Console", "Show Command-Line Console"},
116        {"Show.Command-Line.Console.mnemonic", "L"},
117
118        {"Confirm.All.Actions", "Confirm All Actions"},
119        {"Confirm.All.Actions.mnemonic", "C"},
120
121	{"Use.PPD.files", "Use PPD files"},
122	{"Use.PPD.files.mnemonic", "F"},
123
124	{"Use.localhost", "Use localhost for Printer Server"},
125	{"Use.localhost.mnemonic", "U"},
126
127	{"Exit", "Exit"},
128	{"Exit.mnemonic", "X"},
129
130	/*
131	 * 'Printer' menu item labels and mnemonics
132	 */
133	{"Add.Access.to.Printer...", "Add Access to Printer..."},
134	{"Add.Access.to.Printer.mnemonic", "A"},
135
136        {"New.Attached.Printer...", "New Attached Printer..."},
137        {"New.Attached.Printer.mnemonic", "T"},
138
139        {"New.Network.Printer...", "New Network Printer..."},
140        {"New.Network.Printer.mnemonic", "N"},
141
142        {"Modify.Printer.Properties...", "Modify Printer Properties..."},
143        {"Modify.Printer.Properties.mnemonic", "M"},
144
145        {"Delete.Printer...", "Delete Printer..."},
146        {"Delete.Printer.mnemonic", "D"},
147
148
149	/*
150	 * 'Tools' menu item labels
151	 */
152	{"Find.Printer", "Find Printer..."},
153	{"Find.Printer.mnemonic", "F"},
154
155
156	/*
157	 * 'Help' menu item labels
158	 */
159        {"Overview", "Overview"},
160        {"Overview.mnemonic", "O"},
161
162        {"On.Help", "On Help"},
163        {"On.Help.mnemonic", "H"},
164
165	{"About.Print.Manager", "About Print Manager..."},
166	{"About.Print.Manager.mnemonic", "A"},
167
168	{"Print.Manager.Settings", "Print Manager Settings"},
169	{"Print.Manager.Settings.mnemonic", "P"},
170
171
172	/*
173	 * 'Select Naming Service' dialog title
174	 */
175        {"SPM:Select.Naming.Service",
176                "Solaris Print Manager: Select Naming Service"},
177
178
179	/*
180	 * 'Command-Line Console' dialog title
181	 */
182        {"SPM:Command-Line.Console",
183                "Solaris Print Manager: Command-Line Console"},
184
185
186	/*
187	 * 'Delete Printer' confirmation dialog title
188	 */
189        {"SPM:Delete.Printer", "Solaris Print Manager: Delete Printer"},
190
191
192	/*
193         * 'Add Access to Printer' dialog title
194         */
195        {"SPM:Add.Access.To.Printer",
196                "Solaris Print Manager: Add Access to Printer"},
197
198
199	/*
200         * 'Add Attached Printer' dialog title
201         */
202        {"SPM:New.Attached.Printer",
203                "Solaris Print Manager: New Attached Printer"},
204
205
206	/*
207         * 'Add Network Printer' dialog title
208         */
209        {"SPM:New.Network.Printer",
210                "Solaris Print Manager: New Network Printer"},
211
212
213	/*
214         * 'Modify Printer Properties' dialog title
215         */
216        {"SPM:Modify.Printer.Properties",
217                "Solaris Print Manager: Modify Printer Properties"},
218
219
220	/*
221         * 'Find Printer' dialog title
222         */
223        {"SPM:Find.Printer", "Solaris Print Manager: Find Printer"},
224
225
226	/*
227	 * 'Help' dialog title
228	 */
229        {"SPM:Help", "Solaris Print Manager: Help"},
230
231
232        /*
233         * 'About Print Manager' dialog title
234         */
235        {"About.Solaris.Print.Manager", "About Solaris Print Manager"},
236
237
238	/*
239	 * 'User Input of Printer Port' dialog title
240	 */
241        {"SPM:Specify.Printer.Port",
242		"Solaris Print Manager: Specify Printer Port"},
243
244
245	/*
246	 * 'User Input of Printer Type' dialog title
247	 */
248        {"SPM:Specify.Printer.Type",
249		"Solaris Print Manager: Specify Printer Type"},
250
251
252	/*
253	 * 'NIS Authentication' dialog title
254	 */
255	{"NIS.Authentication", "NIS Authentication"},
256
257	/*
258	 * 'LDAP Authentication' dialog title
259	 */
260	{"LDAP.Authentication", "LDAP Authentication"},
261
262
263	/*
264	 * 'Action Confirmation' dialog title
265	 */
266	{"Action.Confirmation", "Action Confirmation"},
267
268
269	/*
270	 * Button labels and mnemonics
271	 */
272        {"Apply", "Apply"},
273        {"Apply.mnemonic", "P"},
274
275        {"Cancel", "Cancel"},
276        {"Cancel.mnemonic", "C"},
277
278        {"Clear", "Clear"},
279        {"Clear.mnemonic", "L"},
280
281        {"Dismiss", "Dismiss"},
282        {"Dismiss.mnemonic", "D"},
283
284        // {"Button Help", "Help"},
285        // {"Button.Help.mnemonic", "H"},
286
287        {"OK", "OK"},
288        {"OK.mnemonic", "O"},
289
290        {"Reset", "Reset"},
291        {"Reset.mnemonic", "R"},
292
293        {"Find", "Find"},
294        {"Find.mnemonic", "F"},
295
296        {"Show", "Show"},
297        {"Show.mnemonic", "S"},
298
299        {"Forward", "Forward"},
300        {"Forward.mnemonic", "W"},
301
302        {"Back", "Back"},
303        {"Back.mnemonic", "B"},
304
305        {"Add", "Add"},
306        {"Add.mnemonic", "A"},
307
308        {"Delete", "Delete"},
309        {"Delete.mnemonic", "D"},
310
311
312	/*
313	 * Actions performed by the application
314         * as displayed in the Command-Line Console
315	 */
316	{"New.Attached.Printer", "New Attached Printer"},
317	{"New.Network.Printer", "New Network Printer"},
318	{"Modify.Printer.Properties", "Modify Printer Properties"},
319	{"Delete.Printer", "Delete Printer"},
320	{"Add.Access.To.Printer", "Add Access To Printer"},
321
322
323	/*
324	 * Prompts: messages to user describing required input.
325	 */
326	{"Enter.name.of.printer.to.find",
327		"Enter the name of a printer to find:"},
328	{"Please.confirm.deletion.of.printer",
329		"Please confirm deletion of printer "},
330	{"Enter.printer.type:", "Enter printer type:"},
331	{"Enter.printer.port.or.file", "Enter printer port or file:"},
332
333
334	/*
335	 * 'Help' dialog tabbed-pane tab selection labels
336	 */
337        {"View", "View"},
338        {"Index", "Index"},
339        {"Search", "Search"},
340
341
342	/*
343	 * 'Help' dialog prompts, labels, and mnemonics
344	 */
345        {"Help.on:", "Help on:"},
346        {"See.also:", "See also:"},
347
348	{"Matching.entries:", "Matching entries:"},
349	{"Matching.entries:.mnemonic", "M"},
350
351	{"Search.help.index.for:", "Search help index for: "},
352	{"Search.help.index.for:.mnemonic", "S"},
353
354        {"Search.Results:", "Search Results:"},
355        {"Search.Results:.mnemonic", "R"},
356
357        {"Keywords:", "Keywords: "},
358        {"Keywords:.mnemonic", "K"},
359
360
361	/*
362	 * 'Help' dialog descriptive messages to provide
363         * assistance in using the features.
364	 */
365
366	/*
367	 * The following two labels create one message, displayed on
368	 * two adjacent lines.
369	 */
370        {"To.search.the.index...",
371		 "To search the index of help articles alphabetically,"},
372        {"type.your.query.below...",
373		 "type your query below then select the desired article."},
374
375	/*
376	 * The following two labels create one message, displayed on
377	 * two adjacent lines.
378	 */
379        {"To.find.help.articles...",
380		"To find help articles about a particular topic,"},
381        {"enter.keywords.below...",
382		 "enter keywords below then press the Find button."},
383
384
385	/*
386	 * Prompts/labels on 'Install Printer' and 'Modify Printer' dialogs
387	 */
388	{"Printer.Name:", "Printer Name:"},
389	{"Printer.Server:", "Printer Server:"},
390	{"Description:", "Description:"},
391	{"Printer.Port:", "Printer Port:"},
392	{"Not.Selected", "Not Selected"},
393	{"Printer.Type:", "Printer Type:"},
394	{"Printer.Driver:", "Printer Driver:"},
395	{"No.PPD.Files.Found", "No PPD files found"},
396	{"Printer.Make:", "Printer Make:"},
397	{"Printer.Model:", "Printer Model:"},
398	{"No.Models.Found", "No Models Found"},
399	{"File.Contents:", "File Contents:"},
400	{"Fault.Notification:", "Fault Notification:"},
401	{"Destination:", "Destination:"},
402	{"Protocol:", "Protocol:"},
403	{"Options:", "Options:"},
404	{"Banner:", "Banner:"},
405	{"Options.mnemonic", "O"},
406	{"Option:", "Option:"},
407	{"User.Access.List:", "User Access List:"},
408
409
410	/*
411	 * Combo item allowing custom 'Printer Port' selection
412 	 * See "Printer.Port:" above.
413	 */
414	{"Other...", "Other..."},
415
416
417	/*
418	 * Combo items specifying printer 'File Contents'
419	 * See "File.Contents" above.
420	 */
421	{"PostScript", "PostScript"},
422	{"ASCII", "ASCII"},
423	{"None", "None"},
424	{"Any", "Any"},
425	{"Both.PostScript.and.ASCII", "Both PostScript and ASCII"},
426
427
428	/*
429	 * Combo items specifying 'Fault Notification' options.
430	 * See "Fault.Notification" above.
431	 */
432	{"Write.to.Superuser", "Write to Superuser"},
433	{"Mail.to.Superuser", "Mail to Superuser"},
434
435
436	/*
437	 * Labels for checkboxes used in 'Install Printer' and
438         * 'Modify Printer' dialogs
439	 */
440	{"Default.Printer", "Default Printer"},
441	{"Always.Print.Banner", "Always Print Banner"},
442	{"User.Selectable.Default.On", "User Selectable - Default=on"},
443	{"Never.Print.Banner", "Never Print Banner"},
444
445
446	/*
447	 * Prompt for 'Select Naming Service' combo
448	 */
449	{"Naming.Service:", "Naming Service:"},
450
451
452	/*
453	 * Descriptive label for 'NIS Authentication' dialog
454	 */
455	{"Enter.NIS.authentication.data.", "Enter NIS authentication data."},
456
457	/*
458	 * Descriptive label for 'LDAP Authentication' dialog
459	 */
460	{"Enter.LDAP.authentication.data.", "Enter LDAP authentication data."},
461
462
463	/*
464	 * Prompts and mnemonics for 'NIS Authentication' dialog
465	 */
466	{"Hostname:", "Hostname:"},
467	{"Hostname.mnemonic", "H"},
468
469	{"Username:", "Username:"},
470	{"Username.mnemonic", "U"},
471
472	{"Password:", "Password:"},
473	{"Password.mnemonic", "P"},
474
475	/*
476	 * Prompts for 'LDAP Authentication' dialog
477	 */
478	{"LDAP.Server:", "LDAP Server:"},
479	{"Distinguished.Name:", "Distinguished Name:"},
480	{"Password:", "Password:"},
481
482
483	/*
484	 * Error dialog titles
485	 */
486	{"Application.Error", "Application Error"},
487	{"Unknown.Application.Error", "Unknown Application Error"},
488	{"Command.Failed.Error", "Command Failed Error"},
489	{"Error", "Error"},
490	{"Warning", "Warning"},
491
492
493        /*
494         * Error messages displayed to user
495         */
496        {"Item.not.found:", "Item not found: "},
497        {"No.information.available.", "No information available."},
498	{"Unable.to.find.printer", "Unable to find printer "},
499	{"Printer.delete.operation.failed.",
500		"Printer delete operation failed."},
501	{"Invalid.printer.type.", "Invalid printer type."},
502	{"Device.missing.or.not.writeable.",
503		"Device missing or not writeable."},
504        {"Printer.name.required.", "Printer name required."},
505	{"Printer.Port.Selection.required", "Printer Port Selection required."},
506	{"Printer.Make.Selection.required", "Printer Make Selection required."},
507        {"Printer.name.invalid.", "Printer name invalid."},
508        {"Server.name.required.", "Server name required."},
509        {"Server.name.invalid.", "Server name invalid."},
510        {"User.Cancelled.Login", "User Cancelled Login"},
511        {"Destination.required.", "Destination required."},
512        {"User.Cancelled.Login", "User Cancelled Login"},
513	{"Destination.invalid.", "Destination invalid."},
514	{"Operation.Cancelled", "Operation Cancelled"},
515	{"Login.Failure", "Login Failure"},
516	{"Required.login.failed.", "Required login failed."},
517	{"Login.Authorization.Failed", "Login Authorization Failed"},
518	{"Cannot.modify.this.queue;ppdcache.file.missing.",
519		"Cannot modify this queue; ppdcache file missing."},
520	{"Cannot.modify.this.queue;PPD.file.not.in.ppdcache.",
521		"Cannot modify this queue; PPD file not in ppdcache."},
522	{"Request.cannot.be.completed.", "Request cannot be completed."},
523	{"Could.not.get.local.hostname", "Could not get local hostname"},
524	{"The.specified.printer.already.exists.",
525		"The specified printer already exists."},
526	{"The.server.must.be.a.remote.server.",
527		"The server must be a remote server."},
528	{"Required.login.failed.", "Required login failed."},
529	{"Invalid.printer.type.", "Invalid printer type."},
530	{"Invalid.username", "Invalid username"},
531	{"Device.missing.or.not.writeable.",
532		"Device missing or not writeable."},
533	{"User.cancelled.login.", "User cancelled login."},
534        {"Nothing.matched.", "Nothing matched."},
535        {"The.specified.printer.already.exists.",
536                "The specified printer already exists."},
537        {"The.selected.printer.does.not.exist.",
538                "The selected printer does not exist."},
539        {"User.not.authorized.to.modify.this.namespace.",
540                "User not authorized to modify this namespace."},
541        {"Cannot.get.list.of.printers.Exiting.",
542                "Cannot get list of printers. Exiting."},
543        {"LDAP.server.name.required.",
544                "LDAP Server Name required."},
545        {"LDAP.Distinguished.name.required.",
546                "LDAP Distinguished Name required."},
547        {"LDAP.Password.required.",
548                "LDAP Password required."},
549
550
551	/*
552	 * Prompts for 'Confirm Action' dialogs
553	 */
554	{"Continue.action.for.this.printer?",
555		"Continue action for this printer?"},
556	{"Continue.creating.access.for.this.printer?",
557		"Continue creating access for this printer?"},
558
559
560	/*
561	 * The help subsystem builds a database of searchable
562	 * keywords based in part on the title of each help
563	 * article.  In order to avoid excessive false hits, the
564	 * following words are ignored when adding title words
565	 * to the searchable keyword list.
566         *
567         * If this list is left empty, all the words in the title of
568         * each help article will be added to the keywords database.
569	 */
570        {"help.ignore.words", "to an a of if the and or"},
571
572
573
574	/*
575	 * Title for the authorization dialog which is invoked by
576	 * the printmgr executable.
577	 */
578	{"Authentication.required", "Authentication Required"},
579
580	/*
581	 * Prompt for the printmgr authorization dialog.
582	 * This is displayed with line breaks.
583	 */
584	/* JSTYLED */
585	{"Root.access.is.required", "Root access is required for full functionality.\nYou may authenticate as root or continue\nwith limited functionality."},
586
587	/*
588	 * Buttons for the authorization dialog.
589	 */
590	{"Authenticate", "Authenticate"},
591	{"Authenticate.mnemonic", "A"},
592
593	{"Continue", "Continue"},
594	{"Continue.mnemonic", "N"},
595
596	/*
597	 * Title for the root password request dialog invoked by printmgr.
598	 */
599	{"Root.authentication", "Root Authentication"},
600
601	/*
602	 * Prompt for the root password request dialog.
603	 */
604	{"Enter.root.password", "Enter root password"},
605
606	/*
607	 * Prompt for the root password request dialog.
608	 */
609	{"Invalid.password", "Invalid password entered.  Retry?"},
610
611	/*
612	 * Just a placeholder, never used.
613	 */
614	{"dummy", ""}
615    };
616
617    public Object[][] getContents() {
618	    return pmBundlecontents;
619    }
620}
621