• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
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.tmp mg-test6.out"
118: ${MSGGREP=msggrep}
119LC_MESSAGES=C LC_ALL= \
120${MSGGREP} --properties-input --properties-output -K -e error -T -e Speicher -o mg-test6.tmp mg-test6.properties
121result=$?
122test $result = 0 || { rm -fr $tmpfiles; exit 1; }
123tr -d '\r' < mg-test6.tmp > mg-test6.out
124test $? = 0 || { rm -fr $tmpfiles; exit 1; }
125
126tmpfiles="$tmpfiles mg-test6.ok"
127cat <<\EOF > mg-test6.ok
128#: copy-file.c:60
129#, c-format
130error\ while\ opening\ "%s"\ for\ reading=\u00d6ffnen der Datei \u00bb%s\u00ab zum Lesen fehlgeschlagen
131
132#: copy-file.c:80
133#, c-format
134error\ reading\ "%s"=Fehler beim Lesen von \u00bb%s\u00ab
135
136#: copy-file.c:86 copy-file.c:90
137#, c-format
138error\ writing\ "%s"=Fehler beim Schreiben von \u00bb%s\u00ab
139
140#: copy-file.c:92
141#, c-format
142error\ after\ reading\ "%s"=Fehler nach dem Lesen von \u00bb%s\u00ab
143
144#: error.c:115
145Unknown\ system\ error=Unbekannter Systemfehler
146
147#: obstack.c:474 xerror.c:75 xmalloc.c:56
148memory\ exhausted=virtueller Speicher ersch\u00f6pft
149EOF
150
151: ${DIFF=diff}
152${DIFF} mg-test6.ok mg-test6.out
153result=$?
154
155rm -fr $tmpfiles
156
157exit $result
158