Page MenuHomeFreeBSD

share/mk/doc.translate.mk: Improve `make po`
ClosedPublic

Authored by dbaio on Aug 15 2018, 4:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 2:07 AM
Unknown Object (File)
Wed, Sep 24, 6:29 AM
Unknown Object (File)
Sun, Sep 21, 11:57 AM
Unknown Object (File)
Aug 26 2025, 6:18 AM
Unknown Object (File)
Aug 25 2025, 8:21 PM
Unknown Object (File)
Aug 25 2025, 2:10 PM
Unknown Object (File)
Aug 25 2025, 7:41 AM
Unknown Object (File)
Jul 30 2025, 8:25 PM

Details

Summary
share/mk/doc.translate.mk: Improve `make po`

- Create .pot (Portable Object Template) files for the en_US documents
  Do not ignore en_US language and generate a `.pot` file instead of a `.po`.
  These are used as template for tools like Zanata.

- Execute `msgattrib` even on a new `[.po|.pot]` file
  This will be useful to wrap long message lines and avoid bigger diffs in
  the future.

Approved by: ???
Differential Revision: https://reviews.freebsd.org/D16726

Diff Detail

Repository
rD FreeBSD doc repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The diff looks good. Did you checked that the current output is the same after your change?

This revision is now accepted and ready to land.Aug 19 2018, 2:28 PM

The diff looks good. Did you checked that the current output is the same after your change?

Thank you for the feedback.

Yes, it's the same content with wrapped lines and this is the same behavior when you execute make po with an existing lang.po file.

Here you can see a .po file with wrapped lines.

Here is the output after a make tran followed by a build.

Is this file maintained by doceng?

This revision was automatically updated to reflect the committed changes.