Create an account at https://translate.zanata.org/account/register.
Prerequisites:
To use Zanata CLI it’s important to configure it in your local system.
The following commands use document modules/ROOT/pages/introduction.adoc
as example and ca
(Catalan) as the language to translate to (from our master in English).
Once per file, do:
po4a-gettextize -m modules/ROOT/pages/introduction.adoc -f asciidoc -M utf8 -p po_files/ca/introduction.po po4a-gettextize -m modules/ROOT/pages/introduction.adoc -f asciidoc -M utf8 -p po_files/pot/introduction.pot zanata-cli push -l ca --push-type both
After modifying the Catalan version online in Zanata, do:
zanata-cli pull -l ca po4a-translate -m modules/ROOT/pages/introduction.adoc -f asciidoc -M utf8 -p po_files/ca/introduction.po -l locale/ca/introduction.adoc -k 0 -w 10000
After modifying the English version (master) offline, do:
po4a-updatepo -m modules/ROOT/pages/introduction.adoc -f asciidoc -M utf8 -p po_files/ca/introduction.po po4a-updatepo -m modules/ROOT/pages/introduction.adoc -f asciidoc -M utf8 -p po_files/pot/introduction.pot zanata-cli push -l ca --push-type both