2017 © Pedro Peláez
 

library robo

Robo tasks to manage gettext

image

gettext/robo

Robo tasks to manage gettext

  • Tuesday, December 20, 2016
  • by oscarotero
  • Repository
  • 1 Watchers
  • 2 Stars
  • 23,969 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

Robo Tasks

Latest Version on Packagist ![Software License][ico-license] Quality Score ![Total Downloads][ico-downloads], (*1)

Robo task to extract gettext values from files using gettext/gettext library, (*2)

Created by Oscar Otero http://oscarotero.com oom@oscarotero.com (MIT License), (*3)

Install

Using composer:, (*4)

composer require gettext/robo

usage example

Create a RoboFile.php with the following code:, (*5)

require 'vendor/autoload.php';

use Robo\Tasks;

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

    /**
     * Scan files to find new gettext values
     */
    public function gettext()
    {
        $this->taskGettext()
            //Scan folders with php files
            ->scan('templates/', '/\.php$/')
            ->scan('other-files/', '/\.php$/')

            //Save the domain1
            ->save('domain1', 'Locale/es/LC_MESSAGES/domain1.po')
            ->save('domain1', 'Locale/gl/LC_MESSAGES/domain1.po')

            //Save the domain2
            ->save('domain2', 'Locale/es/LC_MESSAGES/domain1.po')
            ->save('domain2', 'Locale/gl/LC_MESSAGES/domain1.po')

            ->run();
    }
}

Use robo to run the code:, (*6)

robo gettext

Please see CHANGELOG for more information about recent changes., (*7)

The MIT License (MIT). Please see LICENSE for more information., (*8)

The Versions

20/12 2016

dev-master

9999999-dev https://github.com/oscarotero/GettextRobo

Robo tasks to manage gettext

  Sources   Download

MIT

The Requires

 

The Development Requires

translation js i18n gettext tasks mo po robo

20/12 2016

v3.0.1

3.0.1.0 https://github.com/oscarotero/GettextRobo

Robo tasks to manage gettext

  Sources   Download

MIT

The Requires

 

The Development Requires

translation js i18n gettext tasks mo po robo

31/08 2016

v3.0.0

3.0.0.0 https://github.com/oscarotero/GettextRobo

Robo tasks to manage gettext

  Sources   Download

MIT

The Requires

 

The Development Requires

translation js i18n gettext tasks mo po robo

15/06 2016

v2.0.0

2.0.0.0 https://github.com/oscarotero/GettextRobo

Robo tasks to manage gettext

  Sources   Download

MIT

The Requires

 

The Development Requires

translation js i18n gettext tasks mo po robo

02/10 2015

v1.0.0

1.0.0.0 https://github.com/oscarotero/GettextRobo

Robo tasks to manage gettext

  Sources   Download

MIT

The Requires

 

translation js i18n gettext tasks mo po robo