1#! /bin/sh 2 3# Test --msgid and --msgstr options with Java .properties syntax. 4 5tmpfiles="" 6trap 'rm -fr $tmpfiles' 1 2 3 15 7 8tmpfiles="$tmpfiles mg-test6.properties" 9cat <<\EOF > mg-test6.properties 10#: argmatch.c:141 11#, c-format 12invalid\ argument\ `%s'\ for\ `%s'=ung\u00fcltiges Argument \u00bb%s\u00ab f\u00fcr \u00bb%s\u00ab 13 14#: argmatch.c:142 15#, c-format 16ambiguous\ argument\ `%s'\ for\ `%s'=mehrdeutiges Argument \u00bb%s\u00ab f\u00fcr \u00bb%s\u00ab 17 18#: argmatch.c:162 19Valid\ arguments\ are\:=G\u00fcltige Argumente sind\: 20 21#: copy-file.c:60 22#, c-format 23error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen 24 25#: copy-file.c:67 26#, c-format 27cannot\ open\ backup\ file\ "%s"\ for\ writing=\u00d6ffnen der Sicherungsdatei \u00bb%s\u00ab zum Schreiben fehlgeschlagen 28 29#: copy-file.c:80 30#, c-format 31error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab 32 33#: copy-file.c:86 copy-file.c:90 34#, c-format 35error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab 36 37#: copy-file.c:92 38#, c-format 39error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab 40 41#: error.c:115 42Unknown\ system\ error=Unbekannter Systemfehler 43 44#: execute.c:170 execute.c:205 pipe-bidi.c:156 pipe-bidi.c:191 pipe-in.c:169 45#: pipe-in.c:205 pipe-out.c:169 pipe-out.c:205 wait-process.c:136 46#, c-format 47%s\ subprocess\ failed=Subprozess %s fehlgeschlagen 48 49#: getopt.c:691 50#, c-format 51%s\:\ option\ `%s'\ is\ ambiguous\n=%s\: Option \u00bb%s\u00ab ist mehrdeutig\n 52 53#: getopt.c:716 54#, c-format 55%s\:\ option\ `--%s'\ doesn't\ allow\ an\ argument\n=%s\: Option \u00bb--%s\u00ab erwartet kein Argument\n 56 57#: getopt.c:721 58#, c-format 59%s\:\ option\ `%c%s'\ doesn't\ allow\ an\ argument\n=%s\: Option \u00bb%c%s\u00ab erwartet kein Argument\n 60 61#: getopt.c:739 getopt.c:912 62#, c-format 63%s\:\ option\ `%s'\ requires\ an\ argument\n=%s\: Option \u00bb%s\u00ab erwartet ein Argument\n 64 65#: getopt.c:768 66#, c-format 67%s\:\ unrecognized\ option\ `--%s'\n=%s\: unbekannte Option \u00bb--%s\u00ab\n 68 69#: getopt.c:772 70#, c-format 71%s\:\ unrecognized\ option\ `%c%s'\n=%s\: unbekannte Option \u00bb%c%s\u00ab\n 72 73#: getopt.c:798 74#, c-format 75%s\:\ illegal\ option\ --\ %c\n=%s\: unzul\u00e4ssige Option -- %c\n 76 77#: getopt.c:801 78#, c-format 79%s\:\ invalid\ option\ --\ %c\n=%s\: ung\u00fcltige Option -- %c\n 80 81#: getopt.c:831 getopt.c:961 82#, c-format 83%s\:\ option\ requires\ an\ argument\ --\ %c\n=%s\: Option erwartet ein Argument -- %c\n 84 85#: getopt.c:878 86#, c-format 87%s\:\ option\ `-W\ %s'\ is\ ambiguous\n=%s\: Option \u00bb-W %s\u00ab ist mehrdeutig\n 88 89#: getopt.c:896 90#, c-format 91%s\:\ option\ `-W\ %s'\ doesn't\ allow\ an\ argument\n=%s\: Option \u00bb-W %s\u00ab erwartet kein Argument\n 92 93#: javacomp.c:465 94Java\ compiler\ not\ found,\ try\ installing\ gcj\ or\ set\ $JAVAC=Java-Compiler nicht gefunden; bitte \u00bbgcj\u00ab installieren oder $JAVAC setzen 95 96#: javaexec.c:404 97Java\ virtual\ machine\ not\ found,\ try\ installing\ gij\ or\ set\ $JAVA=Virtuelle Java-Maschine nicht gefunden; bitte \u00bbgcj\u00ab installieren oder\n$JAVA setzen 98 99#: obstack.c:474 xerror.c:75 xmalloc.c:56 100memory\ exhausted=virtueller Speicher ersch\u00f6pft 101 102#: pipe-bidi.c:119 pipe-bidi.c:121 pipe-in.c:136 pipe-out.c:136 103cannot\ create\ pipe=Es ist nicht m\u00f6glich, eine Pipe zu erzeugen 104 105#: wait-process.c:117 106#, c-format 107%s\ subprocess=Subprozess %s 108 109#: wait-process.c:129 110#, c-format 111%s\ subprocess\ got\ fatal\ signal=Subprozess %s hat ein fatales Signal erhalten 112 113# A pattern specified for the msgid only must not be matched with the msgstr. 114GSG-9=Antiterror-Einheit 115EOF 116 117tmpfiles="$tmpfiles mg-test6.out" 118: ${MSGGREP=msggrep} 119LC_MESSAGES=C LC_ALL= \ 120${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher mg-test6.properties -o mg-test6.out 121result=$? 122test $result = 0 || { rm -fr $tmpfiles; exit 1; } 123 124tmpfiles="$tmpfiles mg-test6.ok" 125cat <<\EOF > mg-test6.ok 126#: copy-file.c:60 127#, c-format 128error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen 129 130#: copy-file.c:80 131#, c-format 132error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab 133 134#: copy-file.c:86 copy-file.c:90 135#, c-format 136error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab 137 138#: copy-file.c:92 139#, c-format 140error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab 141 142#: error.c:115 143Unknown\ system\ error=Unbekannter Systemfehler 144 145#: obstack.c:474 xerror.c:75 xmalloc.c:56 146memory\ exhausted=virtueller Speicher ersch\u00f6pft 147EOF 148 149: ${DIFF=diff} 150${DIFF} mg-test6.ok mg-test6.out 151result=$? 152 153rm -fr $tmpfiles 154 155exit $result 156