2017 © Pedro Peláez
 

app tradukoj-po-mo-module

Gettext client API for https://www.tradukoj.com

image

jlaso/tradukoj-po-mo-module

Gettext client API for https://www.tradukoj.com

  • Wednesday, February 18, 2015
  • by jlaso
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

tradukoj-po-mo-module

This is an alone program that allows to synchronize your po files with tradukoj remote server, (*2)

First of all, you need, (*3)

  • Clone this project whenever you want in your computer
  • launch composer install
  • Create an account in tradukoj.com and create a project
  • copy the file config.ini.dis as config.ini and copy the data of project into it

Version

1.0.2, (*4)

Installation

git clone https://github.com/jlaso/tradukoj-po-mo-module tradukoj-po-mo-sync
cd tradukoj-po-mo-sync
composer install  # to install dependencies

You can also add the module by composer.json, adding in require clause:, (*5)

{
    "jlaso/tradukoj-po-mo-module": "*"
}

This is the content of the standard config.ini.dis, (*6)

[jlaso_translations_api_access]
project_id = ?
key = ?
secret = ?
url = 'https://www.tradukoj.com/api/'
managed_locales = ?

You need to copy this file as config.ini, and substitute the ? symbol by the ones provided by tradukoj., (*7)

Invoke the command

cd tradukoj-po-mo-sync
php sync.php --help / to obtain help
php sync.php --upload=yes --dir=path-to-your-locale-files

Tool to transform csv files to po files

php csv2po.php --input=sample.csv

Look inside sample.csv to know the correct format that the tools expects., (*8)

Example

In the folder structure there is a example with LOCALE files and a test program in order to check if gettext is installed in the system., (*9)

You can check the test program with this command:, (*10)

php examples/php/test.php [locale]

The output of this command for en locale is:, (*11)

en_GB
testing gettext
general.no_records_found: No records found.
general.one_record_found: Total one record found
general._d_records_found: Total 10 records found

License

MIT, (*12)

The Versions

18/02 2015

dev-master

9999999-dev https://github.com/jlaso/tradukoj-po-mo-module

Gettext client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

 

api translations symfony gettext tradukoj

25/12 2014

dev-develop

dev-develop https://github.com/jlaso/tradukoj-po-mo-module

Gettext client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

 

api translations symfony gettext tradukoj

14/11 2014

1.0.2

1.0.2.0 https://github.com/jlaso/tradukoj-po-mo-module

Gettext client API for https://www.tradukoj.com

  Sources   Download

MIT

The Requires

 

api translations symfony gettext tradukoj