DH_TRANSLATIONS(1) Debhelper DH_TRANSLATIONS(1)

dh_translations - perform common translation related operations

dh_translations [debhelper options]

dh_translations is a debhelper program to perform common translation related operations during package build:

  • Try to build a current PO template. Only the main gettext domain of the project is dealt with; dh_translations does not build help-* templates or other additional translation templates.
  • Remove inline translations from *.desktop, *.server, *.schemas, and *.policy files and replace them with a link to the gettext domain, so that strings in them will get translated at runtime from *.mo files. This allows language packs to ship updated translations.

The gettext domain can be passed through this option. This is useful for packages with the Meson build system to tell dh_translations which domain to use if there are multiple candidates. It's also useful for other packages if dh_translations fails to find the correct domain by itself.

debhelper(1)

Martin Pitt <martin.pitt@ubuntu.com>

Copyright (C) 2011 Canonical Ltd., licensed under the GNU GPL v2 or later.

2023-09-26 154