Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 1.48 KB

TRANSLATE.adoc

File metadata and controls

46 lines (27 loc) · 1.48 KB

Translation of Asciidoc files in this repo

Keep translations in sync (repo admin)

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