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