1#!/bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test PHP support: string concatenation. 5 6cat <<EOF > xg-ph-4.php 7<? 8echo _("foo"."bar"); 9echo _("hello " . 10"world"); 11echo _("1" + "2" . "3"); 12echo _("4" . "5" + "6"); 13echo _("7" . "8" . "9"); 14?> 15EOF 16 17: ${XGETTEXT=xgettext} 18${XGETTEXT} --omit-header --no-location --extract-all \ 19 -d xg-ph-4.tmp xg-ph-4.php || Exit 1 20LC_ALL=C tr -d '\r' < xg-ph-4.tmp.po > xg-ph-4.po || Exit 1 21 22cat <<EOF > xg-ph-4.ok 23msgid "foobar" 24msgstr "" 25 26msgid "hello world" 27msgstr "" 28 29msgid "1" 30msgstr "" 31 32msgid "2" 33msgstr "" 34 35msgid "3" 36msgstr "" 37 38msgid "45" 39msgstr "" 40 41msgid "6" 42msgstr "" 43 44msgid "789" 45msgstr "" 46EOF 47 48: ${DIFF=diff} 49${DIFF} xg-ph-4.ok xg-ph-4.po 50result=$? 51 52exit $result 53