changeset 62 | ef06f71533d9 |
parent 0 | b97547f5f1fa |
child 488 | 2984b3ec7034 |
--- a/web/widgets.py Thu Nov 13 12:33:18 2008 +0100 +++ b/web/widgets.py Thu Nov 13 12:34:36 2008 +0100 @@ -783,8 +783,10 @@ def render_example(self, req): formatstr1 = req.property_value('ui.datetime-format') formatstr2 = req.property_value('ui.date-format') - return req._('%s, or without time: %s') % (now().strftime(formatstr1), - now().strftime(formatstr2)) + return req._('%(fmt1)s, or without time: %(fmt2)s') % { + 'fmt1': now().strftime(formatstr1), + 'fmt2': now().strftime(formatstr2), + }