3 # Test PHP support: string concatenation.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-ph-4.php"
9 cat <<EOF > xg-ph-4.php
14 echo _("1" + "2" . "3");
15 echo _("4" . "5" + "6");
16 echo _("7" . "8" . "9");
20 tmpfiles="$tmpfiles xg-ph-4.tmp.po xg-ph-4.po"
21 : ${XGETTEXT=xgettext}
22 ${XGETTEXT} --omit-header --no-location --extract-all \
23 -d xg-ph-4.tmp xg-ph-4.php
24 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
25 LC_ALL=C tr -d '\r' < xg-ph-4.tmp.po > xg-ph-4.po
26 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
28 tmpfiles="$tmpfiles xg-ph-4.ok"
29 cat <<EOF > xg-ph-4.ok
56 ${DIFF} xg-ph-4.ok xg-ph-4.po