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)
Thu, Jan 30, 4:36 AM
Unknown Object (File)
Sun, Jan 26, 2:55 PM
Unknown Object (File)
Fri, Jan 17, 2:04 PM
Unknown Object (File)
Sun, Jan 12, 2:09 PM
Unknown Object (File)
Nov 18 2024, 11:30 PM
Unknown Object (File)
Nov 12 2024, 4:29 PM
Unknown Object (File)
Oct 10 2024, 5:04 PM
Unknown Object (File)
Sep 29 2024, 3:24 AM

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.