3 # Verify that msgcat doesn't introduce alternative syntax if all translations
4 # have the same msgstr.
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles
="$tmpfiles mcat-test1.in1 mcat-test1.in2"
10 cat <<EOF > mcat-test1.in1
13 "Project-Id-Version: GNU one 1.2.3\n"
14 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
15 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
16 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
17 "Language-Team: German <de@li.org>\n"
19 "Content-Type: text/plain; charset=iso-8859-1\n"
20 "Content-Transfer-Encoding: 8bit\n"
27 cat <<EOF > mcat-test1.in2
30 "Project-Id-Version: GNU one 1.2.3\n"
31 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
32 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
33 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
34 "Language-Team: German <de@li.org>\n"
36 "Content-Type: text/plain; charset=iso-8859-1\n"
37 "Content-Transfer-Encoding: 8bit\n"
44 tmpfiles
="$tmpfiles mcat-test1.out"
46 ${MSGCAT} mcat-test1.in1 mcat-test1.in2
-o mcat-test1.out
47 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
49 tmpfiles
="$tmpfiles mcat-test1.ok"
50 cat << EOF > mcat-test1.ok
53 "Project-Id-Version: GNU one 1.2.3\n"
54 "POT-Creation-Date: 2000-12-11 20:49+0100\n"
55 "PO-Revision-Date: 2000-03-18 15:25+01:00\n"
56 "Last-Translator: Karl Eichwalder <ke@suse.de>\n"
57 "Language-Team: German <de@li.org>\n"
59 "Content-Type: text/plain; charset=iso-8859-1\n"
60 "Content-Transfer-Encoding: 8bit\n"
62 #: first.c:123 hunt.c:759
68 ${DIFF} mcat-test1.ok mcat-test1.out