diff options
Diffstat (limited to 'agent')
-rw-r--r-- | agent/ChangeLog | 2 | ||||
-rw-r--r-- | agent/genkey.c | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/agent/ChangeLog b/agent/ChangeLog index 110b604ab..319cb5d35 100644 --- a/agent/ChangeLog +++ b/agent/ChangeLog @@ -1,5 +1,7 @@ 2007-01-25 Werner Koch <[email protected]> + * genkey.c (check_passphrase_constraints): Get ngettext call right. + * protect-tool.c (get_passphrase): New arg OPT_CHECK. (get_new_passphrase): Enable OTP_CHECK on the first call. * command.c (cmd_get_passphrase): Implement option --check. diff --git a/agent/genkey.c b/agent/genkey.c index 1ac7c6624..5a25d4771 100644 --- a/agent/genkey.c +++ b/agent/genkey.c @@ -87,12 +87,12 @@ check_passphrase_constraints (ctrl_t ctrl, const char *pw) if (strlen (pw) < minlen ) /* FIXME: should be an utf-8 length. */ { char *desc = xtryasprintf - ( ngettext (_("Warning: You have entered a passphrase that%%0A" - "is obviously not secure. A passphrase should%%0A" - "be at least %u character long."), - _("Warning: You have entered a passphrase that%%0A" - "is obviously not secure. A passphrase should%%0A" - "be at least %u characters long."), minlen), minlen ); + ( ngettext ("Warning: You have entered a passphrase that%%0A" + "is obviously not secure. A passphrase should%%0A" + "be at least %u character long.", + "Warning: You have entered a passphrase that%%0A" + "is obviously not secure. A passphrase should%%0A" + "be at least %u characters long.", minlen), minlen ); if (!desc) return gpg_error_from_syserror (); |