3 # Test librep support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-lr-1.jl"
10 ; This comment will not be extracted.
12 ;; TRANSLATORS: This is an extracted comment.
14 #| Not extracted either. |#
15 (princ (_ "Hey Jude"))
17 Nickname of the Beatles
19 (princ (_ "The Fabulous Four"))
22 tmpfiles
="$tmpfiles xg-lr-1.po"
23 : ${XGETTEXT=xgettext}
24 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS
: \
26 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
28 tmpfiles
="$tmpfiles xg-lr-1.ok"
29 cat <<EOF > xg-lr-1.ok
33 #. TRANSLATORS: This is an extracted comment.
41 #. Nickname of the Beatles
43 msgid "The Fabulous Four"
48 ${DIFF} xg-lr-1.ok xg-lr-1.po