From c1525f1758d5e2cd8b5ae1320986a5c9473636dc Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 26 Dec 2014 18:23:42 +0100 Subject: [PATCH] sgpgme_sigstat_info_*(): Don't translate GPG_ERR_GENERAL to "signature hasn't been checked" --- src/plugins/pgpcore/sgpgme.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c index 3de07e2..1cc7e5f 100644 --- a/src/plugins/pgpcore/sgpgme.c +++ b/src/plugins/pgpcore/sgpgme.c @@ -245,6 +245,9 @@ gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status) g_free(id); break; } + case GPG_ERR_GENERAL: + result = g_strdup_printf(_("Verifying the signature from %s failed"), uname); + break; default: result = g_strdup(_("The signature has not been checked.")); break; @@ -332,6 +335,11 @@ gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status) _("BAD signature from \"%s\"\n"), uid); break; + case GPG_ERR_GENERAL: + g_string_append_printf(siginfo, + _("Verifying the signature from \"%s\" failed\n"), + uid); + break; default: break; } -- 2.1.2