ba529db12bee7e924f3571428b02104b22265fd6
[platform/upstream/gettext.git] / gettext-tools / tests / msgattrib-10
1 #! /bin/sh
2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4 # Test --set-obsolete option. Note that the output routines drop untranslated
5 # obsolete messages.
6
7 cat <<\EOF > ma-test10.po
8 # HEADER.
9 #
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: Bonnie Tyler\n"
13 "Content-Type: text/plain; charset=ISO-8859-1\n"
14 "Content-Transfer-Encoding: 8bit\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 # schwer zu übersetzen...
30 #: married-men:7
31 msgid "the excitement of a love affair"
32 msgstr ""
33
34 #: married-men:8
35 msgid "Just as soon as they find you"
36 msgstr ""
37
38 #: married-men:9
39 msgid "They warn you and darn you"
40 msgstr ""
41
42 #~ msgid "You fly on the wings of romance"
43 #~ msgstr "Die Flügel der frischen Liebe heben dich zum Himmel"
44
45 #, fuzzy
46 #~ msgid "In the eyes of the world"
47 #~ msgstr "Für die anderen"
48
49 # Etwas freie Übersetzung.
50 #~ msgid "You're just another crazy girl"
51 #~ msgstr "bist du bloß ein verrücktes dummes Ding"
52
53 #~ msgid "Who loves a married man"
54 #~ msgstr "das einen verheirateten Mann liebt"
55 EOF
56
57 : ${MSGATTRIB=msgattrib}
58 ${MSGATTRIB} --set-obsolete -o ma-test10.tmp ma-test10.po || exit 1
59 LC_ALL=C tr -d '\r' < ma-test10.tmp > ma-test10.out || exit 1
60
61 cat <<\EOF > ma-test10.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:4
71 #, fuzzy
72 #~ msgid "The world is full of married men"
73 #~ msgstr "So viele verheiratete Männer"
74
75 #: married-men:5
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-test10.ok ma-test10.out
96 result=$?
97
98 exit $result