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