2017 © Pedro PelĆ”ez
 

application twig-gettext-extractor

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

image

unit27/twig-gettext-extractor

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

  • Tuesday, June 13, 2017
  • by unit27
  • Repository
  • 0 Watchers
  • 0 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 34 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates., (*1)

Installation

The recommended way to install Twig Gettext Extractor is through composer., (*2)

{
    "require": {
        "unit27/twig-gettext-extractor": "1.1.*"
    }
}

Setup

By default, Poedit does not have the ability to parse Twig templates. This can be resolved by adding an additional parser (Edit > Preferences > Parsers) with the following options:, (*3)

  • Language: Twig
  • List of extensions: *.twig
  • Invocation:
    • Parser command: <project>/vendor/bin/twig-gettext-extractor --sort-output --force-po -o %o %C %K -L PHP --files %F
    • An item in keyword list: -k%k
    • An item in input file list: %f
    • Source code charset: --from-code=%c

, (*4)

Now you can update your catalog and Poedit will synchronize it with your twig templates., (*5)

Tests

To run the test suite, you need composer and PHPUnit., (*6)

$ composer install --dev
$ phpunit

License

Twig Gettext Extractor is licensed under the MIT license., (*7)

The Versions

13/06 2017

dev-master

9999999-dev

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Przemyslaw Ankowski

14/02 2013

1.1.3

1.1.3.0

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/01 2013

1.1.2

1.1.2.0

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/11 2012

1.1.1

1.1.1.0

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

  Sources   Download

MIT

The Requires

 

The Development Requires

31/08 2012

1.1.0

1.1.0.0

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.

  Sources   Download

MIT

The Requires

 

29/08 2012