2017 © Pedro Peláez
 

cakephp-plugin lokalise

Push and Pull translations to the Lokalise translations service

image

lorenzo/lokalise

Push and Pull translations to the Lokalise translations service

  • Tuesday, February 14, 2017
  • by lorenzo
  • Repository
  • 1 Watchers
  • 6 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

CakePHP Plugin for Lokalise.co

Lokalise is a service that helps you translated your application strings and keep a track of how those translations change. The idea of this plugin is that you can upload the translation strings to this services, then after translating them, download the translations and put them in the right directories for each locale., (*1)

Installation

First add the plugin to composer, (*2)

composer require lorenzo/lokalise

Then activate the plugin, (*3)

bin/cake plugin load Lokalise

Finally add your project id and lokalise API token to app.php, (*4)

// config/app.php
...

'Lokalise' => [
    'project' => 'your project id',
    'api_token' => 'the api token as provided by lokalise'
]

Usage

You first need to run the i18n extract that is provided by CakePHP. This task will find all call for the __() of functions and generate at least one .pot file in the src/Locale folder, (*5)

bin/cake i18n extract

Once this process is done, you can push your translations to lokalise. You need to be explicit about the locales you want to create/update in lokalise:, (*6)

bin/cake lokalise push --locales en_US,fr_FR,pt_BR

You can now go to your lokalise dashboard and translated all the strings. In order to see the tranlated strings in your applicaiton, you need to download them back:, (*7)

bin/cake lokalise pull

The Versions

14/02 2017

dev-master

9999999-dev

Push and Pull translations to the Lokalise translations service

  Sources   Download

MIT

The Requires

 

14/02 2017

1.0.3

1.0.3.0

Push and Pull translations to the Lokalise translations service

  Sources   Download

MIT

The Requires

 

14/02 2017

1.0.2

1.0.2.0

Push and Pull translations to the Lokalise translations service

  Sources   Download

MIT

The Requires

 

14/02 2017

1.0.1

1.0.1.0

Push and Pull translations to the Lokalise translations service

  Sources   Download

MIT

The Requires

 

14/02 2017

1.0

1.0.0.0

Push and Pull translations to the Lokalise translations service

  Sources   Download

MIT

The Requires