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

Location:
quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_sendto_form
Files:
2 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 
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto_form.cpt

    r1691 r1871  
    1616 
    1717    <div metal:fill-slot="main" 
    18          tal:define="template_id template/getId; 
    19                      errors options/state/getErrors; 
    20                      member context/@@plone_portal_state/member; 
    21                      here_url context/@@plone_context_state/object_url;"> 
     18         tal:define="errors options/state/getErrors;"> 
    2219 
    2320      <h1 class="documentFirstHeading" 
Note: See TracChangeset for help on using the changeset viewer.