Changeset 1871 in products for quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto.cpy
- Timestamp:
- Mar 10, 2010 1:50:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto.cpy
r1863 r1871 14 14 from Products.CMFPlone.PloneTool import AllowSendto 15 15 from Products.CMFCore.utils import getToolByName 16 from Products.CMFPlone import PloneMessageFactory as pmf16 from Products.CMFPlone import PloneMessageFactory as _ 17 17 from ZODB.POSException import ConflictError 18 18 … … 23 23 24 24 if not mtool.checkPermission(AllowSendto, context): 25 context.plone_utils.addPortalMessage( pmf(u'You are not allowed to send this link.'), 'error')25 context.plone_utils.addPortalMessage(_(u'You are not allowed to send this link.'), 'error') 26 26 return state.set(status='failure') 27 27 … … 34 34 show = True 35 35 if not show: 36 context.plone_utils.addPortalMessage( pmf(u'You are not allowed to send this link.'), 'error')36 context.plone_utils.addPortalMessage(_(u'You are not allowed to send this link.'), 'error') 37 37 return state.set(status='failure') 38 38 … … 57 57 except: # TODO To many things could possibly go wrong. So we catch all. 58 58 exception = context.plone_utils.exceptionString() 59 message = pmf(u'Unable to send mail: ${exception}',59 message = _(u'Unable to send mail: ${exception}', 60 60 mapping={u'exception' : exception}) 61 61 context.plone_utils.addPortalMessage(message, 'error') … … 65 65 transaction_note(tmsg) 66 66 67 context.plone_utils.addPortalMessage( pmf(u'Mail sent.'))67 context.plone_utils.addPortalMessage(_(u'Mail sent.')) 68 68 return state
Note: See TracChangeset
for help on using the changeset viewer.