Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / tests / msgattrib-18
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test --add-location=file option.
5
6 cat <<\EOF > ma-test18.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
15 #: married-men:4
16 #, fuzzy
17 msgid "The world is full of married men"
18 msgstr "So viele verheiratete Männer"
19
20 #: married-men:5
21 msgid "with wives who never understand"
22 msgstr "und ihre Frauen verstehen sie nicht"
23
24 #: married-men:6
25 msgid "They're looking for someone to share"
26 msgstr ""
27
28 # schwer zu übersetzen...
29 #: married-men:7
30 msgid "the excitement of a love affair"
31 msgstr ""
32
33 #: married-men:8
34 msgid "Just as soon as they find you"
35 msgstr ""
36
37 #: married-men:9
38 msgid "They warn you and darn you"
39 msgstr ""
40
41 #~ msgid "You fly on the wings of romance"
42 #~ msgstr "Die Flügel der frischen Liebe heben dich zum Himmel"
43
44 #, fuzzy
45 #~ msgid "In the eyes of the world"
46 #~ msgstr "Für die anderen"
47
48 # Etwas freie Übersetzung.
49 #~ msgid "You're just another crazy girl"
50 #~ msgstr "bist du bloß ein verrücktes dummes Ding"
51
52 #~ msgid "Who loves a married man"
53 #~ msgstr "das einen verheirateten Mann liebt"
54 EOF
55
56 : ${MSGATTRIB=msgattrib}
57 ${MSGATTRIB} --translated --add-location=file -o ma-test18.tmp ma-test18.po \
58     || exit 1
59 LC_ALL=C tr -d '\r' < ma-test18.tmp > ma-test18.out || exit 1
60
61 cat <<\EOF > ma-test18.ok
62 # HEADER.
63 #
64 msgid ""
65 msgstr ""
66 "Project-Id-Version: Bonnie Tyler\n"
67 "Content-Type: text/plain; charset=ISO-8859-1\n"
68 "Content-Transfer-Encoding: 8bit\n"
69
70 #: married-men
71 #, fuzzy
72 msgid "The world is full of married men"
73 msgstr "So viele verheiratete Männer"
74
75 #: married-men
76 msgid "with wives who never understand"
77 msgstr "und ihre Frauen verstehen sie nicht"
78
79 #~ msgid "You fly on the wings of romance"
80 #~ msgstr "Die Flügel der frischen Liebe heben dich zum Himmel"
81
82 #, fuzzy
83 #~ msgid "In the eyes of the world"
84 #~ msgstr "Für die anderen"
85
86 # Etwas freie Übersetzung.
87 #~ msgid "You're just another crazy girl"
88 #~ msgstr "bist du bloß ein verrücktes dummes Ding"
89
90 #~ msgid "Who loves a married man"
91 #~ msgstr "das einen verheirateten Mann liebt"
92 EOF
93
94 : ${DIFF=diff}
95 ${DIFF} ma-test18.ok ma-test18.out
96 result=$?
97
98 exit $result