Home | History | Annotate | Line # | Download | only in tests
      1 #! /bin/sh
      2 
      3 # Test --msgid and --msgstr options with Java .properties syntax.
      4 
      5 tmpfiles=""
      6 trap 'rm -fr $tmpfiles' 1 2 3 15
      7 
      8 tmpfiles="$tmpfiles mg-test6.properties"
      9 cat <<\EOF > mg-test6.properties
     10 #: argmatch.c:141
     11 #, c-format
     12 invalid\ argument\ `%s'\ for\ `%s'=ung\u00fcltiges Argument \u00bb%s\u00ab f\u00fcr \u00bb%s\u00ab
     13 
     14 #: argmatch.c:142
     15 #, c-format
     16 ambiguous\ argument\ `%s'\ for\ `%s'=mehrdeutiges Argument \u00bb%s\u00ab f\u00fcr \u00bb%s\u00ab
     17 
     18 #: argmatch.c:162
     19 Valid\ arguments\ are\:=G\u00fcltige Argumente sind\:
     20 
     21 #: copy-file.c:60
     22 #, c-format
     23 error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen
     24 
     25 #: copy-file.c:67
     26 #, c-format
     27 cannot\ open\ backup\ file\ "%s"\ for\ writing=\u00d6ffnen der Sicherungsdatei \u00bb%s\u00ab zum Schreiben fehlgeschlagen
     28 
     29 #: copy-file.c:80
     30 #, c-format
     31 error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab
     32 
     33 #: copy-file.c:86 copy-file.c:90
     34 #, c-format
     35 error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab
     36 
     37 #: copy-file.c:92
     38 #, c-format
     39 error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab
     40 
     41 #: error.c:115
     42 Unknown\ 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
     94 Java\ 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
     97 Java\ 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
    100 memory\ exhausted=virtueller Speicher ersch\u00f6pft
    101 
    102 #: pipe-bidi.c:119 pipe-bidi.c:121 pipe-in.c:136 pipe-out.c:136
    103 cannot\ 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.
    114 GSG-9=Antiterror-Einheit
    115 EOF
    116 
    117 tmpfiles="$tmpfiles mg-test6.out"
    118 : ${MSGGREP=msggrep}
    119 LC_MESSAGES=C LC_ALL= \
    120 ${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher -o mg-test6.out mg-test6.properties
    121 result=$?
    122 test $result = 0 || { rm -fr $tmpfiles; exit 1; }
    123 
    124 tmpfiles="$tmpfiles mg-test6.ok"
    125 cat <<\EOF > mg-test6.ok
    126 #: copy-file.c:60
    127 #, c-format
    128 error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen
    129 
    130 #: copy-file.c:80
    131 #, c-format
    132 error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab
    133 
    134 #: copy-file.c:86 copy-file.c:90
    135 #, c-format
    136 error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab
    137 
    138 #: copy-file.c:92
    139 #, c-format
    140 error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab
    141 
    142 #: error.c:115
    143 Unknown\ system\ error=Unbekannter Systemfehler
    144 
    145 #: obstack.c:474 xerror.c:75 xmalloc.c:56
    146 memory\ exhausted=virtueller Speicher ersch\u00f6pft
    147 EOF
    148 
    149 : ${DIFF=diff}
    150 ${DIFF} mg-test6.ok mg-test6.out
    151 result=$?
    152 
    153 rm -fr $tmpfiles
    154 
    155 exit $result
    156