8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / msgfmt / gnu_errmsg.h
blob9a94954ee5dcee62518f46ad7f6a20d314df7c46
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
23 * Copyright (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _ERRMSG_H
28 #define _ERRMSG_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
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"
43 #define ERR_PRIME \
44 "Internal error: no prime number under 1100 found for %d.\n"
46 #define ERR_ERROR_FOUND \
47 "%d error(s) found.\n"
49 #define ERR_INVALID_CHAR \
50 "Line %d (%s): Invalid character found.\n"
52 #define ERR_INTERNAL \
53 "Line %d (%s): Internal error.\n"
55 #define ERR_LOCATION \
56 "Line %d (%s): "
58 #define ERR_NO_MSGSTR \
59 "Line %d (%s): missing \"msgstr\" corresponding to \"msgid\".\n"
61 #define ERR_NO_MSGSTRS \
62 "Line %d (%s): missing \"msgstr[]\" corresponding to \"msgid\".\n"
64 #define ERR_NO_MSGID_PLURAL \
65 "Line %d (%s): missing \"msgid_plural\" corresponding to \"msgid\".\n"
67 #define ERR_INVALID_PLURALS \
68 "Line %d (%s): invalid index for \"msgstr[]\".\n"
70 #define ERR_UNEXP_EOF \
71 "Line %d (%s): unexpected EOF found.\n"
73 #define ERR_UNEXP_EOL \
74 "Line %d (%s): unexpected EOL found.\n"
76 #define ERR_DUP_ENTRIES \
77 "Lines %d (%s), %d (%s): " \
78 "duplicate \"msgid\" entries found.\n"
80 #define ERR_BEGIN_NEWLINE_1 \
81 "Lines %d, %d (%s): \"msgid\" begins with newline, " \
82 "but \"msgstr\" doesn't.\n"
84 #define ERR_BEGIN_NEWLINE_2 \
85 "Lines %d, %d (%s): \"msgstr\" begins with newline, " \
86 "but \"msgid\" doesn't.\n"
88 #define ERR_BEGIN_NEWLINE_3 \
89 "Lines %d, %d (%s): \"msgid\" begins with newline, " \
90 "but \"msgid_plural\" doesn't.\n"
92 #define ERR_BEGIN_NEWLINE_4 \
93 "Lines %d, %d (%s): \"msgid_plural\" begins with newline, " \
94 "but \"msgid\" doesn't.\n"
96 #define ERR_BEGIN_NEWLINE_5 \
97 "Lines %d, %d (%s): \"msgid\" begins with newline, " \
98 "but \"msgidstr[%d]\" doesn't.\n"
100 #define ERR_BEGIN_NEWLINE_6 \
101 "Lines %d, %d (%s): \"msgstr[%d]\" begins with newline, " \
102 "but \"msgid\" doesn't.\n"
104 #define ERR_END_NEWLINE_1 \
105 "Lines %d, %d (%s): \"msgid\" ends with newline, " \
106 "but \"msgstr\" doesn't.\n"
108 #define ERR_END_NEWLINE_2 \
109 "Lines %d, %d (%s): \"msgstr\" ends with newline, " \
110 "but \"msgid\" doesn't.\n"
112 #define ERR_END_NEWLINE_3 \
113 "Lines %d, %d (%s): \"msgid\" ends with newline, " \
114 "but \"msgid_plural\" doesn't.\n"
116 #define ERR_END_NEWLINE_4 \
117 "Lines %d, %d (%s): \"msgid_plural\" ends with newline, " \
118 "but \"msgid\" doesn't.\n"
120 #define ERR_END_NEWLINE_5 \
121 "Lines %d, %d (%s): \"msgid\" ends with newline, " \
122 "but \"msgstr[%d]\" doesn't.\n"
124 #define ERR_END_NEWLINE_6 \
125 "Lines %d, %d (%s): \"msgstr[%d]\" ends with newline, " \
126 "but \"msgid\" doesn't.\n"
128 #define ERR_INVALID_FMT \
129 "Lines %d (%s): invalid printf-format.\n"
131 #define ERR_INCMP_FMT \
132 "Lines %d, %d (%s): incompatible printf-format.\n"
134 #define ERR_INCMP_FMT_DIFF_1 \
135 " %d format specifier(s) in \"msgid\", but " \
136 "%d format specifier(s) in \"msgstr\".\n"
138 #define ERR_INCMP_FMT_DIFF_2 \
139 " format specifier mismatch in the argument (#%d).\n"
141 #define WARN_NOCHARSET \
142 "Line %d (%s): charset specification is missing " \
143 "in the header entry.\n" \
144 "Using the default charset.\n"
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"
151 #define WARN_DUP_ENTRIES \
152 "Lines %d (%s), %d (%s): " \
153 "duplicate \"msgid\" and \"msgstr\" entries found.\n"
155 #define DIAG_IGNORE_DOMAIN \
156 "Line %d (%s): `domain %s' directive ignored.\n"
158 #define DIAG_RESULTS \
159 "%d translated message(s), %d fuzzy translation(s), " \
160 "%d untranslated message(s).\n"
162 #ifdef __cplusplus
164 #endif
166 #endif /* _ERRMSG_H */