Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgattrib-19
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test --empty option.
5
6 cat <<\EOF > ma-test19.po
7 # HEADER.
8 #
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: Bonnie Tyler\n"
12 "Content-Type: text/plain; charset=ISO-8859-1\n"
13 "Content-Transfer-Encoding: 8bit\n"
14 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
16 #: married-men:4
17 #, fuzzy
18 msgid "The world is full of married men"
19 msgstr "So viele verheiratete Männer"
20
21 #: married-men:5
22 msgid "with wives who never understand"
23 msgstr "und ihre Frauen verstehen sie nicht"
24
25 #: married-men:6
26 msgid "They're looking for someone to share"
27 msgstr ""
28
29 #, fuzzy, c-format
30 msgid "One file deleted."
31 msgid_plural "%u files deleted."
32 msgstr[0] "Ein Fehler."
33 msgstr[1] "%u Fehler."
34
35 #~ msgid "You fly on the wings of romance"
36 #~ msgstr "Die Flügel der frischen Liebe heben dich zum Himmel"
37
38 #, fuzzy
39 #~ msgid "In the eyes of the world"
40 #~ msgstr "Für die anderen"
41 EOF
42
43 : ${MSGATTRIB=msgattrib}
44 ${MSGATTRIB} --clear-fuzzy --empty -o ma-test19.tmp ma-test19.po \
45     || exit 1
46 LC_ALL=C tr -d '\r' < ma-test19.tmp > ma-test19.out || exit 1
47
48 cat <<\EOF > ma-test19.ok
49 # HEADER.
50 #
51 msgid ""
52 msgstr ""
53 "Project-Id-Version: Bonnie Tyler\n"
54 "Content-Type: text/plain; charset=ISO-8859-1\n"
55 "Content-Transfer-Encoding: 8bit\n"
56 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
57
58 #: married-men:4
59 msgid "The world is full of married men"
60 msgstr ""
61
62 #: married-men:5
63 msgid "with wives who never understand"
64 msgstr "und ihre Frauen verstehen sie nicht"
65
66 #: married-men:6
67 msgid "They're looking for someone to share"
68 msgstr ""
69
70 #, c-format
71 msgid "One file deleted."
72 msgid_plural "%u files deleted."
73 msgstr[0] ""
74 msgstr[1] ""
75
76 #~ msgid "You fly on the wings of romance"
77 #~ msgstr "Die Flügel der frischen Liebe heben dich zum Himmel"
78
79 #~ msgid "In the eyes of the world"
80 #~ msgstr "Für die anderen"
81 EOF
82
83 : ${DIFF=diff}
84 ${DIFF} ma-test19.ok ma-test19.out
85 result=$?
86
87 exit $result