2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test --msgid and --msgstr options with Java .properties syntax.
6 cat <<\EOF > mg-test6.properties
9 invalid\ argument\ `%s'\ for\ `%s'=ung\u00fcltiges Argument \u00bb%s\u00ab f\u00fcr \u00bb%s\u00ab
13 ambiguous\ argument\ `%s'\ for\ `%s'=mehrdeutiges Argument \u00bb%s\u00ab f\u00fcr \u00bb%s\u00ab
16 Valid\ arguments\ are\:=G\u00fcltige Argumente sind\:
20 error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen
24 cannot\ open\ backup\ file\ "%s"\ for\ writing=\u00d6ffnen der Sicherungsdatei \u00bb%s\u00ab zum Schreiben fehlgeschlagen
28 error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab
30 #: copy-file.c:86 copy-file.c:90
32 error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab
36 error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab
39 Unknown\ system\ error=Unbekannter Systemfehler
41 #: execute.c:170 execute.c:205 pipe-bidi.c:156 pipe-bidi.c:191 pipe-in.c:169
42 #: pipe-in.c:205 pipe-out.c:169 pipe-out.c:205 wait-process.c:136
44 %s\ subprocess\ failed=Subprozess %s fehlgeschlagen
48 %s\:\ option\ `%s'\ is\ ambiguous\n=%s\: Option \u00bb%s\u00ab ist mehrdeutig\n
52 %s\:\ option\ `--%s'\ doesn't\ allow\ an\ argument\n=%s\: Option \u00bb--%s\u00ab erwartet kein Argument\n
56 %s\:\ option\ `%c%s'\ doesn't\ allow\ an\ argument\n=%s\: Option \u00bb%c%s\u00ab erwartet kein Argument\n
58 #: getopt.c:739 getopt.c:912
60 %s\:\ option\ `%s'\ requires\ an\ argument\n=%s\: Option \u00bb%s\u00ab erwartet ein Argument\n
64 %s\:\ unrecognized\ option\ `--%s'\n=%s\: unbekannte Option \u00bb--%s\u00ab\n
68 %s\:\ unrecognized\ option\ `%c%s'\n=%s\: unbekannte Option \u00bb%c%s\u00ab\n
72 %s\:\ illegal\ option\ --\ %c\n=%s\: unzul\u00e4ssige Option -- %c\n
76 %s\:\ invalid\ option\ --\ %c\n=%s\: ung\u00fcltige Option -- %c\n
78 #: getopt.c:831 getopt.c:961
80 %s\:\ option\ requires\ an\ argument\ --\ %c\n=%s\: Option erwartet ein Argument -- %c\n
84 %s\:\ option\ `-W\ %s'\ is\ ambiguous\n=%s\: Option \u00bb-W %s\u00ab ist mehrdeutig\n
88 %s\:\ option\ `-W\ %s'\ doesn't\ allow\ an\ argument\n=%s\: Option \u00bb-W %s\u00ab erwartet kein Argument\n
91 Java\ compiler\ not\ found,\ try\ installing\ gcj\ or\ set\ $JAVAC=Java-Compiler nicht gefunden; bitte \u00bbgcj\u00ab installieren oder $JAVAC setzen
94 Java\ virtual\ machine\ not\ found,\ try\ installing\ gij\ or\ set\ $JAVA=Virtuelle Java-Maschine nicht gefunden; bitte \u00bbgcj\u00ab installieren oder\n$JAVA setzen
96 #: obstack.c:474 xerror.c:75 xmalloc.c:56
97 memory\ exhausted=virtueller Speicher ersch\u00f6pft
99 #: pipe-bidi.c:119 pipe-bidi.c:121 pipe-in.c:136 pipe-out.c:136
100 cannot\ create\ pipe=Es ist nicht m\u00f6glich, eine Pipe zu erzeugen
102 #: wait-process.c:117
104 %s\ subprocess=Subprozess %s
106 #: wait-process.c:129
108 %s\ subprocess\ got\ fatal\ signal=Subprozess %s hat ein fatales Signal erhalten
110 # A pattern specified for the msgid only must not be matched with the msgstr.
111 GSG-9=Antiterror-Einheit
115 LC_MESSAGES=C LC_ALL= \
116 ${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher -o mg-test6.tmp mg-test6.properties
118 test $result = 0 || { exit 1; }
119 LC_ALL=C tr -d '\r' < mg-test6.tmp > mg-test6.out || exit 1
121 cat <<\EOF > mg-test6.ok
124 error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen
128 error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab
130 #: copy-file.c:86 copy-file.c:90
132 error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab
136 error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab
139 Unknown\ system\ error=Unbekannter Systemfehler
141 #: obstack.c:474 xerror.c:75 xmalloc.c:56
142 memory\ exhausted=virtueller Speicher ersch\u00f6pft
146 ${DIFF} mg-test6.ok mg-test6.out