From 0ec678b2aff09eb701000513d7a6b918fde05f14 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 20 Nov 2008 21:54:47 +0000 Subject: Translate the oktext (yes/no). --- common/audit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/audit.c') 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; -- cgit v1.2.3