1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos # Test merging of a message which has plural forms in ref.pot but not 4 1.1 christos # in def.po. 5 1.1 christos 6 1.1 christos tmpfiles="" 7 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 8 1.1 christos 9 1.1 christos tmpfiles="$tmpfiles mm-test10.po" 10 1.1 christos cat <<EOF > mm-test10.po 11 1.1 christos # SOME DESCRIPTIVE TITLE. 12 1.1 christos # Copyright (C) YEAR Free Software Foundation, Inc. 13 1.1 christos # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 14 1.1 christos # 15 1.1 christos msgid "" 16 1.1 christos msgstr "" 17 1.1 christos "Project-Id-Version: cog_training 1.0\n" 18 1.1 christos "POT-Creation-Date: 2001-04-29 22:40+0200\n" 19 1.1 christos "PO-Revision-Date: 2001-04-29 21:19+02:00\n" 20 1.1 christos "Last-Translator: Felix N. <xyz (at] zyx.uucp>\n" 21 1.1 christos "Language-Team: German <de (at] li.org>\n" 22 1.1 christos "MIME-Version: 1.0\n" 23 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 24 1.1 christos "Content-Transfer-Encoding: 8bit\n" 25 1.1 christos 26 1.1 christos #:foobar.c:29 27 1.1 christos #, c-format 28 1.1 christos msgid "%d error" 29 1.1 christos msgstr "%d erreur" 30 1.1 christos EOF 31 1.1 christos 32 1.1 christos tmpfiles="$tmpfiles mm-test10.pot" 33 1.1 christos cat <<EOF > mm-test10.pot 34 1.1 christos # SOME DESCRIPTIVE TITLE. 35 1.1 christos # Copyright (C) YEAR Free Software Foundation, Inc. 36 1.1 christos # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 37 1.1 christos # 38 1.1 christos msgid "" 39 1.1 christos msgstr "" 40 1.1 christos "Project-Id-Version: PACKAGE VERSION\n" 41 1.1 christos "POT-Creation-Date: 2001-04-30 18:51+0200\n" 42 1.1 christos "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 43 1.1 christos "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 44 1.1 christos "Language-Team: LANGUAGE <LL (at] li.org>\n" 45 1.1 christos "MIME-Version: 1.0\n" 46 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 47 1.1 christos "Content-Transfer-Encoding: 8bit\n" 48 1.1 christos 49 1.1 christos #:foobar.c:32 50 1.1 christos #, c-format 51 1.1 christos msgid "%d error" 52 1.1 christos msgid_plural "%d errors" 53 1.1 christos msgstr[0] "" 54 1.1 christos msgstr[1] "" 55 1.1 christos EOF 56 1.1 christos 57 1.1 christos tmpfiles="$tmpfiles mm-test10.out" 58 1.1 christos : ${MSGMERGE=msgmerge} 59 1.1 christos ${MSGMERGE} -q -o mm-test10.out mm-test10.po mm-test10.pot 60 1.1 christos test $? = 0 || { rm -fr $tmpfiles; exit 1; } 61 1.1 christos 62 1.1 christos tmpfiles="$tmpfiles mm-test10.ok" 63 1.1 christos cat <<EOF > mm-test10.ok 64 1.1 christos # SOME DESCRIPTIVE TITLE. 65 1.1 christos # Copyright (C) YEAR Free Software Foundation, Inc. 66 1.1 christos # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 67 1.1 christos # 68 1.1 christos msgid "" 69 1.1 christos msgstr "" 70 1.1 christos "Project-Id-Version: cog_training 1.0\n" 71 1.1 christos "POT-Creation-Date: 2001-04-30 18:51+0200\n" 72 1.1 christos "PO-Revision-Date: 2001-04-29 21:19+02:00\n" 73 1.1 christos "Last-Translator: Felix N. <xyz (at] zyx.uucp>\n" 74 1.1 christos "Language-Team: German <de (at] li.org>\n" 75 1.1 christos "MIME-Version: 1.0\n" 76 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 77 1.1 christos "Content-Transfer-Encoding: 8bit\n" 78 1.1 christos 79 1.1 christos #: foobar.c:32 80 1.1 christos #, fuzzy, c-format 81 1.1 christos msgid "%d error" 82 1.1 christos msgid_plural "%d errors" 83 1.1 christos msgstr[0] "%d erreur" 84 1.1 christos msgstr[1] "%d erreur" 85 1.1 christos EOF 86 1.1 christos 87 1.1 christos : ${DIFF=diff} 88 1.1 christos ${DIFF} mm-test10.ok mm-test10.out 89 1.1 christos result=$? 90 1.1 christos 91 1.1 christos rm -fr $tmpfiles 92 1.1 christos 93 1.1 christos exit $result 94