#1120862 RFE: add gettext support for apt-extracttemplates and apt-sortpkgs help messages

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Нестор
Date:
2025-11-17 18:03:02 UTC
Severity:
normal
Tags:
#1120862#5
Date:
2025-11-17 18:01:44 UTC
From:
To:
Currently, the utilities apt-extracttemplates and apt-sortpkgs do not
use gettext
for their help messages. As a result, these messages remain untranslated even
though apt and apt-ftparchive already support localization.

Please consider moving these strings into gettext domains (apt-utils.po or
separate .po files), so that translators can provide proper localization.

Example:
$ apt-extracttemplates -h
apt 3.0.3 (amd64)
Usage: apt-extracttemplates file1 [file2 ...]

apt-extracttemplates is used to extract config and template files
from debian packages. It is used mainly by debconf(1) to prompt for
configuration questions before installation of packages.


$ apt-sortpkgs -h
apt 3.0.3 (amd64)
Usage: apt-sortpkgs [options] file1 [file2 ...]

apt-sortpkgs is a simple tool to sort package information files.
By default it sorts by binary package information, but the -s option
can be used to switch to source package ordering instead.

This change would improve consistency of APT localization across all utilities.