[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.
<?php
echo 'Test1';
echo _('Test2');
echo _(<<<TEST
Test3
TEST
);
echo <<<TEST
_(Test4)
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:
<http://savannah.gnu.org/bugs/?27740>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-gettext] [bug #27740] Feature Request: Support Here Doc & Now Doc syntaxes for PHP in xgettext,
Bodo Graumann <=