https://github.com/mlocati/concrete5-translation-tools
Useful translations tools for concrete5
https://github.com/mlocati/concrete5-translation-tools
Last synced: about 2 months ago
JSON representation
Useful translations tools for concrete5
- Host: GitHub
- URL: https://github.com/mlocati/concrete5-translation-tools
- Owner: mlocati
- Created: 2013-02-22T14:53:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-11T13:18:57.000Z (over 8 years ago)
- Last Synced: 2025-02-05T08:37:13.065Z (3 months ago)
- Language: Python
- Size: 453 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
concrete5 translation tools
===========================Some useful tools to manage concrete5 translations.
## Setup
You have to create the file `configuration/credentials.php` (you may use the `sample-credentials.php` as a template), where you have to store the Transifex username and password.
You can also customize other parameters by creating the file `configuration/customize.php`: see the `configuration/sample-customize.php` file to know the available options.## `core2pot.php`
Generates .pot files from the concrete5 development branches and moves those .pot files to a location that should be made accessible by Transifex.
This script should be launched on a regular basis, so that Transifex can be kept up-to-date with the latest version of the translatable strings (the .pot files generated by this script).## `transifex2github.php`
Downloads core translations from Transifex and updates (if necessary) a repository on GitHub containing the .po and .mo files.
This script should be launched on a regular basis, so that the GitHub repository can effectively reflect the Transifex changes, and final users have a place where they can download the latest .mo files.## `transifex-add-version.php`
Clones .po translations from a Transifex resource to another Transifex resource.
This script should be launched manually when a new concrete5 version is released.
First of all you have to the .pot of the released concrete5 version (with [i18n.php](https://github.com/mlocati/concrete5-build)).The you have two options:
- automatic creation of the new Transifex resource
- create the new Transifex resource for this concrete5 version with: `php transifex-add-version.php --source=core --destination=core- --pot=`
- manual creation of the new Transifex resource
- manually create the new Transifex resource from within the Transifex website
- copy the translations to the new resource with: `php transifex-add-version.php --source=core --destination=core-`## `release-translations.php`
Fetches all the core translations from Transifex and updates a local directory with .mo files and some stats.
This data is used by the page http://www.concrete5.org/developers/translate/## `transifex-compare-resources.php`
Compares two Transifex resources.## `packages-translations.php`
Downloads the packages translations from Transifex and updates (if necessary) a repository on GitHub containing .mo files and some stats.