2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test EmacsLisp 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
15 (princ (_ "The Fabulous Four"))
18 : ${XGETTEXT=xgettext}
19 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS: \
20 -d xg-el-1.tmp xg-el-1.el || exit 1
21 LC_ALL=C tr -d '\r' < xg-el-1.tmp.po > xg-el-1.po || exit 1
23 cat <<EOF > xg-el-1.ok
27 #. TRANSLATORS: This is an extracted comment.
35 #. Nickname of the Beatles
36 msgid "The Fabulous Four"
41 ${DIFF} xg-el-1.ok xg-el-1.po