Skip to content
Advertisement

Tag: poedit

How to use Poedit with smarty templates?

I’m using PoEdit on smarty templates (phtml and tpl files) with the following Poedit configuration for PHP parser : Extensions: Parser command : If i’m using gettext inside PHP tags <?php _(‘test’); ?> Poedit detect that translation as expected. But i’m using Smarty {_(‘test’)} for displaying the translation, Poedit don’t detect it. Is there a way to make Smarty detect

Gettext not working, what’s wrong?

I’m using gettext for adding different translations into my webpage. I’ve just installed it and I think it works fine. I also use Poedit for the .po files. This is the code I have for my gettext …

Advertisement