mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
49d589c409
commit
947fedf0e7
2 changed files with 4 additions and 4 deletions
|
@ -1442,7 +1442,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");
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue