Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msggrep-2
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test --domain option.
5
6 cat <<\EOF > mg-test2.po
7 domain "de"
8
9 # German translations for GNU gettext package.
10 # Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: GNU gettext 0.11-pre1\n"
14 "POT-Creation-Date: 2001-12-08 20:33+0100\n"
15 "PO-Revision-Date: 2001-11-04 12:25+0100\n"
16 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
17 "Language-Team: German <de@li.org>\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=ISO-8859-1\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
22
23 #: getopt.c:691
24 #, c-format
25 msgid "%s: option `%s' is ambiguous\n"
26 msgstr "%s: Option »%s« ist mehrdeutig\n"
27
28 #: getopt.c:716
29 #, c-format
30 msgid "%s: option `--%s' doesn't allow an argument\n"
31 msgstr "%s: Option »--%s« erwartet kein Argument\n"
32
33 #: getopt.c:721
34 #, c-format
35 msgid "%s: option `%c%s' doesn't allow an argument\n"
36 msgstr "%s: Option »%c%s« erwartet kein Argument\n"
37
38 #: getopt.c:739 getopt.c:912
39 #, c-format
40 msgid "%s: option `%s' requires an argument\n"
41 msgstr "%s: Option »%s« erwartet ein Argument\n"
42
43 #: getopt.c:768
44 #, c-format
45 msgid "%s: unrecognized option `--%s'\n"
46 msgstr "%s: unbekannte Option »--%s«\n"
47
48 #: getopt.c:772
49 #, c-format
50 msgid "%s: unrecognized option `%c%s'\n"
51 msgstr "%s: unbekannte Option »%c%s«\n"
52
53 #: getopt.c:798
54 #, c-format
55 msgid "%s: illegal option -- %c\n"
56 msgstr "%s: unzulässige Option -- %c\n"
57
58 #: getopt.c:801
59 #, c-format
60 msgid "%s: invalid option -- %c\n"
61 msgstr "%s: ungültige Option -- %c\n"
62
63 #: getopt.c:831 getopt.c:961
64 #, c-format
65 msgid "%s: option requires an argument -- %c\n"
66 msgstr "%s: Option erwartet ein Argument -- %c\n"
67
68 #: getopt.c:878
69 #, c-format
70 msgid "%s: option `-W %s' is ambiguous\n"
71 msgstr "%s: Option »-W %s« ist mehrdeutig\n"
72
73 #: getopt.c:896
74 #, c-format
75 msgid "%s: option `-W %s' doesn't allow an argument\n"
76 msgstr "%s: Option »-W %s« erwartet kein Argument\n"
77
78 domain "fr"
79
80 # Messages français pour GNU gettext.
81 # Copyright © 1996, 1997, 1998 Free Software Foundation, Inc.
82 # François Pinard <pinard@iro.umontreal.ca>, 1996.
83 #
84 msgid ""
85 msgstr ""
86 "Project-Id-Version: GNU gettext 0.10.35\n"
87 "POT-Creation-Date: 2001-12-08 20:33+0100\n"
88 "PO-Revision-Date: 1998-05-04 10:03-04:00\n"
89 "Last-Translator: François Pinard <pinard@iro.umontreal.ca>\n"
90 "Language-Team: French <fr@li.org>\n"
91 "MIME-Version: 1.0\n"
92 "Content-Type: text/plain; charset=ISO-8859-1\n"
93 "Content-Transfer-Encoding: 8bit\n"
94 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
95
96 #: getopt.c:691
97 #, c-format
98 msgid "%s: option `%s' is ambiguous\n"
99 msgstr "%s: l'option « %s » est ambiguë\n"
100
101 #: getopt.c:716
102 #, c-format
103 msgid "%s: option `--%s' doesn't allow an argument\n"
104 msgstr "%s: l'option « --%s » ne tolère pas d'argument\n"
105
106 #: getopt.c:721
107 #, c-format
108 msgid "%s: option `%c%s' doesn't allow an argument\n"
109 msgstr "%s: l'option « %c%s » ne tolère pas d'argument\n"
110
111 #: getopt.c:739 getopt.c:912
112 #, c-format
113 msgid "%s: option `%s' requires an argument\n"
114 msgstr "%s: l'option « %s » exige un argument\n"
115
116 #: getopt.c:768
117 #, c-format
118 msgid "%s: unrecognized option `--%s'\n"
119 msgstr "%s: l'option « --%s » n'est pas reconnue\n"
120
121 #: getopt.c:772
122 #, c-format
123 msgid "%s: unrecognized option `%c%s'\n"
124 msgstr "%s: l'option « %c%s » n'est pas reconnue\n"
125
126 #: getopt.c:798
127 #, c-format
128 msgid "%s: illegal option -- %c\n"
129 msgstr "%s: l'option « %c » n'est pas permise\n"
130
131 #: getopt.c:801
132 #, c-format
133 msgid "%s: invalid option -- %c\n"
134 msgstr "%s: l'option « %c » n'est pas valide\n"
135
136 #: getopt.c:831 getopt.c:961
137 #, c-format
138 msgid "%s: option requires an argument -- %c\n"
139 msgstr "%s: l'option « %c » exige un argument\n"
140
141 #: getopt.c:878
142 #, c-format
143 msgid "%s: option `-W %s' is ambiguous\n"
144 msgstr "%s: l'option « -W %s » est ambiguë\n"
145
146 #: getopt.c:896
147 #, c-format
148 msgid "%s: option `-W %s' doesn't allow an argument\n"
149 msgstr "%s: l'option « -W %s » ne tolère pas d'argument\n"
150 EOF
151
152 : ${MSGGREP=msggrep}
153 ${MSGGREP} -M fr -o mg-test2.tmp mg-test2.po || exit 1
154 LC_ALL=C tr -d '\r' < mg-test2.tmp > mg-test2.out || exit 1
155
156 cat <<\EOF > mg-test2.ok
157 domain "de"
158
159 # German translations for GNU gettext package.
160 # Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
161 msgid ""
162 msgstr ""
163 "Project-Id-Version: GNU gettext 0.11-pre1\n"
164 "POT-Creation-Date: 2001-12-08 20:33+0100\n"
165 "PO-Revision-Date: 2001-11-04 12:25+0100\n"
166 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
167 "Language-Team: German <de@li.org>\n"
168 "MIME-Version: 1.0\n"
169 "Content-Type: text/plain; charset=ISO-8859-1\n"
170 "Content-Transfer-Encoding: 8bit\n"
171 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
172
173 domain "fr"
174
175 # Messages français pour GNU gettext.
176 # Copyright © 1996, 1997, 1998 Free Software Foundation, Inc.
177 # François Pinard <pinard@iro.umontreal.ca>, 1996.
178 #
179 msgid ""
180 msgstr ""
181 "Project-Id-Version: GNU gettext 0.10.35\n"
182 "POT-Creation-Date: 2001-12-08 20:33+0100\n"
183 "PO-Revision-Date: 1998-05-04 10:03-04:00\n"
184 "Last-Translator: François Pinard <pinard@iro.umontreal.ca>\n"
185 "Language-Team: French <fr@li.org>\n"
186 "MIME-Version: 1.0\n"
187 "Content-Type: text/plain; charset=ISO-8859-1\n"
188 "Content-Transfer-Encoding: 8bit\n"
189 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
190
191 #: getopt.c:691
192 #, c-format
193 msgid "%s: option `%s' is ambiguous\n"
194 msgstr "%s: l'option « %s » est ambiguë\n"
195
196 #: getopt.c:716
197 #, c-format
198 msgid "%s: option `--%s' doesn't allow an argument\n"
199 msgstr "%s: l'option « --%s » ne tolère pas d'argument\n"
200
201 #: getopt.c:721
202 #, c-format
203 msgid "%s: option `%c%s' doesn't allow an argument\n"
204 msgstr "%s: l'option « %c%s » ne tolère pas d'argument\n"
205
206 #: getopt.c:739 getopt.c:912
207 #, c-format
208 msgid "%s: option `%s' requires an argument\n"
209 msgstr "%s: l'option « %s » exige un argument\n"
210
211 #: getopt.c:768
212 #, c-format
213 msgid "%s: unrecognized option `--%s'\n"
214 msgstr "%s: l'option « --%s » n'est pas reconnue\n"
215
216 #: getopt.c:772
217 #, c-format
218 msgid "%s: unrecognized option `%c%s'\n"
219 msgstr "%s: l'option « %c%s » n'est pas reconnue\n"
220
221 #: getopt.c:798
222 #, c-format
223 msgid "%s: illegal option -- %c\n"
224 msgstr "%s: l'option « %c » n'est pas permise\n"
225
226 #: getopt.c:801
227 #, c-format
228 msgid "%s: invalid option -- %c\n"
229 msgstr "%s: l'option « %c » n'est pas valide\n"
230
231 #: getopt.c:831 getopt.c:961
232 #, c-format
233 msgid "%s: option requires an argument -- %c\n"
234 msgstr "%s: l'option « %c » exige un argument\n"
235
236 #: getopt.c:878
237 #, c-format
238 msgid "%s: option `-W %s' is ambiguous\n"
239 msgstr "%s: l'option « -W %s » est ambiguë\n"
240
241 #: getopt.c:896
242 #, c-format
243 msgid "%s: option `-W %s' doesn't allow an argument\n"
244 msgstr "%s: l'option « -W %s » ne tolère pas d'argument\n"
245 EOF
246
247 : ${DIFF=diff}
248 ${DIFF} mg-test2.ok mg-test2.out
249 result=$?
250
251 exit $result