blob: 6325db6cc2c4a59b775cb0e3566c21999b74e7e3 (
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
|
#!/bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src
# Test YCP support: string literal concatenation.
cat <<\EOF > xg-y-3.ycp
print (_("John\n"
"Paul\n"
"George and "
"Ringo"));
EOF
: ${XGETTEXT=xgettext}
${XGETTEXT} --omit-header --no-location -d xg-y-3.tmp xg-y-3.ycp || exit 1
LC_ALL=C tr -d '\r' < xg-y-3.tmp.po > xg-y-3.po || exit 1
cat <<\EOF > xg-y-3.ok
msgid ""
"John\n"
"Paul\n"
"George and Ringo"
msgstr ""
EOF
: ${DIFF=diff}
${DIFF} xg-y-3.ok xg-y-3.po
result=$?
exit $result
|