mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Use ngettext for some strings.
* scd/app-openpgp.c (build_enter_admin_pin_prompt): Use ngettext for some diagnostics. (do_genkey): Ditto. * g10/keyedit.c (check_all_keysigs, menu_delsig, menu_clean): Ditto. * g10/keylist.c (print_signature_stats): Ditto. * g10/keyserver.c (keyserver_refresh): Ditto. * g10/sig-check.c (check_signature_metadata_validity): Ditto. * g10/sign.c (do_sign): Ditto. * g10/trustdb.c (reset_trust_records): Ditto. (validate_keys): Use a table like diagnostic output. -- Suggested-by: Ineiev <ineiev@gnu.org> Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
56275e4392
commit
437965e562
8 changed files with 95 additions and 74 deletions
|
@ -1874,8 +1874,11 @@ build_enter_admin_pin_prompt (app_t app, char **r_prompt)
|
|||
remaining = value[6];
|
||||
xfree (relptr);
|
||||
|
||||
log_info(_("%d Admin PIN attempts remaining before card"
|
||||
" is permanently locked\n"), remaining);
|
||||
log_info (ngettext("%d Admin PIN attempt remaining before card"
|
||||
" is permanently locked\n",
|
||||
"%d Admin PIN attempts remaining before card"
|
||||
" is permanently locked\n",
|
||||
remaining), remaining);
|
||||
|
||||
if (remaining < 3)
|
||||
{
|
||||
|
@ -3587,8 +3590,13 @@ do_genkey (app_t app, ctrl_t ctrl, const char *keynostr, unsigned int flags,
|
|||
log_error (_("generating key failed\n"));
|
||||
goto leave;
|
||||
}
|
||||
log_info (_("key generation completed (%d seconds)\n"),
|
||||
(int)(time (NULL) - start_at));
|
||||
|
||||
{
|
||||
int nsecs = (int)(time (NULL) - start_at);
|
||||
log_info (ngettext("key generation completed (%d second)\n",
|
||||
"key generation completed (%d seconds)\n",
|
||||
nsecs), nsecs);
|
||||
}
|
||||
|
||||
keydata = find_tlv (buffer, buflen, 0x7F49, &keydatalen);
|
||||
if (!keydata)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue