Blame gettext-tools/tests/msgmerge-22

Packit Bot 06c835
#! /bin/sh
Packit Bot 06c835
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
Packit Bot 06c835
Packit Bot 06c835
# Test msgmerge when a msgid_plural changed but msgid remained the same.
Packit Bot 06c835
# Reported by Chusslove Illich (Часлав Илић).
Packit Bot 06c835
Packit Bot 06c835
cat <<\EOF > mm-test22.po
Packit Bot 06c835
msgid ""
Packit Bot 06c835
msgstr ""
Packit Bot 06c835
"Project-Id-Version: GNU gettext-tools 0.16\n"
Packit Bot 06c835
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
Packit Bot 06c835
"POT-Creation-Date: 2007-10-18 02:57+0200\n"
Packit Bot 06c835
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
Packit Bot 06c835
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
Packit Bot 06c835
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
Packit Bot 06c835
"MIME-Version: 1.0\n"
Packit Bot 06c835
"Content-Type: text/plain; charset=UTF-8\n"
Packit Bot 06c835
"Content-Transfer-Encoding: 8bit\n"
Packit Bot 06c835
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
Packit Bot 06c835
Packit Bot 06c835
msgid "Add resource from addressbook"
Packit Bot 06c835
msgid_plural "Add %n resources from addressbook"
Packit Bot 06c835
msgstr[0] "Engadir un recurso dende o libro de enderezos"
Packit Bot 06c835
msgstr[1] "Engadir %n recursos dende o libro de enderezos"
Packit Bot 06c835
EOF
Packit Bot 06c835
Packit Bot 06c835
cat <<\EOF > mm-test22.pot
Packit Bot 06c835
msgid ""
Packit Bot 06c835
msgstr ""
Packit Bot 06c835
"Project-Id-Version: GNU gettext-tools 0.16\n"
Packit Bot 06c835
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
Packit Bot 06c835
"POT-Creation-Date: 2007-10-19 02:57+0200\n"
Packit Bot 06c835
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
Packit Bot 06c835
"Last-Translator: \n"
Packit Bot 06c835
"Language-Team: \n"
Packit Bot 06c835
"MIME-Version: 1.0\n"
Packit Bot 06c835
"Content-Type: text/plain; charset=UTF-8\n"
Packit Bot 06c835
"Content-Transfer-Encoding: 8bit\n"
Packit Bot 06c835
Packit Bot 06c835
msgid "Add resource from addressbook"
Packit Bot 06c835
msgid_plural "Add %1 resources from addressbook"
Packit Bot 06c835
msgstr[0] ""
Packit Bot 06c835
msgstr[1] ""
Packit Bot 06c835
EOF
Packit Bot 06c835
Packit Bot 06c835
: ${MSGMERGE=msgmerge}
Packit Bot 06c835
${MSGMERGE} -q -o mm-test22.tmp.po mm-test22.po mm-test22.pot || exit 1
Packit Bot 06c835
LC_ALL=C tr -d '\r' < mm-test22.tmp.po > mm-test22.new.po || exit 1
Packit Bot 06c835
Packit Bot 06c835
cat <<\EOF > mm-test22.ok
Packit Bot 06c835
msgid ""
Packit Bot 06c835
msgstr ""
Packit Bot 06c835
"Project-Id-Version: GNU gettext-tools 0.16\n"
Packit Bot 06c835
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
Packit Bot 06c835
"POT-Creation-Date: 2007-10-19 02:57+0200\n"
Packit Bot 06c835
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
Packit Bot 06c835
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
Packit Bot 06c835
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
Packit Bot 06c835
"Language: de\n"
Packit Bot 06c835
"MIME-Version: 1.0\n"
Packit Bot 06c835
"Content-Type: text/plain; charset=UTF-8\n"
Packit Bot 06c835
"Content-Transfer-Encoding: 8bit\n"
Packit Bot 06c835
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
Packit Bot 06c835
Packit Bot 06c835
#, fuzzy
Packit Bot 06c835
msgid "Add resource from addressbook"
Packit Bot 06c835
msgid_plural "Add %1 resources from addressbook"
Packit Bot 06c835
msgstr[0] "Engadir un recurso dende o libro de enderezos"
Packit Bot 06c835
msgstr[1] "Engadir %n recursos dende o libro de enderezos"
Packit Bot 06c835
EOF
Packit Bot 06c835
Packit Bot 06c835
: ${DIFF=diff}
Packit Bot 06c835
${DIFF} mm-test22.ok mm-test22.new.po || exit 1
Packit Bot 06c835
Packit Bot 06c835
: ${MSGFMT=msgfmt}
Packit Bot 06c835
${MSGFMT} --check -o mm-test22.mo mm-test22.new.po || exit 1
Packit Bot 06c835
Packit Bot 06c835
exit 0