aboutsummaryrefslogtreecommitdiffstats
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
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/ChangeLog4
-rw-r--r--common/audit.c8
2 files changed, 12 insertions, 0 deletions
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 <[email protected]>
+
+ * audit.c (writeout_li): Translate OKTEXT.
+
2008-11-04 Werner Koch <[email protected]>
* 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;