mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fixed translation issue
This commit is contained in:
parent
113cf10dbe
commit
feb2b1914d
7 changed files with 728 additions and 870 deletions
|
@ -1,5 +1,8 @@
|
|||
2001-04-24 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* getkey.c (get_primary_uid): Return a different string in case of
|
||||
error and made it translatable.
|
||||
|
||||
* build-packet.c (do_secret_key): Ugly, we wrote a zero
|
||||
instead of the calucalted ndays. Thanks to M Taylor for complaining
|
||||
about a secret key import problem.
|
||||
|
|
|
@ -235,6 +235,7 @@ static const char *
|
|||
get_primary_uid ( KBNODE keyblock, size_t *uidlen )
|
||||
{
|
||||
KBNODE k;
|
||||
const char *s;
|
||||
|
||||
for (k=keyblock; k; k=k->next ) {
|
||||
if ( k->pkt->pkttype == PKT_USER_ID
|
||||
|
@ -243,8 +244,11 @@ get_primary_uid ( KBNODE keyblock, size_t *uidlen )
|
|||
return k->pkt->pkt.user_id->name;
|
||||
}
|
||||
}
|
||||
*uidlen = 12;
|
||||
return "[No user ID]";
|
||||
/* fixme: returning translatable constants instead of a user ID is
|
||||
* not good because they are probably not utf-8 encoded. */
|
||||
s = _("[User id not found]");
|
||||
*uidlen = strlen (s);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue