1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-21 14:47:03 +01:00

* trustdb.c (uid_trust_string_fixed): Use a string that can be atoi-ed,

but also has a comment for the translator.
This commit is contained in:
David Shaw 2004-11-25 03:48:34 +00:00
parent 04b715e4da
commit 3d165c4ecf
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2004-11-24 David Shaw <dshaw@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.

View File

@ -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)