FS#62034 - [procps-ng] generate localized man pages

Attached to Project: Arch Linux
Opened by Mario Blättermann (mariobl) - Saturday, 16 March 2019, 23:39 GMT
Last edited by Toolybird (Toolybird) - Monday, 02 January 2023, 01:14 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The source tarball of procps-ng-3.3.15 contains a couple of localized manpages, translated into 7 languages, see [1]. The implementation of po4a [2] to create localized versions was already four years ago, but the installation toolchain is still incomplete.

So it is needed to run some additional commands in PKGBUILD. See the attached patch. It adds po4a as a dependency and runs a custom make command in the man-po subdirectory to produce the directory tree and the man pages. Then, it installs the whole tree into the man page hierarchy.

In general, localized man pages from upstream projects should always preferred over those from external man-pages-* projects. Because the latter maintain their own translations, it is needed to add them to »conflicts« in the PKGBUILD. It refers to man-pages-de (community repo) and man-pages-pl (AUR). Once procps-ng gets updated, the man page for uptime.1 needs to be removed from man-pages-de and man-pages-pl and the packages need to be rebuilt to solve the conflicts.

[1] http://translationproject.org/domain/procps-ng-man.html
[2] https://po4a.org/index.php
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 02 January 2023, 01:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  procps-ng 3.3.17-1
Comment by Mario Blättermann (mariobl) - Wednesday, 10 February 2021, 12:52 GMT
Today v3.3.17 has been released (package is already flagged out-of-date), where generating the localized man pages works out of the box. Please don't forget to add po4a as a build requirement.

Loading...