2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test Smalltalk support: --add-comments option.
7 "This comment will not be extracted."
8 Transcript showCr: (NLS ? 'help').
9 " TRANSLATORS: This is an extracted comment."
10 Transcript showCr: (NLS ? 'me').
11 "Not extracted either."
12 Transcript showCr: (NLS ? 'Hey Jude').
14 Nickname of the Beatles
16 Transcript showCr: (NLS ? 'The Fabulous Four').
19 : ${XGETTEXT=xgettext}
20 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
21 -d xg-st-1.tmp xg-st-1.st || exit 1
22 LC_ALL=C tr -d '\r' < xg-st-1.tmp.po > xg-st-1.po || exit 1
24 cat <<EOF > xg-st-1.ok
28 #. TRANSLATORS: This is an extracted comment.
36 #. Nickname of the Beatles
38 msgid "The Fabulous Four"
43 ${DIFF} xg-st-1.ok xg-st-1.po