2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test comparison with PO files with previous msgids.
5 # Test --use-fuzzy option.
7 cat <<\EOF > mc-test4.pot
8 # SOME DESCRIPTIVE TITLE.
9 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
10 # This file is distributed under the same license as the PACKAGE package.
11 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
16 "Project-Id-Version: PACKAGE VERSION\n"
17 "Report-Msgid-Bugs-To: \n"
18 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
19 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
20 "Language-Team: LANGUAGE <LL@li.org>\n"
22 "Content-Type: text/plain; charset=UTF-8\n"
23 "Content-Transfer-Encoding: 8bit\n"
25 #. TRANSLATORS: An error message.
28 msgid "Too many arguments."
31 #. TRANSLATORS: An error message.
34 msgid "Too few arguments."
37 # Oder besser "fehlende Argumente"?
38 #. TRANSLATORS: An error message.
41 msgid "Missing arguments."
45 cat <<\EOF > mc-test4.po1
48 "Report-Msgid-Bugs-To: \n"
49 "Content-Type: text/plain; charset=UTF-8\n"
50 "Content-Transfer-Encoding: 8bit\n"
52 #. TRANSLATORS: An error message.
55 #| msgid "too many arguments"
56 msgid "Too many arguments."
57 msgstr "zu viele Argumente"
59 #. TRANSLATORS: An error message.
62 #| msgid "too many arguments"
63 msgid "Too few arguments."
64 msgstr "zu viele Argumente"
66 # Oder besser "fehlende Argumente"?
67 #. TRANSLATORS: An error message.
70 #| msgid "missing arguments"
71 msgid "Missing arguments."
72 msgstr "Argumente fehlen"
74 #: getopt.c:796 getopt.c:799
76 #| msgid "%s: invalid option -- %c\n"
77 msgid "%s: illegal option -- %c\n"
78 msgstr "%s: ungültige Option -- %c\n"
80 #: getopt.c:805 getopt.c:808
82 msgid "%s: invalid option -- %c\n"
83 msgstr "%s: ungültige Option -- %c\n"
86 # Verify that with fuzzies, all msgids of the POT file are covered.
88 LC_MESSAGES=C LC_ALL= \
89 ${MSGCMP} --use-fuzzy mc-test4.po1 mc-test4.pot > mc-test4.out11 2>&1 || exit 1
90 if grep -v 'warning:' mc-test4.out11 > /dev/null; then
94 # Verify that without fuzzies, not all msgids of the POT file are covered.
96 LC_MESSAGES=C LC_ALL= \
97 ${MSGCMP} mc-test4.po1 mc-test4.pot > mc-test4.out12 2>&1
98 test $? = 1 || { exit 1; }
99 grep -v 'warning:' mc-test4.out12 > /dev/null || exit 1
101 cat <<\EOF > mc-test4.po2
104 "Report-Msgid-Bugs-To: \n"
105 "Content-Type: text/plain; charset=UTF-8\n"
106 "Content-Transfer-Encoding: 8bit\n"
108 #. TRANSLATORS: An error message.
111 #| msgid "too many arguments"
112 msgid "Too many arguments."
113 msgstr "Zu viele Argumente."
115 #. TRANSLATORS: An error message.
118 #| msgid "too many arguments"
119 msgid "Too few arguments."
120 msgstr "Zu wenige Argumente."
122 # Oder besser "fehlende Argumente"?
123 #. TRANSLATORS: An error message.
126 #| msgid "missing arguments"
127 msgid "Missing arguments."
128 msgstr "Argumente fehlen."
130 #: getopt.c:796 getopt.c:799
132 #| msgid "%s: invalid option -- %c\n"
133 msgid "%s: illegal option -- %c\n"
134 msgstr "%s: ungültige Option -- %c\n"
136 #: getopt.c:805 getopt.c:808
138 msgid "%s: invalid option -- %c\n"
139 msgstr "%s: ungültige Option -- %c\n"
142 # Verify that without fuzzies, all msgids of the POT file are covered.
143 # Verify that previous msgids are ignored even when specified on non-fuzzy
146 LC_MESSAGES=C LC_ALL= \
147 ${MSGCMP} mc-test4.po2 mc-test4.pot > mc-test4.out2 2>&1 || exit 1
148 if grep -v 'warning:' mc-test4.out2 > /dev/null; then