2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test non-ASCII msgids when the PO file and the POT file are in different
7 cat <<\EOF > mm-test16.po
10 "Project-Id-Version: hello-cplusplus-qt 0\n"
11 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
12 "POT-Creation-Date: 2003-10-20 10:14+0200\n"
13 "PO-Revision-Date: 2003-10-20 10:13+0200\n"
14 "Last-Translator: Bruno Haible <bruno@clisp.org>\n"
15 "Language-Team: Polish <pl@li.org>\n"
17 "Content-Type: text/plain; charset=ISO-8859-2\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
20 "|| n%100>=20) ? 1 : 2);\n"
23 msgid "Written by François Pinard."
24 msgstr "Program napisa³ François Pinard."
31 cat <<EOF > mm-test16.pot
32 # SOME DESCRIPTIVE TITLE.
33 # Copyright (C) YEAR Yoyodyne, Inc.
34 # This file is distributed under the same license as the PACKAGE package.
35 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
40 "Project-Id-Version: PACKAGE VERSION\n"
41 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
42 "POT-Creation-Date: 2003-10-20 10:14+0200\n"
43 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
44 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
45 "Language-Team: LANGUAGE <LL@li.org>\n"
47 "Content-Type: text/plain; charset=UTF-8\n"
48 "Content-Transfer-Encoding: 8bit\n"
51 msgid "Written by François Pinard."
59 : ${MSGMERGE=msgmerge}
60 ${MSGMERGE} -q -o mm-test16.tmp.po mm-test16.po mm-test16.pot || exit 1
61 LC_ALL=C tr -d '\r' < mm-test16.tmp.po > mm-test16.new.po || exit 1
63 cat <<\EOF > mm-test16.ok
66 "Project-Id-Version: hello-cplusplus-qt 0\n"
67 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
68 "POT-Creation-Date: 2003-10-20 10:14+0200\n"
69 "PO-Revision-Date: 2003-10-20 10:13+0200\n"
70 "Last-Translator: Bruno Haible <bruno@clisp.org>\n"
71 "Language-Team: Polish <pl@li.org>\n"
74 "Content-Type: text/plain; charset=UTF-8\n"
75 "Content-Transfer-Encoding: 8bit\n"
76 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
77 "|| n%100>=20) ? 1 : 2);\n"
80 msgid "Written by François Pinard."
81 msgstr "Program napisał François Pinard."
89 ${DIFF} mm-test16.ok mm-test16.new.po