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