Translate po-files using Gengo.com
- Create a virtual env.
- pip install '.'
Honyaku uses the Gengo API with two states:
- It creates a translation job and writes the id in the targeted PO file.
- It checks the job id and displays each translation for manual acceptance.
To use, store your GENGO public/private key in the following variables:
`shell
export GENGO_PUBLIC_KEY="your public key"
export GENGO_PRIVATE_KEY="your private key"
`
Afterwards initiate a new job as follows:
```shell honyaku <path-to-po-file> <source-language> <target-language>
--tone "formal" --limit 100 --tier standard
The limit is recommended to avoid creating thousands of jobs in case Honyaku does something wrong.
Optionally, a command can be sent to the translator:
--tone "formal" --limit 100 --tier standard --commend "Text between ${} and {} are variables and should be left alone"
Once a job has been sent, it's status can be queried by running the same exact command again. Once a translation is available, it has to be accepted (if it's okay) or refused (with a comment).
Note that there are a lot of HTTPS warnings at the moment, due to this bug: gengo/gengo-python#99
In the future we should probably simply use our own REST client.
honyaku is released under GPLv2