[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [bug #27740] Feature Request: Support Here Doc & Now Doc s

From: Bodo Graumann
Subject: [bug-gettext] [bug #27740] Feature Request: Support Here Doc & Now Doc syntaxes for PHP in xgettext
Date: Fri, 23 Sep 2016 10:18:47 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #2, bug #27740 (project gettext):

The bug referenced below (https://savannah.gnu.org/bugs/?41406) is only
concerned with correctly parsing files using nowdoc, but not with extracting
those nowdoc strings for translation.

At least my tests with xgettext version 0.19.7 show that heredoc text is not
extracted, e.g.


echo 'Test1';

echo _('Test2');

echo _(<<<TEST

echo <<<TEST


processed with xgettext test.php -o test.pot -L PHP only extracts Test2.

This feature (Test3) would be really useful.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]