1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

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>
This commit is contained in:
Werner Koch 2018-04-09 10:36:02 +02:00
parent 1a5d95e731
commit a4e26f2ee8
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 14 additions and 3 deletions

View file

@ -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;
}