summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/xgettext-ycp-3
blob: bb0f014b374d374b03264645135d008c4f64fb56 (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