summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgmerge-22
blob: ffda11d4e8372e1f3f1ed8bfb17f67cff5704f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Test msgmerge when a msgid_plural changed but msgid remained the same.
# Reported by Chusslove Illich (Часлав Илић).

cat <<\EOF > mm-test22.po
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext-tools 0.16\n"
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
"POT-Creation-Date: 2007-10-18 02:57+0200\n"
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgid "Add resource from addressbook"
msgid_plural "Add %n resources from addressbook"
msgstr[0] "Engadir un recurso dende o libro de enderezos"
msgstr[1] "Engadir %n recursos dende o libro de enderezos"
EOF

cat <<\EOF > mm-test22.pot
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext-tools 0.16\n"
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
"POT-Creation-Date: 2007-10-19 02:57+0200\n"
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

msgid "Add resource from addressbook"
msgid_plural "Add %1 resources from addressbook"
msgstr[0] ""
msgstr[1] ""
EOF

: ${MSGMERGE=msgmerge}
${MSGMERGE} -q -o mm-test22.tmp.po mm-test22.po mm-test22.pot || Exit 1
LC_ALL=C tr -d '\r' < mm-test22.tmp.po > mm-test22.new.po || Exit 1

cat <<\EOF > mm-test22.ok
msgid ""
msgstr ""
"Project-Id-Version: GNU gettext-tools 0.16\n"
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
"POT-Creation-Date: 2007-10-19 02:57+0200\n"
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
"Last-Translator: Karl Eichwalder <ke@suse.de>\n"
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#, fuzzy
msgid "Add resource from addressbook"
msgid_plural "Add %1 resources from addressbook"
msgstr[0] "Engadir un recurso dende o libro de enderezos"
msgstr[1] "Engadir %n recursos dende o libro de enderezos"
EOF

: ${DIFF=diff}
${DIFF} mm-test22.ok mm-test22.new.po || Exit 1

: ${MSGFMT=msgfmt}
${MSGFMT} --check -o mm-test22.mo mm-test22.new.po || Exit 1

Exit 0