gnupg/g10 (ChangeLog trustdb.c)

cvs user dshaw cvs at cvs.gnupg.org
Thu Nov 25 04:41:48 CET 2004


    Date: Thursday, November 25, 2004 @ 04:48:35
  Author: dshaw
    Path: /cvs/gnupg/gnupg/g10

Modified: ChangeLog trustdb.c

* trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed,
but also has a comment for the translator.


-----------+
 ChangeLog |    3 +++
 trustdb.c |    7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)


Index: gnupg/g10/ChangeLog
diff -u gnupg/g10/ChangeLog:1.641 gnupg/g10/ChangeLog:1.642
--- gnupg/g10/ChangeLog:1.641	Wed Nov 24 06:25:02 2004
+++ gnupg/g10/ChangeLog	Thu Nov 25 04:48:34 2004
@@ -1,5 +1,8 @@
 2004-11-24  David Shaw  <dshaw at jabberwocky.com>
 
+	* 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.
Index: gnupg/g10/trustdb.c
diff -u gnupg/g10/trustdb.c:1.132 gnupg/g10/trustdb.c:1.133
--- gnupg/g10/trustdb.c:1.132	Wed Nov 24 06:25:03 2004
+++ gnupg/g10/trustdb.c	Thu Nov 25 04:48:34 2004
@@ -493,13 +493,14 @@
    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)




More information about the Gnupg-commits mailing list