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