3 # Test C++ support: test --flag that introduces qt-format.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-c-13.cc"
9 cat <<\EOF > xg-c-13.cc
13 tr ("deleted %n files", "", numdel);
16 tmpfiles="$tmpfiles xg-c-13.tmp.po xg-c-13.po"
17 : ${XGETTEXT=xgettext}
18 ${XGETTEXT} --omit-header --no-location -d xg-c-13.tmp \
20 --flag=foo:1:qt-format --flag=gettext:1:pass-qt-format \
21 --keyword=tr:1,1t --keyword=tr:1,2c,2t --keyword=tr:1,1,2c,3t \
23 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
24 LC_ALL=C tr -d '\r' < xg-c-13.tmp.po > xg-c-13.po
25 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
27 tmpfiles="$tmpfiles xg-c-13.ok"
28 cat <<EOF > xg-c-13.ok
42 msgid "deleted %n files"
43 msgid_plural "deleted %n files"
49 ${DIFF} xg-c-13.ok xg-c-13.po