This package is abandoned and no longer maintained. The author suggests using the wisembly/xgettext package instead.

Javascript poEdit parser written in PHP

Installs: 8 384

Dependents: 1

Stars: 9

Watchers: 3

Forks: 2

Language: PHP

0.8.0 2014-11-27 10:12 UTC


Build Status

xgettext PHP implementation. Curently provides 2 parsers:

  • Javascript parser
  • Handlebars parser


The recommended way to install Xgettext is through Composer:

    "require": {
        "wisembly/xgettext-php": "@stable"



Javascript parser

Simply create a new parser in Poedit (name it for example Javascript)`. Then, set up xgettext like this:

configure xgettext parser

WARNING: Javascript parser currently parse only 1rst and 2nd arguments. It also do not parse strings with non matching parenthesis. (avoid smileys..)

Handlebars parser

Same like above, just add -l "handlebars" in yout xgettext call to stipulate you want to use handlebars parser with xgettext-php.

configure xgettext parser

JSON Dumper

$ bin/dumper -i input.po -o output.json


PHP >= 5.3


Xgettext is released under the MIT License. See the bundled LICENSE file for details.