po: Make g10/call-dirmngr.c translatable.

* po/POTFILES.in: Add g10/call-dirmngr.c
* g10/call-dirmngr.c (create_context): Change an i18n sting for easier
reuse.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-12-07 11:56:13 +01:00
parent 438a1ec297
commit 03983711b3
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 4 additions and 3 deletions

View File

@ -240,8 +240,9 @@ create_context (ctrl_t ctrl, assuan_context_t *r_ctx)
err = assuan_transact (ctx, "OPTION honor-keyserver-url-used",
NULL, NULL, NULL, NULL, NULL, NULL);
if (gpg_err_code (err) == GPG_ERR_FORBIDDEN)
log_error (_("keyserver option \"honor-keyserver-url\""
" may not be used in Tor mode\n"));
log_error (_("keyserver option \"%s\""
" may not be used in %s mode\n"),
"honor-keyserver-url", "Tor");
else if (gpg_err_code (err) == GPG_ERR_UNKNOWN_OPTION)
err = 0; /* Old dirmngr versions do not support this option. */
}

View File

@ -34,6 +34,7 @@ common/init.c
g10/armor.c
g10/build-packet.c
g10/call-agent.c
g10/call-dirmngr.c
g10/card-util.c
g10/dearmor.c
g10/decrypt.c
@ -126,4 +127,3 @@ tools/gpgconf.c
tools/no-libgcrypt.c
tools/symcryptrun.c
tools/gpg-check-pattern.c