Re: [poedit-users] not able to retrieve inside heredoc gettext in php

Vaclav Slavik <[email protected]> Thu, 19 Jun 2008 18:00:51 +0200
Newsgroups gmane.editors.poedit.user
Message-ID <1213891251.31657.5.camel@localhost>
On Thu, 2008-06-19 at 17:06 +0200, Ricard Coll wrote:
> but when I try to use "update from sources" (on windows XP pro SP2)
> all gettext, _ are shown as expected but the once INSIDE heredoc are
> not.

*Of course* they aren't. The PHP parser in xgettext extracts calls to
_() or gettext() function. It doesn't -- and cannot -- read your mind
and know that you want it to somehow recognize and parse parts of a
(multiline) string *literal* that look like PHP code (but aren't
because, again, it's a string literal).

Not that there would be any reason to extract it -- the code isn't doing
what you probably think it does and it would never be translated at
runtime anyway.

Regards,
Vaclav

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Poedit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/poedit-users
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEABECAAYFAkhagrMACgkQxDYa/UZSZMnBywCdFAWH5KbGOQWgE4zQ15TsaXFa
vV0An2sC4Zoj76H3psckrCtWR70OO7In
=VMLX
-----END PGP SIGNATURE-----