Commit 9322df25 authored by Guillem Marpons's avatar Guillem Marpons

Documentar com sincronitzar les traduccions

parent dc99635f
# Translation of documents in this repo
## Translate
Create an account at https://translate.zanata.org/account/register.
Then go to https://translate.zanata.org/project/view/apoderamentdigital.
## Keep translations in sync (repo admin)
Prerequisites:
* [po4a](https://po4a.org/download.php)
* [Zanata CLI](http://docs.zanata.org/en/latest/client/)
The following commands use document `la_guia/ESTRATEGIES.md` as example and `es` (spanish) as the language to translate to (from our master in catalan).
Once per document, do:
po4a-gettextize -m la_guia/ESTRATEGIES.md -f text -o markdown -o neverwrap -M utf8 -p po_files/es/ESTRATEGIES.po
po4a-gettextize -m la_guia/ESTRATEGIES.md -f text -o markdown -o neverwrap -M utf8 -p po_files/pot/ESTRATEGIES.pot
zanata-cli push -l es --push-type both
After modifying the spanish version online in Zanata, do:
zanata-cli pull -l es
po4a-translate -m la_guia/ESTRATEGIES.md -f text -o markdown -o neverwrap -M utf8 -p po_files/es/ESTRATEGIES.po -l locale/es/ESTRATEGIES.md -k 0 -w 10000
After modifying the catalan version (master) offline, do:
po4a-updatepo -m la_guia/ESTRATEGIES.md -f text -o markdown -o neverwrap -M utf8 -p po_files/es/ESTRATEGIES.po
po4a-updatepo -m la_guia/ESTRATEGIES.md -f text -o markdown -o neverwrap -M utf8 -p po_files/pot/ESTRATEGIES.pot
zanata-cli push -l es --push-type both
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment