diff options
Diffstat (limited to 'gettext-tools/tests/xgettext-ycp-3')
-rwxr-xr-x | gettext-tools/tests/xgettext-ycp-3 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gettext-tools/tests/xgettext-ycp-3 b/gettext-tools/tests/xgettext-ycp-3 new file mode 100755 index 0000000..6325db6 --- /dev/null +++ b/gettext-tools/tests/xgettext-ycp-3 @@ -0,0 +1,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 |