tree: fa0a21862b9fae485fa26d3fa60441e6f7c840a2 [search]
  1. .gitignore
  2. ar.po
  3. cs.po
  4. de.po
  5. es.po
  6. fr.po
  7. ko.po
  8. Makemodule.am
  9. meson.build
  10. pl.po
  11. po4a.cfg
  12. pt_BR.po
  13. README.md
  14. ro.po
  15. sr.po
  16. sv.po
  17. uk.po
  18. util-linux-man.pot
po-man/README.md

Working with man page translations

Add a new .po file

To enable a new .po file, add its basename (in fact, the language code), to the first line of po4a.cfg:

[po4a_langs] de es fr pl uk

It is not crucial to sort the entries alphabetically, but do it anyway for better readability.

Also, add the “lang/” directory to the .gitignore file.

Update the template and create translated files

This is done in one step using the following simple command:

po4a po4a.cfg

If there's something wrong with a .po file, the command will fail. In any case, have a look at the first line of po4a.cfg if all of the mentioned files are present.

To the man page authors: Please don't forget to add your new man page to po4a.cfg!