I AM LISTENING TO
|

WHAT I LIKE

Material Design for Bootstrap TraceKit – stack traces for unhandled JavaScript exceptions in all major browsers
Development     PHP     Timber     TWIG     WordPress    

Timber , TWIG & PoEdit



31. October 2015


Timber / Twig templates are normally not recognized by Poedit. Its just a matter of tweaking the C/C++ extractor within the settings panel.

Add TWIG to the filetypes: *.c;*.cpp;*.h;*.hpp;*.cc;*.C;*.cxx;*.hxx;*.twig

Gettext calls, like {{__(“Points Conversion Rate”, “wplms-extras”)}} in Timber, are being extracted from your templates after that.

Easier than using the gettext extractor 🙂

ADDING GETTEXT FUNCTION TO TWIG

 

Enjoy coding …

 




Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz