diff --git a/browser/common.py b/browser/common.py index c7e0528..69b54b6 100644 --- a/browser/common.py +++ b/browser/common.py @@ -154,6 +154,11 @@ class BaseView(GenericView, I18NView): def checkPermissions(self): return canAccessObject(self.context) + def translate(self, text, msgFactory=_): + if msgFactory is None: + return text + return msgFactory(text) + @Lazy def contextInfo(self): return dict(view=self, context=getName(self.context)) diff --git a/browser/form_macros.pt b/browser/form_macros.pt index 63543d3..f56b708 100644 --- a/browser/form_macros.pt +++ b/browser/form_macros.pt @@ -274,18 +274,22 @@ - + States + - States - loops.simple_publishing - draft + + + loops.simple_publishing:  + + draft