title: Using Poedit to parse Twig templates in a Zend Framework 2 application
body: <p>I've downloaded Poedit, and am attempting to parse my Twig templates.  A few tutorials online pointed to <a href="https://github.com/umpirsky/Twig-Gettext-Extractor" rel="nofollow">https://github.com/umpirsky/Twig-Gettext-Extractor</a> which I later found was referenced in  a tutorial here <a href="http://aromatix.fr/?p=611" rel="nofollow">http://aromatix.fr/?p=611</a> (French) with full instructions.</p>
  
  <p>I got the tutorial done, installed umpirsky/twig-gettext-extractor, and when it tries to build the catalog it dies with "cannot execute program".  The error popup contains this command:</p>
  
  <pre><code>/path/to/twig-gettext-extractor --sort-output --force-po -o "/var/folders/lw/0f57k9dj617_ntr760qw2lcr0000gp/T/poeditNoXV1p/3extracted.pot" --from-code=UTF-8  -k_ -ktranslate -ksetLabel -ksetValue -ksetLegend -k_refresh -L PHP --files  "vendor/module/core/view/ldp/forgot/email.twig" "vendor/module/core/view/ldp/forgot/index.twig" "vendor/module/core/view/ldp/login/index.twig" "vendor/module/core/view/ldp/main/index.twig" "vendor/module/core/view/ldp/register/index.twig"
  </code></pre>
  
  <p>At first, I noticed that the random folder that's specified as %o by the Poedit parser (e.g., poeditNoXV1p above) didn't exist.  So I "hacked" twig-gettext-extractor and made it assert the existence of the path in the -o parameter.  That "kinda" fixed it from the command line, but it still doesn't work from the poedit program.</p>
  
  <p>Has anyone gotten this setup to work?</p>