... | ... | @@ -2,36 +2,14 @@ |
|
|
|
|
|
You will need `make`
|
|
|
|
|
|
1. Install zanata-cli on your computer (https://zanata.readthedocs.io/en/latest/client/installation/linux-installation/). For Debian:
|
|
|
1. Add your new strings to locale/en.json only. You can add new strings by doing `make add-key-locales "key:string"` (Example: `make add-key-locales "3rd section:This is a new string."`)
|
|
|
1. Push your work
|
|
|
1. When your work is merged, the new strings will automatically be available on <https://weblate.framasoft.org/projects/framadate/>
|
|
|
1. Translate the new strings on Weblate
|
|
|
1. Weblate will open a merge request with the new translations
|
|
|
|
|
|
```
|
|
|
sudo apt-get install zeroinstall-injector openjdk-8-jre
|
|
|
mkdir -p ~/bin
|
|
|
0install destroy zanata-cli
|
|
|
0install -c add zanata-cli https://raw.githubusercontent.com/zanata/zanata.github.io/master/files/0install/zanata-cli.xml
|
|
|
0install -c update zanata-cli
|
|
|
```
|
|
|
|
|
|
|
|
|
> Note : OpenJDK must be (at least ?) version 8, version 9 and most probably later doesn't seem to work.
|
|
|
|
|
|
1. Configure zanata-cli (https://zanata.readthedocs.io/en/latest/client/configuration/)
|
|
|
1. Do your stuff, add your new strings to locale/en.json only. You can add new strings by doing `make add-key-locales "key:string"` (Example: `make add-key-locales "3rd section:This is a new string."`)
|
|
|
1. Push the new locales: `make push-locales`
|
|
|
(requires the Translate toolkit, provided by `translate-toolkit` on Debian)
|
|
|
1. Translate on https://trad.framasoft.org
|
|
|
1. Pull the new locales: `make pull-locales`
|
|
|
(requires the Perl module JSON, provided by `libjson-perl` on Debian). Only languages translated more than 50% are pulled (you can change it in `Makefile`)
|
|
|
1. Add, commit and enjoy
|
|
|
|
|
|
## How to push one locale to Zanata?
|
|
|
|
|
|
If you want to push a traduction for one locale from a .json file, use the `make push-trad-to-zanata`:
|
|
|
|
|
|
```
|
|
|
make push-trad-to-zanata fr_FR
|
|
|
make push-trad-to-zanata br
|
|
|
```
|
|
|
## How to push translations?
|
|
|
|
|
|
Go to <https://weblate.framasoft.org/projects/framadate/>, go to the right component and language, then `Files` > `Upload translation`
|
|
|
-------------
|
|
|
[Back to homepage](home) |
|
|
\ No newline at end of file |