summaryrefslogtreecommitdiffstats
path: root/common/audit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-11-20 22:54:47 +0100
committerWerner Koch <wk@gnupg.org>2008-11-20 22:54:47 +0100
commit0ec678b2aff09eb701000513d7a6b918fde05f14 (patch)
tree0419782dfb4fcf847f7ca42f89fc88155939a849 /common/audit.c
parentFixed a temporary file name collision between gpg and gpgsm under Windows. (diff)
downloadgnupg2-0ec678b2aff09eb701000513d7a6b918fde05f14.tar.xz
gnupg2-0ec678b2aff09eb701000513d7a6b918fde05f14.zip
Translate the oktext (yes/no).
Diffstat (limited to 'common/audit.c')
-rw-r--r--common/audit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/audit.c b/common/audit.c
index 3e1970d8c..3bb128d51 100644
--- a/common/audit.c
+++ b/common/audit.c
@@ -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;