diff options
author | Ingo Klöcker <dev@ingo-kloecker.de> | 2021-10-06 13:19:39 +0200 |
---|---|---|
committer | Ingo Klöcker <dev@ingo-kloecker.de> | 2021-10-06 13:42:50 +0200 |
commit | e99b9890c28dae491653279791e52771be866188 (patch) | |
tree | d4186c59ff67bfd6969c93b6cc7f0c966b16392e /tools/gpgconf-comp.c | |
parent | dirmngr: New option --ignore-cert (diff) | |
download | gnupg2-e99b9890c28dae491653279791e52771be866188.tar.xz gnupg2-e99b9890c28dae491653279791e52771be866188.zip |
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.
GnuPG-bug-id: 5999
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r-- | tools/gpgconf-comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index d8e75739f..73921ddb2 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -1082,7 +1082,7 @@ my_dgettext (const char *domain, const char *msgid) switched_codeset = 1; bind_textdomain_codeset (PACKAGE_GT, "utf-8"); - bindtextdomain (DIRMNGR_NAME, LOCALEDIR); + bindtextdomain (DIRMNGR_NAME, gnupg_localedir ()); bind_textdomain_codeset (DIRMNGR_NAME, "utf-8"); } |