2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test --newline option.
6 cat <<\EOF > mex-test6.po
11 "Project-Id-Version: Bonnie Tyler\n"
12 "Content-Type: text/plain; charset=ISO-8859-1\n"
13 "Content-Transfer-Encoding: 8bit\n"
17 msgid "The world is full of married men"
18 msgstr "So viele verheiratete Männer"
21 msgid "with wives who never understand"
22 msgstr "und ihre Frauen verstehen sie nicht"
25 msgid "They're looking for someone to share"
28 # schwer zu übersetzen...
30 msgid "the excitement of a love affair"
34 msgid "Just as soon as they find you"
38 msgid "They warn you and darn you"
41 #~ msgid "You fly on the wings of romance"
42 #~ msgstr "Die Flügel der frischen Liebe\n"
43 #~ "heben dich zum Himmel"
46 #~ msgid "In the eyes of the world"
47 #~ msgstr "Für die anderen"
49 # Etwas freie Übersetzung.
50 #~ msgid "You're just another crazy girl"
51 #~ msgstr "bist du bloß ein verrücktes dummes Ding"
53 #~ msgid "Who loves a married man"
54 #~ msgstr "das einen verheirateten Mann liebt"
57 cat <<\EOF > mex-test6.sh
59 echo "========================= $MSGEXEC_LOCATION =========================" | LC_ALL=C tr -d '\r'
65 echo | LC_ALL=C tr -d '\r'
68 chmod a+x mex-test6.sh
72 ${MSGEXEC} --newline -i mex-test6.po ./mex-test6.sh > mex-test6.out 2> mex-test6.err
74 cat mex-test6.err | grep -v 'warning: Locale charset' | grep -v '^ '
75 test $result = 0 || { exit 1; }
77 cat <<\EOF > mex-test6.ok
78 ========================= mex-test6.po:4 =========================
81 Project-Id-Version: Bonnie Tyler
82 Content-Type: text/plain; charset=ISO-8859-1
83 Content-Transfer-Encoding: 8bit
86 ========================= mex-test6.po:12 =========================
87 The world is full of married men
89 So viele verheiratete Männer
91 ========================= mex-test6.po:16 =========================
92 with wives who never understand
94 und ihre Frauen verstehen sie nicht
96 ========================= mex-test6.po:20 =========================
97 They're looking for someone to share
101 ========================= mex-test6.po:25 =========================
102 the excitement of a love affair
106 ========================= mex-test6.po:29 =========================
107 Just as soon as they find you
111 ========================= mex-test6.po:33 =========================
112 They warn you and darn you
116 ========================= mex-test6.po:36 =========================
117 You fly on the wings of romance
119 Die Flügel der frischen Liebe
120 heben dich zum Himmel
122 ========================= mex-test6.po:41 =========================
123 In the eyes of the world
127 ========================= mex-test6.po:45 =========================
128 You're just another crazy girl
130 bist du bloß ein verrücktes dummes Ding
132 ========================= mex-test6.po:48 =========================
133 Who loves a married man
135 das einen verheirateten Mann liebt
140 ${DIFF} mex-test6.ok mex-test6.out