3 # Test C support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-c-9.c"
10 // This comment will not be extracted.
11 print (gettext ("help"));
12 // TRANSLATORS: This is an extracted comment.
13 print (gettext ("me"));
14 /* Not extracted either. */
15 print (gettext ("Hey Jude"));
17 Nickname of the Beatles
19 print (gettext ("The Fabulous Four"));
20 /* TRANSLATORS: The strings get concatenated. */
21 print (gettext ("there is not enough"
22 " room on a single line for this entire long, " // confusing, eh?
26 tmpfiles
="$tmpfiles xg-c-9.po"
27 : ${XGETTEXT=xgettext}
28 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS
: \
30 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
32 tmpfiles
="$tmpfiles xg-c-9.ok"
37 #. TRANSLATORS: This is an extracted comment.
45 #. Nickname of the Beatles
47 msgid "The Fabulous Four"
50 #. TRANSLATORS: The strings get concatenated.
52 "there is not enough room on a single line for this entire long, verbose "
58 ${DIFF} xg-c-9.ok xg-c-9.po