1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test --domain option. 5 6cat <<\EOF > mg-test2.po 7domain "de" 8 9# German translations for GNU gettext package. 10# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. 11msgid "" 12msgstr "" 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 25msgid "%s: option `%s' is ambiguous\n" 26msgstr "%s: Option �%s� ist mehrdeutig\n" 27 28#: getopt.c:716 29#, c-format 30msgid "%s: option `--%s' doesn't allow an argument\n" 31msgstr "%s: Option �--%s� erwartet kein Argument\n" 32 33#: getopt.c:721 34#, c-format 35msgid "%s: option `%c%s' doesn't allow an argument\n" 36msgstr "%s: Option �%c%s� erwartet kein Argument\n" 37 38#: getopt.c:739 getopt.c:912 39#, c-format 40msgid "%s: option `%s' requires an argument\n" 41msgstr "%s: Option �%s� erwartet ein Argument\n" 42 43#: getopt.c:768 44#, c-format 45msgid "%s: unrecognized option `--%s'\n" 46msgstr "%s: unbekannte Option �--%s�\n" 47 48#: getopt.c:772 49#, c-format 50msgid "%s: unrecognized option `%c%s'\n" 51msgstr "%s: unbekannte Option �%c%s�\n" 52 53#: getopt.c:798 54#, c-format 55msgid "%s: illegal option -- %c\n" 56msgstr "%s: unzul�ssige Option -- %c\n" 57 58#: getopt.c:801 59#, c-format 60msgid "%s: invalid option -- %c\n" 61msgstr "%s: ung�ltige Option -- %c\n" 62 63#: getopt.c:831 getopt.c:961 64#, c-format 65msgid "%s: option requires an argument -- %c\n" 66msgstr "%s: Option erwartet ein Argument -- %c\n" 67 68#: getopt.c:878 69#, c-format 70msgid "%s: option `-W %s' is ambiguous\n" 71msgstr "%s: Option �-W %s� ist mehrdeutig\n" 72 73#: getopt.c:896 74#, c-format 75msgid "%s: option `-W %s' doesn't allow an argument\n" 76msgstr "%s: Option �-W %s� erwartet kein Argument\n" 77 78domain "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# 84msgid "" 85msgstr "" 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 98msgid "%s: option `%s' is ambiguous\n" 99msgstr "%s: l'option � %s � est ambigu�\n" 100 101#: getopt.c:716 102#, c-format 103msgid "%s: option `--%s' doesn't allow an argument\n" 104msgstr "%s: l'option � --%s � ne tol�re pas d'argument\n" 105 106#: getopt.c:721 107#, c-format 108msgid "%s: option `%c%s' doesn't allow an argument\n" 109msgstr "%s: l'option � %c%s � ne tol�re pas d'argument\n" 110 111#: getopt.c:739 getopt.c:912 112#, c-format 113msgid "%s: option `%s' requires an argument\n" 114msgstr "%s: l'option � %s � exige un argument\n" 115 116#: getopt.c:768 117#, c-format 118msgid "%s: unrecognized option `--%s'\n" 119msgstr "%s: l'option � --%s � n'est pas reconnue\n" 120 121#: getopt.c:772 122#, c-format 123msgid "%s: unrecognized option `%c%s'\n" 124msgstr "%s: l'option � %c%s � n'est pas reconnue\n" 125 126#: getopt.c:798 127#, c-format 128msgid "%s: illegal option -- %c\n" 129msgstr "%s: l'option � %c � n'est pas permise\n" 130 131#: getopt.c:801 132#, c-format 133msgid "%s: invalid option -- %c\n" 134msgstr "%s: l'option � %c � n'est pas valide\n" 135 136#: getopt.c:831 getopt.c:961 137#, c-format 138msgid "%s: option requires an argument -- %c\n" 139msgstr "%s: l'option � %c � exige un argument\n" 140 141#: getopt.c:878 142#, c-format 143msgid "%s: option `-W %s' is ambiguous\n" 144msgstr "%s: l'option � -W %s � est ambigu�\n" 145 146#: getopt.c:896 147#, c-format 148msgid "%s: option `-W %s' doesn't allow an argument\n" 149msgstr "%s: l'option � -W %s � ne tol�re pas d'argument\n" 150EOF 151 152: ${MSGGREP=msggrep} 153${MSGGREP} -M fr -o mg-test2.tmp mg-test2.po || Exit 1 154LC_ALL=C tr -d '\r' < mg-test2.tmp > mg-test2.out || Exit 1 155 156cat <<\EOF > mg-test2.ok 157domain "de" 158 159# German translations for GNU gettext package. 160# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc. 161msgid "" 162msgstr "" 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 173domain "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# 179msgid "" 180msgstr "" 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 193msgid "%s: option `%s' is ambiguous\n" 194msgstr "%s: l'option � %s � est ambigu�\n" 195 196#: getopt.c:716 197#, c-format 198msgid "%s: option `--%s' doesn't allow an argument\n" 199msgstr "%s: l'option � --%s � ne tol�re pas d'argument\n" 200 201#: getopt.c:721 202#, c-format 203msgid "%s: option `%c%s' doesn't allow an argument\n" 204msgstr "%s: l'option � %c%s � ne tol�re pas d'argument\n" 205 206#: getopt.c:739 getopt.c:912 207#, c-format 208msgid "%s: option `%s' requires an argument\n" 209msgstr "%s: l'option � %s � exige un argument\n" 210 211#: getopt.c:768 212#, c-format 213msgid "%s: unrecognized option `--%s'\n" 214msgstr "%s: l'option � --%s � n'est pas reconnue\n" 215 216#: getopt.c:772 217#, c-format 218msgid "%s: unrecognized option `%c%s'\n" 219msgstr "%s: l'option � %c%s � n'est pas reconnue\n" 220 221#: getopt.c:798 222#, c-format 223msgid "%s: illegal option -- %c\n" 224msgstr "%s: l'option � %c � n'est pas permise\n" 225 226#: getopt.c:801 227#, c-format 228msgid "%s: invalid option -- %c\n" 229msgstr "%s: l'option � %c � n'est pas valide\n" 230 231#: getopt.c:831 getopt.c:961 232#, c-format 233msgid "%s: option requires an argument -- %c\n" 234msgstr "%s: l'option � %c � exige un argument\n" 235 236#: getopt.c:878 237#, c-format 238msgid "%s: option `-W %s' is ambiguous\n" 239msgstr "%s: l'option � -W %s � est ambigu�\n" 240 241#: getopt.c:896 242#, c-format 243msgid "%s: option `-W %s' doesn't allow an argument\n" 244msgstr "%s: l'option � -W %s � ne tol�re pas d'argument\n" 245EOF 246 247: ${DIFF=diff} 248${DIFF} mg-test2.ok mg-test2.out 249result=$? 250 251exit $result 252