244 lines
6.2 KiB
Plaintext
244 lines
6.2 KiB
Plaintext
|
#! /bin/sh
|
|||
|
|
|||
|
# Test multiple -e and multiple -f options.
|
|||
|
|
|||
|
tmpfiles=""
|
|||
|
trap 'rm -fr $tmpfiles' 1 2 3 15
|
|||
|
|
|||
|
tmpfiles="$tmpfiles mg-test4.po"
|
|||
|
cat <<\EOF > mg-test4.po
|
|||
|
# German translations for GNU gettext package.
|
|||
|
# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
|
|||
|
msgid ""
|
|||
|
msgstr ""
|
|||
|
"Project-Id-Version: GNU gettext 0.11-pre1\n"
|
|||
|
"POT-Creation-Date: 2001-12-08 20:33+0100\n"
|
|||
|
"PO-Revision-Date: 2001-11-04 12:25+0100\n"
|
|||
|
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
|
|||
|
"Language-Team: German <de@li.org>\n"
|
|||
|
"MIME-Version: 1.0\n"
|
|||
|
"Content-Type: text/plain; charset=ISO-8859-1\n"
|
|||
|
"Content-Transfer-Encoding: 8bit\n"
|
|||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|||
|
|
|||
|
#: argmatch.c:141
|
|||
|
#, c-format
|
|||
|
msgid "invalid argument `%s' for `%s'"
|
|||
|
msgstr "ung<6E>ltiges Argument <20>%s<> f<>r <20>%s<>"
|
|||
|
|
|||
|
#: argmatch.c:142
|
|||
|
#, c-format
|
|||
|
msgid "ambiguous argument `%s' for `%s'"
|
|||
|
msgstr "mehrdeutiges Argument <20>%s<> f<>r <20>%s<>"
|
|||
|
|
|||
|
#: argmatch.c:162
|
|||
|
msgid "Valid arguments are:"
|
|||
|
msgstr "G<>ltige Argumente sind:"
|
|||
|
|
|||
|
#: copy-file.c:60
|
|||
|
#, c-format
|
|||
|
msgid "error while opening \"%s\" for reading"
|
|||
|
msgstr "<22>ffnen der Datei <20>%s<> zum Lesen fehlgeschlagen"
|
|||
|
|
|||
|
#: copy-file.c:67
|
|||
|
#, c-format
|
|||
|
msgid "cannot open backup file \"%s\" for writing"
|
|||
|
msgstr "<22>ffnen der Sicherungsdatei <20>%s<> zum Schreiben fehlgeschlagen"
|
|||
|
|
|||
|
#: copy-file.c:80
|
|||
|
#, c-format
|
|||
|
msgid "error reading \"%s\""
|
|||
|
msgstr "Fehler beim Lesen von <20>%s<>"
|
|||
|
|
|||
|
#: copy-file.c:86 copy-file.c:90
|
|||
|
#, c-format
|
|||
|
msgid "error writing \"%s\""
|
|||
|
msgstr "Fehler beim Schreiben von <20>%s<>"
|
|||
|
|
|||
|
#: copy-file.c:92
|
|||
|
#, c-format
|
|||
|
msgid "error after reading \"%s\""
|
|||
|
msgstr "Fehler nach dem Lesen von <20>%s<>"
|
|||
|
|
|||
|
#: error.c:115
|
|||
|
msgid "Unknown system error"
|
|||
|
msgstr "Unbekannter Systemfehler"
|
|||
|
|
|||
|
#: execute.c:170 execute.c:205 pipe-bidi.c:156 pipe-bidi.c:191 pipe-in.c:169
|
|||
|
#: pipe-in.c:205 pipe-out.c:169 pipe-out.c:205 wait-process.c:136
|
|||
|
#, c-format
|
|||
|
msgid "%s subprocess failed"
|
|||
|
msgstr "Subprozess %s fehlgeschlagen"
|
|||
|
|
|||
|
#: getopt.c:691
|
|||
|
#, c-format
|
|||
|
msgid "%s: option `%s' is ambiguous\n"
|
|||
|
msgstr "%s: Option <20>%s<> ist mehrdeutig\n"
|
|||
|
|
|||
|
#: getopt.c:716
|
|||
|
#, c-format
|
|||
|
msgid "%s: option `--%s' doesn't allow an argument\n"
|
|||
|
msgstr "%s: Option <20>--%s<> erwartet kein Argument\n"
|
|||
|
|
|||
|
#: getopt.c:721
|
|||
|
#, c-format
|
|||
|
msgid "%s: option `%c%s' doesn't allow an argument\n"
|
|||
|
msgstr "%s: Option <20>%c%s<> erwartet kein Argument\n"
|
|||
|
|
|||
|
#: getopt.c:739 getopt.c:912
|
|||
|
#, c-format
|
|||
|
msgid "%s: option `%s' requires an argument\n"
|
|||
|
msgstr "%s: Option <20>%s<> erwartet ein Argument\n"
|
|||
|
|
|||
|
#: getopt.c:768
|
|||
|
#, c-format
|
|||
|
msgid "%s: unrecognized option `--%s'\n"
|
|||
|
msgstr "%s: unbekannte Option <20>--%s<>\n"
|
|||
|
|
|||
|
#: getopt.c:772
|
|||
|
#, c-format
|
|||
|
msgid "%s: unrecognized option `%c%s'\n"
|
|||
|
msgstr "%s: unbekannte Option <20>%c%s<>\n"
|
|||
|
|
|||
|
#: getopt.c:798
|
|||
|
#, c-format
|
|||
|
msgid "%s: illegal option -- %c\n"
|
|||
|
msgstr "%s: unzul<75>ssige Option -- %c\n"
|
|||
|
|
|||
|
#: getopt.c:801
|
|||
|
#, c-format
|
|||
|
msgid "%s: invalid option -- %c\n"
|
|||
|
msgstr "%s: ung<6E>ltige Option -- %c\n"
|
|||
|
|
|||
|
#: getopt.c:831 getopt.c:961
|
|||
|
#, c-format
|
|||
|
msgid "%s: option requires an argument -- %c\n"
|
|||
|
msgstr "%s: Option erwartet ein Argument -- %c\n"
|
|||
|
|
|||
|
#: getopt.c:878
|
|||
|
#, c-format
|
|||
|
msgid "%s: option `-W %s' is ambiguous\n"
|
|||
|
msgstr "%s: Option <20>-W %s<> ist mehrdeutig\n"
|
|||
|
|
|||
|
#: getopt.c:896
|
|||
|
#, c-format
|
|||
|
msgid "%s: option `-W %s' doesn't allow an argument\n"
|
|||
|
msgstr "%s: Option <20>-W %s<> erwartet kein Argument\n"
|
|||
|
|
|||
|
#: javacomp.c:465
|
|||
|
msgid "Java compiler not found, try installing gcj or set $JAVAC"
|
|||
|
msgstr ""
|
|||
|
"Java-Compiler nicht gefunden; bitte <20>gcj<63> installieren oder $JAVAC setzen"
|
|||
|
|
|||
|
#: javaexec.c:404
|
|||
|
msgid "Java virtual machine not found, try installing gij or set $JAVA"
|
|||
|
msgstr ""
|
|||
|
"Virtuelle Java-Maschine nicht gefunden; bitte <20>gcj<63> installieren oder\n"
|
|||
|
"$JAVA setzen"
|
|||
|
|
|||
|
#: obstack.c:474 xerror.c:75 xmalloc.c:56
|
|||
|
msgid "memory exhausted"
|
|||
|
msgstr "virtueller Speicher ersch<63>pft"
|
|||
|
|
|||
|
#: pipe-bidi.c:119 pipe-bidi.c:121 pipe-in.c:136 pipe-out.c:136
|
|||
|
msgid "cannot create pipe"
|
|||
|
msgstr "Es ist nicht m<>glich, eine Pipe zu erzeugen"
|
|||
|
|
|||
|
#: wait-process.c:117
|
|||
|
#, c-format
|
|||
|
msgid "%s subprocess"
|
|||
|
msgstr "Subprozess %s"
|
|||
|
|
|||
|
#: wait-process.c:129
|
|||
|
#, c-format
|
|||
|
msgid "%s subprocess got fatal signal"
|
|||
|
msgstr "Subprozess %s hat ein fatales Signal erhalten"
|
|||
|
EOF
|
|||
|
|
|||
|
tmpfiles="$tmpfiles mg-test4.in1"
|
|||
|
echo 'invalid' > mg-test4.in1
|
|||
|
|
|||
|
tmpfiles="$tmpfiles mg-test4.in2"
|
|||
|
echo 'illegal' > mg-test4.in2
|
|||
|
|
|||
|
tmpfiles="$tmpfiles mg-test4.out mg-test4.err"
|
|||
|
: ${MSGGREP=msggrep}
|
|||
|
LC_MESSAGES=C LC_ALL= \
|
|||
|
${MSGGREP} -K -e error -f mg-test4.in1 -f mg-test4.in2 -e cannot mg-test4.po -o mg-test4.out > mg-test4.err 2>&1
|
|||
|
result=$?
|
|||
|
cat mg-test4.err | grep -v 'warning: Locale charset' | grep -v '^ '
|
|||
|
test $result = 0 || { rm -fr $tmpfiles; exit 1; }
|
|||
|
|
|||
|
tmpfiles="$tmpfiles mg-test4.ok"
|
|||
|
cat <<\EOF > mg-test4.ok
|
|||
|
# German translations for GNU gettext package.
|
|||
|
# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
|
|||
|
msgid ""
|
|||
|
msgstr ""
|
|||
|
"Project-Id-Version: GNU gettext 0.11-pre1\n"
|
|||
|
"POT-Creation-Date: 2001-12-08 20:33+0100\n"
|
|||
|
"PO-Revision-Date: 2001-11-04 12:25+0100\n"
|
|||
|
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
|
|||
|
"Language-Team: German <de@li.org>\n"
|
|||
|
"MIME-Version: 1.0\n"
|
|||
|
"Content-Type: text/plain; charset=ISO-8859-1\n"
|
|||
|
"Content-Transfer-Encoding: 8bit\n"
|
|||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|||
|
|
|||
|
#: argmatch.c:141
|
|||
|
#, c-format
|
|||
|
msgid "invalid argument `%s' for `%s'"
|
|||
|
msgstr "ung<6E>ltiges Argument <20>%s<> f<>r <20>%s<>"
|
|||
|
|
|||
|
#: copy-file.c:60
|
|||
|
#, c-format
|
|||
|
msgid "error while opening \"%s\" for reading"
|
|||
|
msgstr "<22>ffnen der Datei <20>%s<> zum Lesen fehlgeschlagen"
|
|||
|
|
|||
|
#: copy-file.c:67
|
|||
|
#, c-format
|
|||
|
msgid "cannot open backup file \"%s\" for writing"
|
|||
|
msgstr "<22>ffnen der Sicherungsdatei <20>%s<> zum Schreiben fehlgeschlagen"
|
|||
|
|
|||
|
#: copy-file.c:80
|
|||
|
#, c-format
|
|||
|
msgid "error reading \"%s\""
|
|||
|
msgstr "Fehler beim Lesen von <20>%s<>"
|
|||
|
|
|||
|
#: copy-file.c:86 copy-file.c:90
|
|||
|
#, c-format
|
|||
|
msgid "error writing \"%s\""
|
|||
|
msgstr "Fehler beim Schreiben von <20>%s<>"
|
|||
|
|
|||
|
#: copy-file.c:92
|
|||
|
#, c-format
|
|||
|
msgid "error after reading \"%s\""
|
|||
|
msgstr "Fehler nach dem Lesen von <20>%s<>"
|
|||
|
|
|||
|
#: error.c:115
|
|||
|
msgid "Unknown system error"
|
|||
|
msgstr "Unbekannter Systemfehler"
|
|||
|
|
|||
|
#: getopt.c:798
|
|||
|
#, c-format
|
|||
|
msgid "%s: illegal option -- %c\n"
|
|||
|
msgstr "%s: unzul<75>ssige Option -- %c\n"
|
|||
|
|
|||
|
#: getopt.c:801
|
|||
|
#, c-format
|
|||
|
msgid "%s: invalid option -- %c\n"
|
|||
|
msgstr "%s: ung<6E>ltige Option -- %c\n"
|
|||
|
|
|||
|
#: pipe-bidi.c:119 pipe-bidi.c:121 pipe-in.c:136 pipe-out.c:136
|
|||
|
msgid "cannot create pipe"
|
|||
|
msgstr "Es ist nicht m<>glich, eine Pipe zu erzeugen"
|
|||
|
EOF
|
|||
|
|
|||
|
: ${DIFF=diff}
|
|||
|
${DIFF} mg-test4.ok mg-test4.out
|
|||
|
result=$?
|
|||
|
|
|||
|
rm -fr $tmpfiles
|
|||
|
|
|||
|
exit $result
|