Ignore:
Timestamp:
Mar 10, 2010 1:50:35 PM (14 years ago)
Author:
liebster
Message:

Revert 2726 to 2589 commits for tagging plone-3 compatible version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto.cpy

    r1863 r1871  
    1414from Products.CMFPlone.PloneTool import AllowSendto 
    1515from Products.CMFCore.utils import getToolByName 
    16 from Products.CMFPlone import PloneMessageFactory as pmf 
     16from Products.CMFPlone import PloneMessageFactory as _ 
    1717from ZODB.POSException import ConflictError 
    1818 
     
    2323 
    2424if 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') 
    2626    return state.set(status='failure') 
    2727 
     
    3434        show = True 
    3535if 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') 
    3737    return state.set(status='failure') 
    3838 
     
    5757except: # TODO To many things could possibly go wrong. So we catch all. 
    5858    exception = context.plone_utils.exceptionString() 
    59     message = pmf(u'Unable to send mail: ${exception}', 
     59    message = _(u'Unable to send mail: ${exception}', 
    6060                mapping={u'exception' : exception}) 
    6161    context.plone_utils.addPortalMessage(message, 'error') 
     
    6565transaction_note(tmsg) 
    6666 
    67 context.plone_utils.addPortalMessage(pmf(u'Mail sent.')) 
     67context.plone_utils.addPortalMessage(_(u'Mail sent.')) 
    6868return state 
Note: See TracChangeset for help on using the changeset viewer.