summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-01-25 10:15:10 +0100
committerWerner Koch <wk@gnupg.org>2007-01-25 10:15:10 +0100
commit39fbda4e3c1165ea140ea206967798b73265754b (patch)
tree1734282ca7b00c3cb85151fcb4ccf81abe9fc801 /agent
parentagent/ (diff)
downloadgnupg2-39fbda4e3c1165ea140ea206967798b73265754b.tar.xz
gnupg2-39fbda4e3c1165ea140ea206967798b73265754b.zip
agent/
* genkey.c (check_passphrase_constraints): Get ngettext call right.
Diffstat (limited to 'agent')
-rw-r--r--agent/ChangeLog2
-rw-r--r--agent/genkey.c12
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 <wk@g10code.com>
+ * 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 ();