php-i18n Digest 31 Jul 2001 03:54:51 -0000 Issue 74

Topics (messages 175 through 175):

help with xgettext and here-docs
        175 by: Colin Viebrock

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


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!

- Colin




Reply via email to