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