aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/keygen.c17
2 files changed, 20 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 9f63972f9..474f2cded 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-03 Werner Koch <[email protected]>
+
+ * keygen.c (ask_key_flags): Add a translation remark and implement
+ a workaround.
+
2007-11-28 David Shaw <[email protected]>
* sig-check.c (do_check): Code to try both the incorrect and
diff --git a/g10/keygen.c b/g10/keygen.c
index 64c075065..a74c9a2f2 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1343,13 +1343,26 @@ 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. Here is
+ a description of the fucntions:
+
+ 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) != 8 )
+ {
+ tty_printf ("NOTE: Bad translation at %s:%d. "
+ "Please report.\n", __FILE__, __LINE__);
+ togglers = "11223300";
+ }
/* Only primary keys may certify. */
if(subkey)