3 # Test EmacsLisp support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-el-1.el"
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
18 (princ (_ "The Fabulous Four"))
21 tmpfiles
="$tmpfiles xg-el-1.po"
22 : ${XGETTEXT=xgettext}
23 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS
: \
25 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
27 tmpfiles
="$tmpfiles xg-el-1.ok"
28 cat <<EOF > xg-el-1.ok
32 #. TRANSLATORS: This is an extracted comment.
40 #. Nickname of the Beatles
41 msgid "The Fabulous Four"
46 ${DIFF} xg-el-1.ok xg-el-1.po