3 # Test merging of a message which has plural forms in def.po but not
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles
="$tmpfiles mm-test12.po"
10 cat <<EOF > mm-test12.po
11 # SOME DESCRIPTIVE TITLE.
12 # Copyright (C) YEAR Free Software Foundation, Inc.
13 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
17 "Project-Id-Version: cog_training 1.0\n"
18 "POT-Creation-Date: 2001-04-29 22:40+0200\n"
19 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
20 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
21 "Language-Team: German <de@li.org>\n"
23 "Content-Type: text/plain; charset=ISO-8859-1\n"
24 "Content-Transfer-Encoding: 8bit\n"
29 msgid_plural "%d errors"
31 msgstr[1] "%d erreurs"
34 tmpfiles
="$tmpfiles mm-test12.pot"
35 cat <<EOF > mm-test12.pot
36 # SOME DESCRIPTIVE TITLE.
37 # Copyright (C) YEAR Free Software Foundation, Inc.
38 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
42 "Project-Id-Version: PACKAGE VERSION\n"
43 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
44 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
45 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
46 "Language-Team: LANGUAGE <LL@li.org>\n"
48 "Content-Type: text/plain; charset=ISO-8859-1\n"
49 "Content-Transfer-Encoding: 8bit\n"
57 tmpfiles
="$tmpfiles mm-test12.out"
58 : ${MSGMERGE=msgmerge}
59 ${MSGMERGE} -q mm-test12.po mm-test12.pot
-o mm-test12.out
60 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
62 tmpfiles
="$tmpfiles mm-test12.ok"
63 cat <<EOF > mm-test12.ok
64 # SOME DESCRIPTIVE TITLE.
65 # Copyright (C) YEAR Free Software Foundation, Inc.
66 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
70 "Project-Id-Version: cog_training 1.0\n"
71 "POT-Creation-Date: 2001-04-30 18:51+0200\n"
72 "PO-Revision-Date: 2001-04-29 21:19+02:00\n"
73 "Last-Translator: Felix N. <xyz@zyx.uucp>\n"
74 "Language-Team: German <de@li.org>\n"
76 "Content-Type: text/plain; charset=ISO-8859-1\n"
77 "Content-Transfer-Encoding: 8bit\n"
86 ${DIFF} mm-test12.ok mm-test12.out