2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test YCP support: --add-comments option.
7 // This comment will not be extracted.
9 // TRANSLATORS: This is an extracted comment.
11 # TRANSLATORS: This is extracted too.
13 /* Not extracted either. */
14 print (_("Hey Jude"));
16 Nickname of the Beatles
18 print (_("The Fabulous Four"));
21 : ${XGETTEXT=xgettext}
22 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
23 -d xg-y-2.tmp xg-y-2.ycp || exit 1
24 LC_ALL=C tr -d '\r' < xg-y-2.tmp.po > xg-y-2.po || exit 1
30 #. TRANSLATORS: This is an extracted comment.
34 #. TRANSLATORS: This is extracted too.
42 #. Nickname of the Beatles
44 msgid "The Fabulous Four"
49 ${DIFF} xg-y-2.ok xg-y-2.po