2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test 'quot' and 'boldquot' filter.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "PO-Revision-Date: 2014-04-10 16:40+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Content-Type: text/plain; charset=US-ASCII\n"
15 "Content-Transfer-Encoding: 8bit\n"
17 msgid "\"double quoted\""
18 msgstr "\"double quoted\""
20 msgid "\"\"double quoted\""
21 msgstr "\"\"double quoted\""
23 msgid "\"foo\" \"bar\" \"baz\""
24 msgstr "\"foo\" \"bar\" \"baz\""
26 msgid "double quoted but empty \"\""
27 msgstr "double quoted but empty \"\""
29 msgid "'single quoted'"
30 msgstr "'single quoted'"
32 msgid "'foo' 'bar' 'baz'"
33 msgstr "'foo' 'bar' 'baz'"
35 msgid "prefix'single quoted without surrounding spaces'suffix"
36 msgstr "prefix'single quoted without surrounding spaces'suffix"
38 msgid "prefix 'single quoted with surrounding spaces' suffix"
39 msgstr "prefix 'single quoted with surrounding spaces' suffix"
41 msgid "single quoted with apostrophe, empty '' "
42 msgstr "single quoted with apostrophe, empty '' "
44 msgid "'single quoted at the beginning of string' "
45 msgstr "'single quoted at the beginning of string' "
47 msgid " 'single quoted at the end of string'"
48 msgstr " 'single quoted at the end of string'"
52 "'single quoted at the beginning of line' \n"
56 "'single quoted at the beginning of line' \n"
61 " 'single quoted at the end of line'\n"
65 " 'single quoted at the end of line'\n"
68 msgid "`single quoted with grave'"
69 msgstr "`single quoted with grave'"
71 msgid "single quoted with grave, empty `'"
72 msgstr "single quoted with grave, empty `'"
74 msgid "``double grave'"
75 msgstr "``double grave'"
78 : ${MSGFILTER=msgfilter}
79 LC_ALL=C ${MSGFILTER} -i mfi.po -o mfi-quot.out quot 2>&1 2>/dev/null || exit 1
81 cat <<\EOF > mfi-quot.ok
84 "Project-Id-Version: PACKAGE VERSION\n"
85 "PO-Revision-Date: 2014-04-10 16:40+0900\n"
86 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
87 "Language-Team: LANGUAGE <LL@li.org>\n"
89 "Content-Type: text/plain; charset=UTF-8\n"
90 "Content-Transfer-Encoding: 8bit\n"
92 msgid "\"double quoted\""
93 msgstr "“double quoted”"
95 msgid "\"\"double quoted\""
96 msgstr "\"\"double quoted\""
98 msgid "\"foo\" \"bar\" \"baz\""
99 msgstr "“foo” “bar” “baz”"
101 msgid "double quoted but empty \"\""
102 msgstr "double quoted but empty \"\""
104 msgid "'single quoted'"
105 msgstr "'single quoted'"
107 msgid "'foo' 'bar' 'baz'"
108 msgstr "‘foo’ ‘bar’ ‘baz’"
110 msgid "prefix'single quoted without surrounding spaces'suffix"
111 msgstr "prefix'single quoted without surrounding spaces'suffix"
113 msgid "prefix 'single quoted with surrounding spaces' suffix"
114 msgstr "prefix ‘single quoted with surrounding spaces’ suffix"
116 msgid "single quoted with apostrophe, empty '' "
117 msgstr "single quoted with apostrophe, empty ‘’ "
119 msgid "'single quoted at the beginning of string' "
120 msgstr "‘single quoted at the beginning of string’ "
122 msgid " 'single quoted at the end of string'"
123 msgstr " ‘single quoted at the end of string’"
127 "'single quoted at the beginning of line' \n"
131 "‘single quoted at the beginning of line’ \n"
136 " 'single quoted at the end of line'\n"
140 " ‘single quoted at the end of line’\n"
143 msgid "`single quoted with grave'"
144 msgstr "‘single quoted with grave’"
146 msgid "single quoted with grave, empty `'"
147 msgstr "single quoted with grave, empty ‘’"
149 msgid "``double grave'"
150 msgstr "`‘double grave’"
154 ${DIFF} mfi-quot.ok mfi-quot.out || exit 1
156 LC_ALL=C ${MSGFILTER} -i mfi.po -o mfi-boldquot.out boldquot 2>&1 2>/dev/null || exit 1
158 cat <<\EOF > mfi-boldquot.ok
161 "Project-Id-Version: PACKAGE VERSION\n"
162 "PO-Revision-Date: 2014-04-10 16:40+0900\n"
163 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
164 "Language-Team: LANGUAGE <LL@li.org>\n"
165 "MIME-Version: 1.0\n"
166 "Content-Type: text/plain; charset=UTF-8\n"
167 "Content-Transfer-Encoding: 8bit\n"
169 msgid "\"double quoted\""
170 msgstr "“
\e[1mdouble quoted
\e[0m”"
172 msgid "\"\"double quoted\""
173 msgstr "\"\"double quoted\""
175 msgid "\"foo\" \"bar\" \"baz\""
176 msgstr "“
\e[1mfoo
\e[0m” “
\e[1mbar
\e[0m” “
\e[1mbaz
\e[0m”"
178 msgid "double quoted but empty \"\""
179 msgstr "double quoted but empty \"\""
181 msgid "'single quoted'"
182 msgstr "'single quoted'"
184 msgid "'foo' 'bar' 'baz'"
185 msgstr "‘
\e[1mfoo
\e[0m’ ‘
\e[1mbar
\e[0m’ ‘
\e[1mbaz
\e[0m’"
187 msgid "prefix'single quoted without surrounding spaces'suffix"
188 msgstr "prefix'single quoted without surrounding spaces'suffix"
190 msgid "prefix 'single quoted with surrounding spaces' suffix"
191 msgstr "prefix ‘
\e[1msingle quoted with surrounding spaces
\e[0m’ suffix"
193 msgid "single quoted with apostrophe, empty '' "
194 msgstr "single quoted with apostrophe, empty ‘
\e[1m
\e[0m’ "
196 msgid "'single quoted at the beginning of string' "
197 msgstr "‘
\e[1msingle quoted at the beginning of string
\e[0m’ "
199 msgid " 'single quoted at the end of string'"
200 msgstr " ‘
\e[1msingle quoted at the end of string
\e[0m’"
204 "'single quoted at the beginning of line' \n"
208 "‘
\e[1msingle quoted at the beginning of line
\e[0m’ \n"
213 " 'single quoted at the end of line'\n"
217 " ‘
\e[1msingle quoted at the end of line
\e[0m’\n"
220 msgid "`single quoted with grave'"
221 msgstr "‘
\e[1msingle quoted with grave
\e[0m’"
223 msgid "single quoted with grave, empty `'"
224 msgstr "single quoted with grave, empty ‘
\e[1m
\e[0m’"
226 msgid "``double grave'"
227 msgstr "`‘
\e[1mdouble grave
\e[0m’"
230 ${DIFF} mfi-boldquot.ok mfi-boldquot.out || exit 1