1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test msgattrib on a PO file with previous msgids.
5
6cat <<\EOF > ma-test16.po
7msgid ""
8msgstr ""
9"Report-Msgid-Bugs-To: \n"
10"Content-Type: text/plain; charset=UTF-8\n"
11"Content-Transfer-Encoding: 8bit\n"
12
13#. TRANSLATORS: An error message.
14#: src/args.c:242
15#, fuzzy, c-format
16#| msgid "too many arguments"
17msgid "Too many arguments."
18msgstr "zu viele Argumente"
19
20#. TRANSLATORS: An error message.
21#: src/args.c:247
22#, fuzzy, c-format
23#| msgid "too many arguments"
24msgid "Too few arguments."
25msgstr "zu viele Argumente"
26
27# Oder besser "fehlende Argumente"?
28#. TRANSLATORS: An error message.
29#: src/args.c:273
30#, c-format
31#| msgid "missing arguments"
32msgid "Missing arguments."
33msgstr "Argumente fehlen."
34
35#, fuzzy
36#~| msgid "%s: invalid option -- %c\n"
37#~ msgid "%s: illegal option -- %c\n"
38#~ msgstr "%s: ungültige Option -- %c\n"
39
40#~ msgid "%s: invalid option -- %c\n"
41#~ msgstr "%s: ungültige Option -- %c\n"
42EOF
43
44: ${MSGATTRIB=msgattrib}
45${MSGATTRIB} --fuzzy -o ma-test16.tmp ma-test16.po || Exit 1
46LC_ALL=C tr -d '\r' < ma-test16.tmp > ma-test16.out || Exit 1
47
48cat <<\EOF > ma-test16.ok
49msgid ""
50msgstr ""
51"Report-Msgid-Bugs-To: \n"
52"Content-Type: text/plain; charset=UTF-8\n"
53"Content-Transfer-Encoding: 8bit\n"
54
55#. TRANSLATORS: An error message.
56#: src/args.c:242
57#, c-format
58#| msgid "too many arguments"
59msgid "Too many arguments."
60msgstr "zu viele Argumente"
61
62#. TRANSLATORS: An error message.
63#: src/args.c:247
64#, c-format
65#| msgid "too many arguments"
66msgid "Too few arguments."
67msgstr "zu viele Argumente"
68
69#~| msgid "%s: invalid option -- %c\n"
70#~ msgid "%s: illegal option -- %c\n"
71#~ msgstr "%s: ungültige Option -- %c\n"
72EOF
73
74: ${DIFF=diff}
75${DIFF} ma-test16.ok ma-test16.out
76result=$?
77
78exit $result
79