aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 5983e9656..3f372f163 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -750,8 +750,15 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
else
printf("%08lX",(ulong)keyid2[1]);
printf(" %s",datestr_from_pk(pk2));
- if( pk2->expiredate )
- printf(_(" [expires: %s]"), expirestr_from_pk( pk2 ) );
+ /* Yes, this is an odd way to print the revoked string,
+ but we already have translations for "[revoked] " (with
+ the trailing space) and this is a simple way to take
+ advantage of it. In devel, this will be done rather
+ more elegantly. */
+ if( pk2->is_revoked )
+ printf(" %s",_("[revoked] "));
+ else if( pk2->expiredate )
+ printf(_(" [expires: %s]"), expirestr_from_pk( pk2 ) );
putchar('\n');
if( fpr > 1 )
print_fingerprint( pk2, NULL, 0 );