Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-06-15 (4 months ago) | 66% | Total: 116 | All time: 9,555 This week: 36 |
Version | License | PHP version | Categories | |||
tradukoj-po 1.13 | MIT/X Consortium ... | 5.3 | Localization, PHP 5, Files and Folders, W... |
Description | Author | |||
This package can convert locale CSV file to PO and send to Tradukoj. Innovation Award
|
This is an alone program that allows to synchronize your po files with tradukoj remote server
First of all, you need
- 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
1.0.2
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:
{
"jlaso/tradukoj-po-mo-module": "*"
}
This is the content of the standard config.ini.dis
[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.
cd tradukoj-po-mo-sync
php sync.php --help / to obtain help
php sync.php --upload=yes --dir=path-to-your-locale-files
php csv2po.php --input=sample.csv
Look inside sample.csv to know the correct format that the tools expects.
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.
You can check the test program with this command:
php examples/php/test.php [locale]
The output of this command for en locale is:
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
MIT
Files (19) |
File | Role | Description | ||
---|---|---|---|---|
Classes (3 files) | ||||
examples (1 directory) | ||||
Changelog | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
config.ini.dis | Data | Auxiliary data | ||
csv2po.php | Example | Example script | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation | ||
sample.csv | Data | Auxiliary data | ||
Shortlog | Data | Auxiliary data | ||
sync.php | Appl. | Application script | ||
VERSION | Data | Auxiliary data |
Files (19) | / | Classes |
File | Role | Description |
---|---|---|
ClientSocketService.php | Class | Class source |
PoClass.php | Class | Class source |
Tools.php | Class | Class source |
Files (19) | / | examples | / | php |
Files (19) | / | examples | / | php | / | i18n |
Files (19) | / | examples | / | php | / | i18n | / | en_GB | / | LC_MESSAGES |
File | Role | Description |
---|---|---|
default.mo | Data | Auxiliary data |
default.po | Data | Auxiliary data |
Files (19) | / | examples | / | php | / | i18n | / | es_ES | / | LC_MESSAGES |
File | Role | Description |
---|---|---|
default.mo | Data | Auxiliary data |
default.po | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.