3 # Test msgattrib option --clear-previous.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles ma-test17.po"
9 cat <<\EOF > ma-test17.po
12 "Report-Msgid-Bugs-To: \n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
16 #. TRANSLATORS: An error message.
19 #| msgid "too many arguments"
20 msgid "Too many arguments."
21 msgstr "zu viele Argumente"
23 #. TRANSLATORS: An error message.
26 #| msgid "too many arguments"
27 msgid "Too few arguments."
28 msgstr "zu viele Argumente"
30 # Oder besser "fehlende Argumente"?
31 #. TRANSLATORS: An error message.
34 #| msgid "missing arguments"
35 msgid "Missing arguments."
36 msgstr "Argumente fehlen."
39 #~| msgid "%s: invalid option -- %c\n"
40 #~ msgid "%s: illegal option -- %c\n"
41 #~ msgstr "%s: ungültige Option -- %c\n"
43 #~ msgid "%s: invalid option -- %c\n"
44 #~ msgstr "%s: ungültige Option -- %c\n"
47 tmpfiles="$tmpfiles ma-test17.tmp ma-test17.out"
48 : ${MSGATTRIB=msgattrib}
49 ${MSGATTRIB} --clear-previous -o ma-test17.tmp ma-test17.po
50 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
51 LC_ALL=C tr -d '\r' < ma-test17.tmp > ma-test17.out
52 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
54 tmpfiles="$tmpfiles ma-test17.ok"
55 cat <<\EOF > ma-test17.ok
58 "Report-Msgid-Bugs-To: \n"
59 "Content-Type: text/plain; charset=UTF-8\n"
60 "Content-Transfer-Encoding: 8bit\n"
62 #. TRANSLATORS: An error message.
65 msgid "Too many arguments."
66 msgstr "zu viele Argumente"
68 #. TRANSLATORS: An error message.
71 msgid "Too few arguments."
72 msgstr "zu viele Argumente"
74 # Oder besser "fehlende Argumente"?
75 #. TRANSLATORS: An error message.
78 msgid "Missing arguments."
79 msgstr "Argumente fehlen."
82 #~ msgid "%s: illegal option -- %c\n"
83 #~ msgstr "%s: ungültige Option -- %c\n"
85 #~ msgid "%s: invalid option -- %c\n"
86 #~ msgstr "%s: ungültige Option -- %c\n"
90 ${DIFF} ma-test17.ok ma-test17.out