Changeset 1871 in products for quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_join_form/register.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_join_form/register.cpy
r1863 r1871 10 10 ## 11 11 12 from Products.CMFPlone import PloneMessageFactory as pmf12 from Products.CMFPlone import PloneMessageFactory as _ 13 13 from ZODB.POSException import ConflictError 14 14 … … 30 30 portal_registration.addMember(username, password, properties=REQUEST, REQUEST=context.REQUEST) 31 31 except AttributeError: 32 state.setError('username', pmf(u'The login name you selected is already in use or is not valid. Please choose another.'))33 context.plone_utils.addPortalMessage( pmf(u'Please correct the indicated errors.'), 'error')32 state.setError('username', _(u'The login name you selected is already in use or is not valid. Please choose another.')) 33 context.plone_utils.addPortalMessage(_(u'Please correct the indicated errors.'), 'error') 34 34 return state.set(status='failure') 35 35 … … 49 49 if portal.validate_email: 50 50 context.acl_users.userFolderDelUsers([username,], REQUEST=context.REQUEST) 51 msg = pmf(u'status_fatal_password_mail',51 msg = _(u'status_fatal_password_mail', 52 52 default=u'Failed to create your account: we were unable to send your password to your email address: ${address}', 53 53 mapping={u'address' : str(err)}) … … 55 55 return state.set(status='failure') 56 56 else: 57 msg = pmf(u'status_nonfatal_password_mail',57 msg = _(u'status_nonfatal_password_mail', 58 58 default=u'You account has been created, but we were unable to send your password to your email address: ${address}', 59 59 mapping={u'address' : str(err)}) … … 63 63 64 64 if came_from_prefs: 65 context.plone_utils.addPortalMessage( pmf(u'User added.'))65 context.plone_utils.addPortalMessage(_(u'User added.')) 66 66 state.set(status='prefs') 67 67
Note: See TracChangeset
for help on using the changeset viewer.