[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xgettext, php and javascript
From: |
Alexandre Passant |
Subject: |
xgettext, php and javascript |
Date: |
Fri, 20 Aug 2004 00:00:26 +0200 |
User-agent: |
Internet Messaging Program (IMP) 3.2.5 |
Hi all,
I've found something strange while using xgettext with some PHP code.
The code is as follows:
$foo = _("Bar");
echo <<<_END_
[...]
<script language="javascript">
[...]
</script>
_END_;
$foo2 = _("Bar2");
[...]
When I use xgettext to extract strings ("xgettext -LPHP -s -o messages.po
header.php"), all strings after the "_END_" block are not extracted.
The problem seems to be related to this output of <script> tag, as it works fine
if I use another tag, or if I echo "<script>" instead of the _END_ block, so
there may be something wrong with language recognition.
Cheers,
Alexandre Passant
- xgettext, php and javascript,
Alexandre Passant <=