summaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-04-09 10:36:02 +0200
committerWerner Koch <wk@gnupg.org>2018-04-09 10:36:26 +0200
commita4e26f2ee852003707857ab0635b783acb89a2f8 (patch)
treeabdf9aedbd79d9e212ef0864a940706c93c87936 /g10/keyedit.c
parentgpg: Check that a key may do certifications. (diff)
downloadgnupg2-a4e26f2ee852003707857ab0635b783acb89a2f8.tar.xz
gnupg2-a4e26f2ee852003707857ab0635b783acb89a2f8.zip
doc: Document --key-edit:change-usage
* g10/keyedit.c (menu_changeusage): Make strings translatable. -- GnuPG-bug-id: 3816 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--g10/keyedit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 4ade5cdba..7cd883d78 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -4535,10 +4535,10 @@ menu_changeusage (ctrl_t ctrl, kbnode_t keyblock)
return 0;
}
else if (n1)
- tty_printf ("Changing usage of a subkey.\n");
+ tty_printf (_("Changing usage of a subkey.\n"));
else
{
- tty_printf ("Changing usage of the primary key.\n");
+ tty_printf (_("Changing usage of the primary key.\n"));
mainkey = 1;
}
@@ -4578,6 +4578,8 @@ menu_changeusage (ctrl_t ctrl, kbnode_t keyblock)
if ((mainkey && main_pk->version < 4)
|| (!mainkey && sub_pk->version < 4))
{
+ /* Note: This won't happen because we don't support
+ * v3 keys anymore. */
log_info ("You can't change the capabilities of a v3 key\n");
return 0;
}
@@ -4602,7 +4604,7 @@ menu_changeusage (ctrl_t ctrl, kbnode_t keyblock)
if (rc)
{
log_error ("make_keysig_packet failed: %s\n",
- gpg_strerror (rc));
+ gpg_strerror (rc));
return 0;
}