xgettext > search through smarty templates for {php}{/php} tags

484 views Asked by At

How could I use xgettext with poedit to replace tags like these:

{php}printf(_("You have to pay € %01.2f for this car."), $this->get_template_vars('amount')){/php}

I've renamed my tpl files to .tpl.php but in default form xgettext will only translate string within php tags. I know it should be possible with the parsercommand function in poedit but it lacks documentation on how to do so.

0

There are 0 answers