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