xref: /illumos-gate/usr/src/cmd/msgfmt/gnu_errmsg.h (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright (c) 2001 by Sun Microsystems, Inc.
24*7c478bd9Sstevel@tonic-gate  * All rights reserved.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate #ifndef	_ERRMSG_H
28*7c478bd9Sstevel@tonic-gate #define	_ERRMSG_H
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
31*7c478bd9Sstevel@tonic-gate extern "C" {
32*7c478bd9Sstevel@tonic-gate #endif
33*7c478bd9Sstevel@tonic-gate 
34*7c478bd9Sstevel@tonic-gate #define	ERR_USAGE \
35*7c478bd9Sstevel@tonic-gate 	"Usage: %s [-D dir | --directory=dir] [-f | --use-fuzzy]\n" \
36*7c478bd9Sstevel@tonic-gate 	"               [-g] [-o outfile | --output-file=outfile]\n" \
37*7c478bd9Sstevel@tonic-gate 	"               [--strict] [-v | --verbose] files ...\n"
38*7c478bd9Sstevel@tonic-gate #define	ERR_SUN_ON_GNU \
39*7c478bd9Sstevel@tonic-gate 	"-s option cannot be specified to %s.\n"
40*7c478bd9Sstevel@tonic-gate 
41*7c478bd9Sstevel@tonic-gate #define	ERR_PRIME \
42*7c478bd9Sstevel@tonic-gate 	"Internal error: no prime number under 1100 found for %d.\n"
43*7c478bd9Sstevel@tonic-gate 
44*7c478bd9Sstevel@tonic-gate #define	ERR_ERROR_FOUND \
45*7c478bd9Sstevel@tonic-gate 	"%d error(s) found.\n"
46*7c478bd9Sstevel@tonic-gate 
47*7c478bd9Sstevel@tonic-gate #define	ERR_INVALID_CHAR \
48*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): Invalid character found.\n"
49*7c478bd9Sstevel@tonic-gate 
50*7c478bd9Sstevel@tonic-gate #define	ERR_INTERNAL \
51*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): Internal error.\n"
52*7c478bd9Sstevel@tonic-gate 
53*7c478bd9Sstevel@tonic-gate #define	ERR_LOCATION \
54*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): "
55*7c478bd9Sstevel@tonic-gate 
56*7c478bd9Sstevel@tonic-gate #define	ERR_NO_MSGSTR \
57*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): missing \"msgstr\" corresponding to \"msgid\".\n"
58*7c478bd9Sstevel@tonic-gate 
59*7c478bd9Sstevel@tonic-gate #define	ERR_NO_MSGSTRS \
60*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): missing \"msgstr[]\" corresponding to \"msgid\".\n"
61*7c478bd9Sstevel@tonic-gate 
62*7c478bd9Sstevel@tonic-gate #define	ERR_NO_MSGID_PLURAL \
63*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): missing \"msgid_plural\" corresponding to \"msgid\".\n"
64*7c478bd9Sstevel@tonic-gate 
65*7c478bd9Sstevel@tonic-gate #define	ERR_INVALID_PLURALS \
66*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): invalid index for \"msgstr[]\".\n"
67*7c478bd9Sstevel@tonic-gate 
68*7c478bd9Sstevel@tonic-gate #define	ERR_UNEXP_EOF \
69*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): unexpected EOF found.\n"
70*7c478bd9Sstevel@tonic-gate 
71*7c478bd9Sstevel@tonic-gate #define	ERR_UNEXP_EOL \
72*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): unexpected EOL found.\n"
73*7c478bd9Sstevel@tonic-gate 
74*7c478bd9Sstevel@tonic-gate #define	ERR_DUP_ENTRIES \
75*7c478bd9Sstevel@tonic-gate 	"Lines %d (%s), %d (%s): " \
76*7c478bd9Sstevel@tonic-gate 	"duplicate \"msgid\" entries found.\n"
77*7c478bd9Sstevel@tonic-gate 
78*7c478bd9Sstevel@tonic-gate #define	ERR_BEGIN_NEWLINE_1 \
79*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid\" begins with newline, " \
80*7c478bd9Sstevel@tonic-gate 	"but \"msgstr\" doesn't.\n"
81*7c478bd9Sstevel@tonic-gate 
82*7c478bd9Sstevel@tonic-gate #define	ERR_BEGIN_NEWLINE_2 \
83*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgstr\" begins with newline, " \
84*7c478bd9Sstevel@tonic-gate 	"but \"msgid\" doesn't.\n"
85*7c478bd9Sstevel@tonic-gate 
86*7c478bd9Sstevel@tonic-gate #define	ERR_BEGIN_NEWLINE_3 \
87*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid\" begins with newline, " \
88*7c478bd9Sstevel@tonic-gate 	"but \"msgid_plural\" doesn't.\n"
89*7c478bd9Sstevel@tonic-gate 
90*7c478bd9Sstevel@tonic-gate #define	ERR_BEGIN_NEWLINE_4 \
91*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid_plural\" begins with newline, " \
92*7c478bd9Sstevel@tonic-gate 	"but \"msgid\" doesn't.\n"
93*7c478bd9Sstevel@tonic-gate 
94*7c478bd9Sstevel@tonic-gate #define	ERR_BEGIN_NEWLINE_5 \
95*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid\" begins with newline, " \
96*7c478bd9Sstevel@tonic-gate 	"but \"msgidstr[%d]\" doesn't.\n"
97*7c478bd9Sstevel@tonic-gate 
98*7c478bd9Sstevel@tonic-gate #define	ERR_BEGIN_NEWLINE_6 \
99*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgstr[%d]\" begins with newline, " \
100*7c478bd9Sstevel@tonic-gate 	"but \"msgid\" doesn't.\n"
101*7c478bd9Sstevel@tonic-gate 
102*7c478bd9Sstevel@tonic-gate #define	ERR_END_NEWLINE_1 \
103*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid\" ends with newline, " \
104*7c478bd9Sstevel@tonic-gate 	"but \"msgstr\" doesn't.\n"
105*7c478bd9Sstevel@tonic-gate 
106*7c478bd9Sstevel@tonic-gate #define	ERR_END_NEWLINE_2 \
107*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgstr\" ends with newline, " \
108*7c478bd9Sstevel@tonic-gate 	"but \"msgid\" doesn't.\n"
109*7c478bd9Sstevel@tonic-gate 
110*7c478bd9Sstevel@tonic-gate #define	ERR_END_NEWLINE_3 \
111*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid\" ends with newline, " \
112*7c478bd9Sstevel@tonic-gate 	"but \"msgid_plural\" doesn't.\n"
113*7c478bd9Sstevel@tonic-gate 
114*7c478bd9Sstevel@tonic-gate #define	ERR_END_NEWLINE_4 \
115*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid_plural\" ends with newline, " \
116*7c478bd9Sstevel@tonic-gate 	"but \"msgid\" doesn't.\n"
117*7c478bd9Sstevel@tonic-gate 
118*7c478bd9Sstevel@tonic-gate #define	ERR_END_NEWLINE_5 \
119*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgid\" ends with newline, " \
120*7c478bd9Sstevel@tonic-gate 	"but \"msgstr[%d]\" doesn't.\n"
121*7c478bd9Sstevel@tonic-gate 
122*7c478bd9Sstevel@tonic-gate #define	ERR_END_NEWLINE_6 \
123*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): \"msgstr[%d]\" ends with newline, " \
124*7c478bd9Sstevel@tonic-gate 	"but \"msgid\" doesn't.\n"
125*7c478bd9Sstevel@tonic-gate 
126*7c478bd9Sstevel@tonic-gate #define	ERR_INVALID_FMT \
127*7c478bd9Sstevel@tonic-gate 	"Lines %d (%s): invalid printf-format.\n"
128*7c478bd9Sstevel@tonic-gate 
129*7c478bd9Sstevel@tonic-gate #define	ERR_INCMP_FMT \
130*7c478bd9Sstevel@tonic-gate 	"Lines %d, %d (%s): incompatible printf-format.\n"
131*7c478bd9Sstevel@tonic-gate 
132*7c478bd9Sstevel@tonic-gate #define	ERR_INCMP_FMT_DIFF_1 \
133*7c478bd9Sstevel@tonic-gate 	"     %d format specifier(s) in \"msgid\", but " \
134*7c478bd9Sstevel@tonic-gate 	"%d format specifier(s) in \"msgstr\".\n"
135*7c478bd9Sstevel@tonic-gate 
136*7c478bd9Sstevel@tonic-gate #define	ERR_INCMP_FMT_DIFF_2 \
137*7c478bd9Sstevel@tonic-gate 	"     format specifier mismatch in the argument (#%d).\n"
138*7c478bd9Sstevel@tonic-gate 
139*7c478bd9Sstevel@tonic-gate #define	WARN_NOCHARSET \
140*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): charset specification is missing " \
141*7c478bd9Sstevel@tonic-gate 	"in the header entry.\n" \
142*7c478bd9Sstevel@tonic-gate 	"Using the default charset.\n"
143*7c478bd9Sstevel@tonic-gate 
144*7c478bd9Sstevel@tonic-gate #define	WARN_NOCONV \
145*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): No iconv conversion from \"%s\" to \"%s\" is " \
146*7c478bd9Sstevel@tonic-gate 	"supported.\n" \
147*7c478bd9Sstevel@tonic-gate 	"Using the default charset.\n"
148*7c478bd9Sstevel@tonic-gate 
149*7c478bd9Sstevel@tonic-gate #define	WARN_DUP_ENTRIES \
150*7c478bd9Sstevel@tonic-gate 	"Lines %d (%s), %d (%s): " \
151*7c478bd9Sstevel@tonic-gate 	"duplicate \"msgid\" and \"msgstr\" entries found.\n"
152*7c478bd9Sstevel@tonic-gate 
153*7c478bd9Sstevel@tonic-gate #define	DIAG_IGNORE_DOMAIN \
154*7c478bd9Sstevel@tonic-gate 	"Line %d (%s): `domain %s' directive ignored.\n"
155*7c478bd9Sstevel@tonic-gate 
156*7c478bd9Sstevel@tonic-gate #define	DIAG_RESULTS \
157*7c478bd9Sstevel@tonic-gate 	"%d translated message(s), %d fuzzy translation(s), " \
158*7c478bd9Sstevel@tonic-gate 	"%d untranslated message(s).\n"
159*7c478bd9Sstevel@tonic-gate 
160*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
161*7c478bd9Sstevel@tonic-gate }
162*7c478bd9Sstevel@tonic-gate #endif
163*7c478bd9Sstevel@tonic-gate 
164*7c478bd9Sstevel@tonic-gate #endif	/* _ERRMSG_H */
165