aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-11-25 03:48:34 +0000
committerDavid Shaw <[email protected]>2004-11-25 03:48:34 +0000
commit3d165c4ecf3c5d887dc594ef483402997475c4c4 (patch)
tree812948f98250b398f7cd158160bcd8d5628a1390
parent* trustdb.h, trustdb.c (uid_trust_string_fixed): New. Return a fixed-size (diff)
downloadgnupg-3d165c4ecf3c5d887dc594ef483402997475c4c4.tar.gz
gnupg-3d165c4ecf3c5d887dc594ef483402997475c4c4.zip
* trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed,
but also has a comment for the translator.
-rw-r--r--g10/ChangeLog3
-rw-r--r--g10/trustdb.c7
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 <[email protected]>
+ * 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)