mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-16 08:33:24 +02:00
(ask_expire_interval): For better translations chnage 2
strings.
This commit is contained in:
parent
9e3526f236
commit
29dd149778
@ -1,5 +1,8 @@
|
|||||||
2004-12-20 Werner Koch <wk@g10code.com>
|
2004-12-20 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* keygen.c (ask_expire_interval): For better translations chnage 2
|
||||||
|
strings.
|
||||||
|
|
||||||
* seckey-cert.c (do_check): Handle case when checksum was okay but
|
* seckey-cert.c (do_check): Handle case when checksum was okay but
|
||||||
passphrase still wrong. Roman Pavlik found such a case.
|
passphrase still wrong. Roman Pavlik found such a case.
|
||||||
|
|
||||||
|
17
g10/keygen.c
17
g10/keygen.c
@ -1570,18 +1570,21 @@ ask_expire_interval(int object)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( !valid_days ) {
|
if( !valid_days ) {
|
||||||
tty_printf(_("%s does not expire at all\n"),
|
tty_printf((object==0)
|
||||||
object==0?"Key":"Signature");
|
? _("Key does not expire at all\n") :
|
||||||
|
: _("Signature does not expire at all\n"));
|
||||||
interval = 0;
|
interval = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
interval = valid_days * 86400L;
|
interval = valid_days * 86400L;
|
||||||
/* print the date when the key expires */
|
|
||||||
tty_printf(_("%s expires at %s\n"),
|
tty_printf(object==0
|
||||||
object==0?"Key":"Signature",
|
? _("Key expires at %s\n")
|
||||||
|
: _("Signature expires at %s\n"),
|
||||||
asctimestamp((ulong)(curtime + interval) ) );
|
asctimestamp((ulong)(curtime + interval) ) );
|
||||||
/* FIXME: This check yields warning on alhas:
|
/* FIXME: This check yields warning on alhas: Write a
|
||||||
write a configure check and to this check here only for 32 bit machines */
|
configure check and to this check here only for 32 bit
|
||||||
|
machines */
|
||||||
if( (time_t)((ulong)(curtime+interval)) < 0 )
|
if( (time_t)((ulong)(curtime+interval)) < 0 )
|
||||||
tty_printf(_("Your system can't display dates beyond 2038.\n"
|
tty_printf(_("Your system can't display dates beyond 2038.\n"
|
||||||
"However, it will be correctly handled up to 2106.\n"));
|
"However, it will be correctly handled up to 2106.\n"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user