Hi Colin,
xgettext finds strings based on quotation - AFAIK you can't use heredoc
syntax.
--zak
Colin Viebrock wrote:
> First off, I'm new to i18n and gettext ... but I think it will serve my
> needs. So, imagine this php script:
>
> <?php
>
> echo _( <<< EOF
> It's a great day!
> EOF
> );
>
> ?>
>
> When I run "xgettext file.php" on it, I get warnings about "unterminated
> character constant" ... which I assume is the single quote in "it's".
>
> Is there a way around this? Or am I hoping for too much trying to use
> gettext and here-docs together?
>
> Also, how do I tell xgettext to only look for strings inside _( ... )
> blocks? As it is, it will flag things like the SRC attribute in image
tags,
> HREF in link tags, etc. (anything in quotes, I think).
>
> Thanks in advance!
--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]