Changeset 7700 for main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
- Timestamp:
- 24 Feb 2012, 23:04:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py
r7649 r7700 24 24 from grokcore.formlib.formlib import Action 25 25 from cgi import escape 26 from zope.i18n import translate 26 27 from zope.i18nmessageid import Message 27 28 from hurry.resource import mode … … 70 71 label = self.label 71 72 if isinstance(label, Message): 72 label = zope.i18n.translate(self.label, context=self.form.request)73 label = translate(self.label, context=self.form.request) 73 74 return ('<input type="submit" id="%s" name="%s" value="%s"' 74 75 ' class="btn %s"/>' % … … 92 93 label = self.label 93 94 if isinstance(label, Message): 94 label = zope.i18n.translate(self.label, context=self.form.request)95 label = translate(self.label, context=self.form.request) 95 96 return ('<input type="submit" id="%s" name="%s" value="%s"' 96 97 ' class="btn" onclick="return confirmPost(%s)" />' %
Note: See TracChangeset for help on using the changeset viewer.