Changeset 8548 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 29 May 2012, 22:34:04 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py
r8396 r8548 34 34 from zope.site.hooks import getSite 35 35 from waeup.kofa.interfaces import IKofaObject, IUserAccount, IKofaUtils 36 from waeup.kofa.interfaces import MessageFactory as _ 36 37 from waeup.kofa.utils.helpers import to_timezone 37 38 from waeup.kofa.browser.interfaces import ITheme … … 95 96 class JSAction(Action): 96 97 97 msg = '\'Are you sure?\''98 msg = _('\'Are you sure?\'') 98 99 99 100 def render(self): … … 103 104 if isinstance(label, Message): 104 105 label = translate(self.label, context=self.form.request) 106 msg = translate(self.msg, context=self.form.request) 105 107 return ('<input type="submit" id="%s" name="%s" value="%s"' 106 108 ' class="btn" onclick="return confirmPost(%s)" />' % 107 (self.__name__, self.__name__, escape(label, quote=True), self.msg)109 (self.__name__, self.__name__, escape(label, quote=True), msg) 108 110 ) 109 111
Note: See TracChangeset for help on using the changeset viewer.