summaryrefslogtreecommitdiffstats
path: root/g10/encrypt.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-06-20 08:31:07 +0200
committerWerner Koch <wk@gnupg.org>2017-06-23 12:01:20 +0200
commite0877a98a06de797184d3871545979887d5c2b38 (patch)
treef1088568dda0c29a8deec9568fbf0f36c15b853e /g10/encrypt.c
parentgpg: Close cached keydb handle in gpgv. (diff)
downloadgnupg2-e0877a98a06de797184d3871545979887d5c2b38.tar.xz
gnupg2-e0877a98a06de797184d3871545979887d5c2b38.zip
indent,i18n: Make some new strings translatable. Wrap too long lines.
--
Diffstat (limited to 'g10/encrypt.c')
-rw-r--r--g10/encrypt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c
index b92a4f046..0d96659eb 100644
--- a/g10/encrypt.c
+++ b/g10/encrypt.c
@@ -630,10 +630,13 @@ encrypt_crypt (ctrl_t ctrl, int filefd, const char *filename,
for (pkr = pk_list; pkr; pkr = pkr->next)
{
PKT_public_key *pk = pkr->pk;
- if (! gnupg_pk_is_allowed (opt.compliance, PK_USE_ENCRYPTION, pk->pubkey_algo,
+
+ if (! gnupg_pk_is_allowed (opt.compliance, PK_USE_ENCRYPTION,
+ pk->pubkey_algo,
pk->pkey, nbits_from_pk (pk), NULL))
{
- log_error ("key %s not suitable for encryption while in %s mode\n",
+ log_error (_("key %s not suitable for encryption"
+ " while in %s mode\n"),
keystr_from_pk (pk),
gnupg_compliance_option_string (opt.compliance));
rc = gpg_error (GPG_ERR_PUBKEY_ALGO);