diff options
Diffstat (limited to 'g10')
-rw-r--r-- | g10/ChangeLog | 3 | ||||
-rw-r--r-- | g10/keygen.c | 18 |
2 files changed, 19 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 211cff97f..dafcd50f2 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,8 @@ 2007-12-03 Werner Koch <[email protected]> + * keygen.c (ask_key_flags): Add a translation remark and implement + a workaround. + * gpg.c (reopen_std): Moved to ../common and renamed to gnupg_reopen_std. 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) |