3
# Test of an external command.
6
trap 'rm -fr $tmpfiles' 1 2 3 15
8
tmpfiles="$tmpfiles mex-test1.po"
9
cat <<\EOF > mex-test1.po
14
"Project-Id-Version: Bonnie Tyler\n"
15
"Content-Type: text/plain; charset=ISO-8859-1\n"
16
"Content-Transfer-Encoding: 8bit\n"
20
msgid "The world is full of married men"
21
msgstr "So viele verheiratete M�nner"
24
msgid "with wives who never understand"
25
msgstr "und ihre Frauen verstehen sie nicht"
28
msgid "They're looking for someone to share"
31
# schwer zu �bersetzen...
33
msgid "the excitement of a love affair"
37
msgid "Just as soon as they find you"
41
msgid "They warn you and darn you"
44
#~ msgid "You fly on the wings of romance"
45
#~ msgstr "Die Fl�gel der frischen Liebe\n"
46
#~ "heben dich zum Himmel"
49
#~ msgid "In the eyes of the world"
50
#~ msgstr "F�r die anderen"
52
# Etwas freie �bersetzung.
53
#~ msgid "You're just another crazy girl"
54
#~ msgstr "bist du blo� ein verr�cktes dummes Ding"
56
#~ msgid "Who loves a married man"
57
#~ msgstr "das einen verheirateten Mann liebt"
60
tmpfiles="$tmpfiles mex-test1.sh"
61
cat <<\EOF > mex-test1.sh
63
echo "========================= $MSGEXEC_LOCATION ========================="
72
chmod a+x mex-test1.sh
74
tmpfiles="$tmpfiles mex-test1.out"
76
${MSGEXEC} -i mex-test1.po ./mex-test1.sh > mex-test1.out
77
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
79
tmpfiles="$tmpfiles mex-test1.ok"
80
cat <<\EOF > mex-test1.ok
81
========================= mex-test1.po:4 =========================
84
Project-Id-Version: Bonnie Tyler
85
Content-Type: text/plain; charset=ISO-8859-1
86
Content-Transfer-Encoding: 8bit
88
========================= mex-test1.po:12 =========================
89
The world is full of married men
91
So viele verheiratete M�nner
92
========================= mex-test1.po:16 =========================
93
with wives who never understand
95
und ihre Frauen verstehen sie nicht
96
========================= mex-test1.po:20 =========================
97
They're looking for someone to share
100
========================= mex-test1.po:25 =========================
101
the excitement of a love affair
104
========================= mex-test1.po:29 =========================
105
Just as soon as they find you
108
========================= mex-test1.po:33 =========================
109
They warn you and darn you
112
========================= mex-test1.po:36 =========================
113
You fly on the wings of romance
115
Die Fl�gel der frischen Liebe
116
heben dich zum Himmel
117
========================= mex-test1.po:41 =========================
118
In the eyes of the world
121
========================= mex-test1.po:45 =========================
122
You're just another crazy girl
124
bist du blo� ein verr�cktes dummes Ding
125
========================= mex-test1.po:48 =========================
126
Who loves a married man
128
das einen verheirateten Mann liebt
132
${DIFF} mex-test1.ok mex-test1.out