changeset 1841:aed7438f264f

fix NewPage macro button label to not be formatted as wiki text
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 27 Feb 2007 22:28:39 +0100
parents 0fc52d861828
children e8bada5aaae0
files MoinMoin/macro/NewPage.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/NewPage.py	Mon Feb 26 14:45:02 2007 +0100
+++ b/MoinMoin/macro/NewPage.py	Tue Feb 27 22:28:39 2007 +0100
@@ -85,8 +85,8 @@
 
         if label:
             # Try to get a translation, this will probably not work in
-            # most case, but better than nothing.
-            label = _(label)
+            # most cases, but better than nothing.
+            label = self.request.getText(label, formatted=False)
         else:
             label = _("Create New Page")