bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: xgettext, php and javascript


From: Bruno Haible
Subject: Re: xgettext, php and javascript
Date: Mon, 23 Aug 2004 22:27:33 +0200
User-agent: KMail/1.5

Alexandre Passant wrote:

> 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.

Could you please provide a complete example header.php file? With the
snippet above, neither "Bar" not "Bar2" is extracted.

               Bruno


PS: The bug reporting address for GNU gettext is <bug-gnu-gettext@>, not
<bug-gnu-utils@>. It's only by chance that I saw your message.





reply via email to

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