changeset 3788:8ddd2b1c49b4

WikiConfigHelp: translate and mark up descriptions
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 24 Jun 2008 13:13:05 +0200
parents f07963fce93a
children 9173925a53da
files MoinMoin/macro/WikiConfigHelp.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/WikiConfigHelp.py	Tue Jun 24 12:55:55 2008 +0200
+++ b/MoinMoin/macro/WikiConfigHelp.py	Tue Jun 24 13:13:05 2008 +0200
@@ -53,12 +53,12 @@
                 default_txt = '%r' % (default, )
                 if len(default_txt) > 50:
                     default_txt = '...'
+                description = _(description or '', wiki=True)
             ret.extend([
                 f.table_row(1),
                 f.table_cell(1), f.text(name), f.table_cell(0),
                 f.table_cell(1), f.code(1, css="backtick"), f.text(default_txt), f.code(0), f.table_cell(0),
-                ## XXX: translate description?
-                f.table_cell(1), f.text(description or ''), f.table_cell(0),
+                f.table_cell(1), description, f.table_cell(0),
                 f.table_row(0),
             ])
         ret.append(f.table(0))