We are using Transifex, and so you will need their cli tool to push or pull translations.
if you already contributed to the lizmap documentation, you have already installed tools, so you can jump directly to the next section.
It is recommended to install Virtualenv and to install Transifex into a dedicated Python environnement. For example:
virtualenv env/
env/bin/pip install transifex-client
You should create a ~/.transifexrc
file containing:
[https://www.transifex.com]
rest_hostname = https://rest.api.transifex.com
token = TOKEN
In the password parameter, you should set an API Key you have to generate from your Transifex account.
See web-client/README.md.
The language should be created into Transifex. When there are enough translated strings, you can download translated files with the script. See README.md web-client.
A new language code for web-client should be added into web-client/module_list.sh
and .tx/config
.
When a new major version of lizmap has been released, you have to follow these steps:
- On the master branch, edit the
web-client/module_list.sh
to reference the new branch - Edit the
.tx/config
to reference all pot of each modules - commit
- create a new branch
lizmap_X_Y
(replace X and Y) from master
git checkout -b lizmap_X_Y
- Into lizmap-web-client, checkout the corresponding branch and edit
.jelixlocales.ini
to verify that it references all modules - update EN locales from the lizmap-web-client branch and push to Transifex
cd web-client
./update_from_lizmap.sh /path/to/lizmap-web-client/.jelixlocales.ini
./push_to_transifex.sh
- Verify on transifex that you have new package
lizmap-X-Y-*
- check strings of your language into Transifex, then :
./update_from_transifex.sh
./push_to_lizmap.sh /path/to/lizmap-web-client/.jelixlocales.ini
- commit the new branch, commit into lizmap, it's done.