Robo tasks to manage gettext

v3.0.1 2016-12-20 21:02 UTC


Robo task to extract gettext values from files using gettext/gettext library

Created by Oscar Otero (MIT License)


Using composer:

composer require gettext/robo

usage example

Create a RoboFile.php with the following code:

require 'vendor/autoload.php';

class RoboFile extends \Robo\Tasks
    use Gettext\Robo\GettextScanner;

     * Scan files to find new gettext values
    public function gettext()
            ->extract('js/', '/.*\.js/') //directory + regex

Use robo to run the code:

robo gettext