News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Dev.Umpirsky.com:
Use Poedit to Extract Translations from Twig Templates
September 04, 2012 @ 11:34:51

In this new post to the Umpirsky.com development blog, they show you how to use poedit to extract translations from Twig templates.

By default, Poedit does not have the ability to parse Twig templates. In Twig documenation there is a simple example which shows how to extract translations. This can work with few modifications, but I wanted to make reusable tool which will allow you to parse Twig templates just like you do with plain PHP templates.

The result is the Twig-Gettext-Extractor that's set up inside Poedit as a parser command for "*.twig" files. This automatically extracts the information so that the editor can read the data from the template.

0 comments voice your opinion now!
twig template poedit translation gettext extract


blog comments powered by Disqus

Similar Posts

Quinton Parker's Blog: Smarty. Solving the wrong problem since 2001

SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 2

YoungCoders.com: Debunking the Bloated Smarty Myth

Zend Developer Zone: Zend Framework News 2006/11/29

Dev.Umpirsky.com: Use Poedit to Extract Translations from Twig Templates


Community Events





Don't see your event here?
Let us know!


unittest framework community symfony introduction language api library interview series deployment install zendserver tips release package bugfix opinion laravel podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework