Home GnuPG
Diffusion GnuPG 947fedf0e7d9

common: Respect gpgconf.ctl when looking up translations

Description

common: Respect gpgconf.ctl when looking up translations

* common/i18n.c (i18n_init): Use gnupg_localedir() instead of LOCALEDIR.
(i18n_localegettext): Ditto.
* tools/gpgconf-comp.c (my_dgettext): Ditto.

On Unix, gnupg_localedir() returns the locale directory relative to
the root directory of the gnupg installation if specified in the
gpgconf.ctl. Otherwise, it returns the built-in LOCALEDIR.

Details

Provenance
ikloeckerAuthored on Oct 6 2021, 1:19 PM
wernerCommitted on Nov 2 2021, 8:56 PM
Parents
rG49d589c409cc: common: Support gpgconf.ctl also for BSDs.
Branches
Unknown
Tags
Unknown