How do I get gettext and poedit to recognize custom file types?
I am trying to get Smarty and gettext to work together in my project. Smarty currently uses .tpl
files for its templating system.
I am using PoEdit to create directory files and I have added '* .tpl' to file extensions under PHP, but when I try to scan for gettext lines I get the following errors and cannot find my lines:
xgettext: warning:
../libs/smarty/debug.tpl' extension
tpl file 'unknown; will try C
xgettext: warning:../template/login.tpl' extension
tpl file 'unknown; will try C
xgettext: warning:../template/index.tpl' extension
tpl file 'unknown; will try C
Ok how can I make it work?
source to share