2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test Python support: --add-comments option.
7 # This comment will not be extracted.
8 print gettext.gettext("help")
9 # TRANSLATORS: This is an extracted comment.
10 print gettext.gettext("me")
11 # Not extracted either.
12 print gettext.gettext("Hey Jude")
14 # Nickname of the Beatles
15 print gettext.gettext("The Fabulous Four")
16 # TRANSLATORS: The strings get concatenated.
17 print gettext.gettext("there is not enough"
18 " room on a single line for this entire long, " # confusing, eh?
22 : ${XGETTEXT=xgettext}
23 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
24 -d xg-py-2.tmp xg-py-2.py || exit 1
25 LC_ALL=C tr -d '\r' < xg-py-2.tmp.po > xg-py-2.po || exit 1
27 cat <<EOF > xg-py-2.ok
31 #. TRANSLATORS: This is an extracted comment.
39 #. Nickname of the Beatles
40 msgid "The Fabulous Four"
43 #. TRANSLATORS: The strings get concatenated.
45 "there is not enough room on a single line for this entire long, verbose "
51 ${DIFF} xg-py-2.ok xg-py-2.po