1 /*
2 * Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
6 #include <locale.h>
7 const char *
imp_error_table(long errorno)8 imp_error_table(long errorno) {
9
10 switch (errorno) {
11 case 0:
12 return(dgettext(TEXT_DOMAIN,
13 "Successfully imported %d record%s.n"));
14 case 1:
15 return(dgettext(TEXT_DOMAIN,
16 "Input not recognized as database dump"));
17 case 2:
18 return(dgettext(TEXT_DOMAIN,
19 "Bad token in dump file."));
20 case 3:
21 return(dgettext(TEXT_DOMAIN,
22 "Bad version in dump file"));
23 case 4:
24 return(dgettext(TEXT_DOMAIN,
25 "Defective record encountered: "));
26 case 5:
27 return(dgettext(TEXT_DOMAIN,
28 "Truncated input file detected."));
29 case 6:
30 return(dgettext(TEXT_DOMAIN,
31 "Import of dump failed"));
32 case 7:
33 return(dgettext(TEXT_DOMAIN,
34 "Mismatched record count: %d record%s indicated %d record%s scanned"));
35 case 8:
36 return(dgettext(TEXT_DOMAIN,
37 "Number of records imported does not match count"));
38 case 9:
39 return(dgettext(TEXT_DOMAIN,
40 "Unknown command line option.nUsage: ovsec_adm_import [filename]"));
41 case 10:
42 return(dgettext(TEXT_DOMAIN,
43 "Warning -- continuing to import will overwrite existing databases!"));
44 case 11:
45 return(dgettext(TEXT_DOMAIN,
46 "Database rename Failed!!"));
47 case 12:
48 return(dgettext(TEXT_DOMAIN,
49 "Extra data after footer is ignored."));
50 case 13:
51 return(dgettext(TEXT_DOMAIN,
52 "Proceed <y|n>?"));
53 case 14:
54 return(dgettext(TEXT_DOMAIN,
55 "while opening input file"));
56 case 15:
57 return(dgettext(TEXT_DOMAIN,
58 "while importing databases"));
59 case 16:
60 return(dgettext(TEXT_DOMAIN,
61 "cannot open /dev/tty!!"));
62 case 17:
63 return(dgettext(TEXT_DOMAIN,
64 "while opening databases"));
65 case 18:
66 return(dgettext(TEXT_DOMAIN,
67 "while acquiring permanent lock"));
68 case 19:
69 return(dgettext(TEXT_DOMAIN,
70 "while releasing permanent lock"));
71 case 20:
72 return(dgettext(TEXT_DOMAIN,
73 "while closing databases"));
74 case 21:
75 return("");
76 case 22:
77 return("s");
78 case 23:
79 return(dgettext(TEXT_DOMAIN,
80 "while retrieving configuration parameters"));
81 default:
82 return("unknown error");
83 }
84 }
85