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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test msgmerge when a msgid_plural changed but msgid remained the same,
# and --previous was specified.
# Reported by Chusslove Illich (Часлав Илић).
cat <<\EOF > mm-test23.po
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-01-13 16:59+0100\n"
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
"Last-Translator: \n"
"Language-Team: \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"
#, c-format
msgid "%n lines"
msgstr ""
#, c-format
msgid "%n areas"
msgstr "%n Flächen"
#, c-format
msgid "One object"
msgid_plural "%n objects"
msgstr[0] ""
msgstr[1] ""
#, c-format
msgid "One volume"
msgid_plural "%n volumes"
msgstr[0] "Ein Band"
msgstr[1] "%n Bände"
EOF
cat <<\EOF > mm-test23.pot
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-01-13 16:59+0100\n"
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#, kde-format
msgid "%1 lines"
msgstr ""
#, kde-format
msgid "%1 areas"
msgstr ""
#, kde-format
msgid "One object"
msgid_plural "%1 objects"
msgstr[0] ""
msgstr[1] ""
#, kde-format
msgid "One volume"
msgid_plural "%1 volumes"
msgstr[0] ""
msgstr[1] ""
EOF
: ${MSGMERGE=msgmerge}
${MSGMERGE} -q --previous -o mm-test23.tmp.po mm-test23.po mm-test23.pot || exit 1
LC_ALL=C tr -d '\r' < mm-test23.tmp.po > mm-test23.new.po || exit 1
cat <<\EOF > mm-test23.ok
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-01-13 16:59+0100\n"
"PO-Revision-Date: 2007-06-28 16:37+0200\n"
"Last-Translator: \n"
"Language-Team: \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"
#, kde-format
msgid "%1 lines"
msgstr ""
#, fuzzy, kde-format
#| msgid "%n areas"
msgid "%1 areas"
msgstr "%n Flächen"
#, kde-format
msgid "One object"
msgid_plural "%1 objects"
msgstr[0] ""
msgstr[1] ""
#, fuzzy, kde-format
#| msgid "One volume"
#| msgid_plural "%n volumes"
msgid "One volume"
msgid_plural "%1 volumes"
msgstr[0] "Ein Band"
msgstr[1] "%n Bände"
EOF
: ${DIFF=diff}
${DIFF} mm-test23.ok mm-test23.new.po || exit 1
: ${MSGFMT=msgfmt}
${MSGFMT} --check -o mm-test23.mo mm-test23.new.po || exit 1
exit 0
|