aboutsummaryrefslogtreecommitdiffstats
path: root/common/audit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-11-20 21:54:47 +0000
committerWerner Koch <[email protected]>2008-11-20 21:54:47 +0000
commit0ec678b2aff09eb701000513d7a6b918fde05f14 (patch)
tree0419782dfb4fcf847f7ca42f89fc88155939a849 /common/audit.c
parentFixed a temporary file name collision between gpg and gpgsm under Windows. (diff)
downloadgnupg-0ec678b2aff09eb701000513d7a6b918fde05f14.tar.gz
gnupg-0ec678b2aff09eb701000513d7a6b918fde05f14.zip
Translate the oktext (yes/no).
Diffstat (limited to '')
-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;