~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msggrep-2

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

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