2017 © Pedro Peláez
 

library wp-easy-translate

Easily manage translations with your team and VCS like GIT or SVN.

image

sourcerer-mike/wp-easy-translate

Easily manage translations with your team and VCS like GIT or SVN.

  • Tuesday, August 16, 2016
  • by sourcerer-mike
  • Repository
  • 0 Watchers
  • 3 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

WP Easy Translate

composer require sourcerer-mike/wp-easy-translate

This tool helps you with your tranlations. Real developer use their console ;), (*1)

wp-easy-translate theme twentysixteen
wp-easy-translate plugin akismet

And then the magic happens:, (*2)

  • All translations with will be fetched.
  • Your source files (po, php or json) will be updated.
  • The binaries (MO-Files) will be updated to.

Translate with ease!, (*3)

Formats

Run wp-easy-translate themes --format php to get a PHP-Array:, (*4)

<?php return array (
  'some_textdomain' => 
  array (
    '' => 
    array (
      'domain' => 'some_textdomain',
      'lang' => 'de',
      'plural-forms' => 'nplurals=2; plural=(n != 1);',
    ),
    'General' => 
    array (
      0 => '',
      1 => 'Allgemeines', // THIS IS VERY THE TRANSLATION HAPPENS
    ),
    'Author' =>

    ...

My favourite! Or wp-easy-translate themes --format json to have a nice and clean list:, (*5)

{
    "General": "Allgemein",
    "Author": "Autor",
    "Steak": "Schnitzel",
    "Tank": "Panzerwagen",
}

Formats like YAML are planned. Even CSV will come so that your customer can contribut with translations made in Excel. I guess they don't like to edit JSON or YAML files ;), (*6)

Updates every time

Work and run wp-easy-translate themes again to update your PO-Files:, (*7)

  • Obsolete translations will be removed
  • New translations will be added
  • MO-Files are updated every time.

Copy and Translate

Everytime wp-easy-translate theme foo runs there will be a "empty.po" (or "empty.php", "empty.json") file in the languages folder of every theme. Just copy it to "de_DE.po" or "en_GB.po" (or "php", "json") and add the translations., (*8)

With every run of wp-easy-translate theme foo the according MO-File ("de_DE.mo", "en_GB.mo") will be updated., (*9)

The Versions

16/08 2016

dev-master

9999999-dev

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/08 2016

0.3.1

0.3.1.0

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/06 2016

dev-feature/theme

dev-feature/theme

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/06 2016

0.3.0

0.3.0.0

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/06 2016

dev-develop

dev-develop

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/04 2016

0.2.1

0.2.1.0

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/03 2016

0.2.0

0.2.0.0

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/03 2016

0.1.0

0.1.0.0

Easily manage translations with your team and VCS like GIT or SVN.

  Sources   Download

MIT

The Requires

 

The Development Requires