[Moin-user] macro formatter
tw-public at gmx.de
Wed Oct 4 06:29:52 EDT 2006
> I think I got the solution::
> def execute(macro, args):
> _ = macro.request.getText
> return _('= Title 1 =')
_(...) is the translation function.
We use wiki text in our translated system texts, so there is such a
functionality contained there - but don't use that if you just want to
render wiki text.
You can look into MoinMoin/i18n/__init__.py to see how some piece of
text is parsed with the wiki parser and formatter with the html formatter.
More information about the Moin-user