[poedit-users] not able to retrieve inside heredoc gettext in php
"Ricard Coll" <[email protected]> Thu, 19 Jun 2008 17:06:21 +0200
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'am i18n a php based web page,
I know may be it is not the most elegant way, but it uses heredoc
(END_OF_TEXT in the example below):
<?php
[...]
class translate {
public function __($str) {
return gettext($str);
}
}
$t = new translate();
print<<<END_OF_TEXT
[html code]
{t->__('to be traslated')}
_('more text')
gettext('more text')
[html code]
END_OF_TEXT;
[...]
?>
If I use the command line: (on linux)
# xgettext --keyword=__
it works just fine
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.
Any one knows why? or how to solve it?
PS: I've tried to change the "Parser Command" to the one that works on
command line but have no luck.
Thanks in advance!
-------------------------------------------------------------------------
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