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