xref: /titanic_41/usr/src/cmd/msgfmt/gnu_errmsg.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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  * Copyright (c) 2001 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef	_ERRMSG_H
28 #define	_ERRMSG_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 #define	ERR_USAGE \
37 	"Usage: %s [-D dir | --directory=dir] [-f | --use-fuzzy]\n" \
38 	"               [-g] [-o outfile | --output-file=outfile]\n" \
39 	"               [--strict] [-v | --verbose] files ...\n"
40 #define	ERR_SUN_ON_GNU \
41 	"-s option cannot be specified to %s.\n"
42 
43 #define	ERR_PRIME \
44 	"Internal error: no prime number under 1100 found for %d.\n"
45 
46 #define	ERR_ERROR_FOUND \
47 	"%d error(s) found.\n"
48 
49 #define	ERR_INVALID_CHAR \
50 	"Line %d (%s): Invalid character found.\n"
51 
52 #define	ERR_INTERNAL \
53 	"Line %d (%s): Internal error.\n"
54 
55 #define	ERR_LOCATION \
56 	"Line %d (%s): "
57 
58 #define	ERR_NO_MSGSTR \
59 	"Line %d (%s): missing \"msgstr\" corresponding to \"msgid\".\n"
60 
61 #define	ERR_NO_MSGSTRS \
62 	"Line %d (%s): missing \"msgstr[]\" corresponding to \"msgid\".\n"
63 
64 #define	ERR_NO_MSGID_PLURAL \
65 	"Line %d (%s): missing \"msgid_plural\" corresponding to \"msgid\".\n"
66 
67 #define	ERR_INVALID_PLURALS \
68 	"Line %d (%s): invalid index for \"msgstr[]\".\n"
69 
70 #define	ERR_UNEXP_EOF \
71 	"Line %d (%s): unexpected EOF found.\n"
72 
73 #define	ERR_UNEXP_EOL \
74 	"Line %d (%s): unexpected EOL found.\n"
75 
76 #define	ERR_DUP_ENTRIES \
77 	"Lines %d (%s), %d (%s): " \
78 	"duplicate \"msgid\" entries found.\n"
79 
80 #define	ERR_BEGIN_NEWLINE_1 \
81 	"Lines %d, %d (%s): \"msgid\" begins with newline, " \
82 	"but \"msgstr\" doesn't.\n"
83 
84 #define	ERR_BEGIN_NEWLINE_2 \
85 	"Lines %d, %d (%s): \"msgstr\" begins with newline, " \
86 	"but \"msgid\" doesn't.\n"
87 
88 #define	ERR_BEGIN_NEWLINE_3 \
89 	"Lines %d, %d (%s): \"msgid\" begins with newline, " \
90 	"but \"msgid_plural\" doesn't.\n"
91 
92 #define	ERR_BEGIN_NEWLINE_4 \
93 	"Lines %d, %d (%s): \"msgid_plural\" begins with newline, " \
94 	"but \"msgid\" doesn't.\n"
95 
96 #define	ERR_BEGIN_NEWLINE_5 \
97 	"Lines %d, %d (%s): \"msgid\" begins with newline, " \
98 	"but \"msgidstr[%d]\" doesn't.\n"
99 
100 #define	ERR_BEGIN_NEWLINE_6 \
101 	"Lines %d, %d (%s): \"msgstr[%d]\" begins with newline, " \
102 	"but \"msgid\" doesn't.\n"
103 
104 #define	ERR_END_NEWLINE_1 \
105 	"Lines %d, %d (%s): \"msgid\" ends with newline, " \
106 	"but \"msgstr\" doesn't.\n"
107 
108 #define	ERR_END_NEWLINE_2 \
109 	"Lines %d, %d (%s): \"msgstr\" ends with newline, " \
110 	"but \"msgid\" doesn't.\n"
111 
112 #define	ERR_END_NEWLINE_3 \
113 	"Lines %d, %d (%s): \"msgid\" ends with newline, " \
114 	"but \"msgid_plural\" doesn't.\n"
115 
116 #define	ERR_END_NEWLINE_4 \
117 	"Lines %d, %d (%s): \"msgid_plural\" ends with newline, " \
118 	"but \"msgid\" doesn't.\n"
119 
120 #define	ERR_END_NEWLINE_5 \
121 	"Lines %d, %d (%s): \"msgid\" ends with newline, " \
122 	"but \"msgstr[%d]\" doesn't.\n"
123 
124 #define	ERR_END_NEWLINE_6 \
125 	"Lines %d, %d (%s): \"msgstr[%d]\" ends with newline, " \
126 	"but \"msgid\" doesn't.\n"
127 
128 #define	ERR_INVALID_FMT \
129 	"Lines %d (%s): invalid printf-format.\n"
130 
131 #define	ERR_INCMP_FMT \
132 	"Lines %d, %d (%s): incompatible printf-format.\n"
133 
134 #define	ERR_INCMP_FMT_DIFF_1 \
135 	"     %d format specifier(s) in \"msgid\", but " \
136 	"%d format specifier(s) in \"msgstr\".\n"
137 
138 #define	ERR_INCMP_FMT_DIFF_2 \
139 	"     format specifier mismatch in the argument (#%d).\n"
140 
141 #define	WARN_NOCHARSET \
142 	"Line %d (%s): charset specification is missing " \
143 	"in the header entry.\n" \
144 	"Using the default charset.\n"
145 
146 #define	WARN_NOCONV \
147 	"Line %d (%s): No iconv conversion from \"%s\" to \"%s\" is " \
148 	"supported.\n" \
149 	"Using the default charset.\n"
150 
151 #define	WARN_DUP_ENTRIES \
152 	"Lines %d (%s), %d (%s): " \
153 	"duplicate \"msgid\" and \"msgstr\" entries found.\n"
154 
155 #define	DIAG_IGNORE_DOMAIN \
156 	"Line %d (%s): `domain %s' directive ignored.\n"
157 
158 #define	DIAG_RESULTS \
159 	"%d translated message(s), %d fuzzy translation(s), " \
160 	"%d untranslated message(s).\n"
161 
162 #ifdef	__cplusplus
163 }
164 #endif
165 
166 #endif	/* _ERRMSG_H */
167