summaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keygen.c')
-rw-r--r--g10/keygen.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index 20377a753..48a7fa271 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1533,13 +1533,27 @@ print_key_flags(int flags)
static unsigned int
ask_key_flags(int algo,int subkey)
{
+ /* TRANSLATORS: Please use only plain ASCII characters for the
+ translation. If this is not possible use single digits. The
+ string needs to 8 bytes long. Here is a description of the
+ functions:
+
+ s = Toggle signing capability
+ e = Toggle encryption capability
+ a = Toggle authentication capability
+ q = Finish
+ */
const char *togglers=_("SsEeAaQq");
char *answer=NULL;
unsigned int current=0;
unsigned int possible=openpgp_pk_algo_usage(algo);
- if(strlen(togglers)!=8)
- BUG();
+ if ( strlen(togglers) != 7 )
+ {
+ tty_printf ("NOTE: Bad translation at %s:%d. "
+ "Please report.\n", __FILE__, __LINE__);
+ togglers = "11223300";
+ }
/* Only primary keys may certify. */
if(subkey)