diff options
author | Werner Koch <wk@gnupg.org> | 2008-11-20 22:54:47 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-11-20 22:54:47 +0100 |
commit | 0ec678b2aff09eb701000513d7a6b918fde05f14 (patch) | |
tree | 0419782dfb4fcf847f7ca42f89fc88155939a849 /common | |
parent | Fixed a temporary file name collision between gpg and gpgsm under Windows. (diff) | |
download | gnupg2-0ec678b2aff09eb701000513d7a6b918fde05f14.tar.xz gnupg2-0ec678b2aff09eb701000513d7a6b918fde05f14.zip |
Translate the oktext (yes/no).
Diffstat (limited to 'common')
-rw-r--r-- | common/ChangeLog | 4 | ||||
-rw-r--r-- | common/audit.c | 8 |
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 <wk@g10code.com> + + * audit.c (writeout_li): Translate OKTEXT. + 2008-11-04 Werner Koch <wk@g10code.com> * 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; |