3 # Test YCP support: --add-comments option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-y-2.ycp"
10 // This comment will not be extracted.
12 // TRANSLATORS: This is an extracted comment.
14 # TRANSLATORS: This is extracted too.
16 /* Not extracted either. */
17 print (_("Hey Jude"));
19 Nickname of the Beatles
21 print (_("The Fabulous Four"));
24 tmpfiles
="$tmpfiles xg-y-2.po"
25 : ${XGETTEXT=xgettext}
26 ${XGETTEXT} --omit-header --no-location --add-comments=TRANSLATORS
: \
28 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
30 tmpfiles
="$tmpfiles xg-y-2.ok"
35 #. TRANSLATORS: This is an extracted comment.
39 #. TRANSLATORS: This is extracted too.
47 #. Nickname of the Beatles
49 msgid "The Fabulous Four"
54 ${DIFF} xg-y-2.ok xg-y-2.po