2017 © Pedro Peláez
 

library yml-gettext-extractor

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.

image

modeltech/yml-gettext-extractor

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.

  • Thursday, February 22, 2018
  • by eisberg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

YAML Gettext Extractor Build Status

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YAML file., (*1)

Installation

Manual

Local

Download the yml-gettext-extractor.phar file and store it somewhere on your computer., (*2)

Global

You can run these commands to easily access yml-gettext-extractor from anywhere on your system:, (*3)

$ sudo wget https://github.com/ModelTech/YAML-Gettext-Extractor/releases/download/1.0.0/yml-gettext-extractor.phar -O /usr/local/bin/yml-gettext-extractor
$ sudo chmod a+x /usr/local/bin/yml-gettext-extractor

Then, just run yml-gettext-extractor., (*4)

Composer

Local

$ composer require ModelTech/yml-gettext-extractor

Global

$ composer global require ModelTech/yml-gettext-extractor

Make sure you have ~/.composer/vendor/bin in your PATH and you're good to go:, (*5)

$ export PATH="$PATH:$HOME/.composer/vendor/bin"

Don't forget to add this line in your .bashrc file if you want to keep this change after reboot., (*6)

Setup

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

  • Language: YAML
  • List of extensions: *.yml
  • Invocation:
    • Parser command: <project>/vendor/bin/yml-gettext-extractor --out %o --keys %K --files %F (replace <project> with absolute path to your project)
    • An item in keyword list: -k%k
    • An item in input file list: %f

Now you can update your catalog and Poedit will synchronize it with your yml config files., (*8)

The Versions

22/02 2018

dev-master

9999999-dev

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.

  Sources   Download

The Requires

 

The Development Requires

by Alexander Rakushin

22/02 2018

1.0.1

1.0.1.0

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.

  Sources   Download

The Requires

 

The Development Requires

by Alexander Rakushin

30/09 2017

1.0.0

1.0.0.0

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.

  Sources   Download

The Requires

 

The Development Requires

by Alexander Rakushin