#1 Add a po4a.cfg for automatic pot, po and localized asciidoc files
Closed by pbokoc. Opened by bex.
Unknown source master

Download 1.patch

Original PR by @jibecfed

Using a config file enables:
automatic pot generation
automatic po update
* automatic generation of localized asciidoc content

I don't have a patched version of po4a for now. So I can't test it with bian's patches. But there is no reason it doesn't work.
The threshold is 0%, it means a localized version will automatically be produce, even if no translation are available.
To add a new language, just add it next to fr in make_trans.sh

When we worked on this at Flock, I remember you wanted the generic template (POT files) to be in a separate folder from translation.

In zanata files, you have to change trans-dir.

Here is what I wrote:
pot
./pot/

What you probably want is:
pot
./{locale}/

This means:

  • my source template directory is the pot folder, which is a directory at the same level that zanata.xml
  • my translation is to save in a folder using the language locale at the same level that zanata.xml

More information: http://docs.zanata.org/en/release/client/configuration/

This being worked in https://pagure.io/fork/bex/fedora-docs/docs-fp-o/branch/multi-language-support

@bex, this has been open for a year; can you please tell me what you want to do with this? Is it still relevant after the Antora migration?

This is relevant for the work that @jibecfed and @asamalik are doing with translations and that I should be helping with. This particular PR will close, but the code is still being used for reference.

that's true, please let this open, hopefully it will be done really soon

we can close this, a new PR is open with improved import/export scripts: https://pagure.io/fedora-docs/install-guide/pull-request/19

Pull-Request has been closed by pbokoc

Metadata