diff --git a/common/ChangeLog b/common/ChangeLog index 94de8fd26..c1ae39b6b 100644 --- a/common/ChangeLog +++ b/common/ChangeLog @@ -1,3 +1,7 @@ +2008-11-20 Werner Koch + + * audit.c (writeout_li): Translate OKTEXT. + 2008-11-04 Werner Koch * i18n.c (i18n_init) [USE_SIMPLE_GETTEXT]: Adjust for changed 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;