3 # Test non-ASCII msgids when the PO file and the POT file are in different
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles
="$tmpfiles mm-test16.po"
10 cat <<\EOF
> mm-test16.po
13 "Project-Id-Version: hello-cplusplus-qt 0\n"
14 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
15 "POT-Creation-Date: 2003-10-20 10:14+0200\n"
16 "PO-Revision-Date: 2003-10-20 10:13+0200\n"
17 "Last-Translator: Bruno Haible <bruno@clisp.org>\n"
18 "Language-Team: Polish <pl@li.org>\n"
20 "Content-Type: text/plain; charset=ISO-8859-2\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
23 "|| n%100>=20) ? 1 : 2);\n"
26 msgid
"Written by François Pinard."
27 msgstr
"Program napisa³ François Pinard."
34 tmpfiles
="$tmpfiles mm-test16.pot"
35 cat <<EOF > mm-test16.pot
36 # SOME DESCRIPTIVE TITLE.
37 # Copyright (C) YEAR Yoyodyne, Inc.
38 # This file is distributed under the same license as the PACKAGE package.
39 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
44 "Project-Id-Version: PACKAGE VERSION\n"
45 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
46 "POT-Creation-Date: 2003-10-20 10:14+0200\n"
47 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
48 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
49 "Language-Team: LANGUAGE <LL@li.org>\n"
51 "Content-Type: text/plain; charset=UTF-8\n"
52 "Content-Transfer-Encoding: 8bit\n"
55 msgid "Written by François Pinard."
63 tmpfiles
="$tmpfiles mm-test16.new.po"
64 : ${MSGMERGE=msgmerge}
65 ${MSGMERGE} -q mm-test16.po mm-test16.pot
-o mm-test16.new.po
66 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
68 tmpfiles
="$tmpfiles mm-test16.ok"
69 cat <<\EOF
> mm-test16.ok
72 "Project-Id-Version: hello-cplusplus-qt 0\n"
73 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
74 "POT-Creation-Date: 2003-10-20 10:14+0200\n"
75 "PO-Revision-Date: 2003-10-20 10:13+0200\n"
76 "Last-Translator: Bruno Haible <bruno@clisp.org>\n"
77 "Language-Team: Polish <pl@li.org>\n"
79 "Content-Type: text/plain; charset=UTF-8\n"
80 "Content-Transfer-Encoding: 8bit\n"
81 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
82 "|| n%100>=20) ? 1 : 2);\n"
85 msgid
"Written by François Pinard."
86 msgstr
"Program napisał François Pinard."
94 ${DIFF} mm-test16.ok mm-test16.new.po