1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Translate the oktext (yes/no).

This commit is contained in:
Werner Koch 2008-11-20 21:54:47 +00:00
parent b7ff1109f9
commit 0ec678b2af
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-11-20 Werner Koch <wk@g10code.com>
* audit.c (writeout_li): Translate OKTEXT.
2008-11-04 Werner Koch <wk@g10code.com>
* i18n.c (i18n_init) [USE_SIMPLE_GETTEXT]: Adjust for changed

View File

@ -457,6 +457,14 @@ writeout_li (audit_ctx_t ctx, const char *oktext, const char *format, ...)
color = "red";
}
if (format && oktext)
{
if (!strcmp (oktext, "Yes"))
oktext = _("Yes");
else if (!strcmp (oktext, "No"))
oktext = _("No");
}
if (ctx->use_html)
{
int i;