From 3d165c4ecf3c5d887dc594ef483402997475c4c4 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 25 Nov 2004 03:48:34 +0000 Subject: [PATCH] * trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed, but also has a comment for the translator. --- g10/ChangeLog | 3 +++ g10/trustdb.c | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index 665769058..c9568407c 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,8 @@ 2004-11-24 David Shaw + * trustdb.c (uid_trust_string_fixed): Use a string that can be + atoi-ed, but also has a comment for the translator. + * trustdb.h, trustdb.c (uid_trust_string_fixed): New. Return a fixed-size translatable string similar to trust_value_to_string. This allows for easier lining up of displays. diff --git a/g10/trustdb.c b/g10/trustdb.c index 75aa75279..62c49c46d 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -493,13 +493,14 @@ trust_letter (unsigned int value) trust_value_to_string(), but are a fixed length. This is needed to make attractive information listings where columns line up properly. The value "10" should be the length of the strings you - choose to translate to. This is the length in printable - columns. */ + choose to translate to. This is the length in printable columns. + It gets passed to atoi() so everything after the number is + essentially a comment and need not be translated. */ const char * uid_trust_string_fixed(PKT_public_key *key,PKT_user_id *uid) { if(!key && !uid) - return _("10"); + return _("10 translator see trustdb.c:uid_trust_string_fixed"); else if(uid->is_revoked) return _("[ revoked]"); else if(uid->is_expired)