<td tal:define="_ python:modules['Products.photoprint.utils'].translate">
<input type="text" size="58"
name="subject"
- tal:attributes="value python:_('[%s] order %s canceling notification', here) % (here.portal_photo_print.store_name, here.getId())"/>
+ tal:attributes="value python:_('[%s] order %s canceling notification') % (here.portal_photo_print.store_name, here.getId())"/>
</td>
</tr>
<tr>
<label tal:repeat="member python:mtool.getMembers(here.listCreators())">
<input type="checkbox" name="recipients:list" tal:attributes="value member/id" checked="checked" />
<span tal:replace="member/getMemberFullName">Membre full name</span>
- <<span tal:replace="member/email">member email</span>>
+ <<span tal:replace="python:member.getProperty('email')">member email</span>>
</label>
</td>
</tr>
</table>
</td>
<td>
- <img tal:define="translate nocall:modules/Products/photoprint/utils/translate;
- tr python:lambda msg: translate(msg, here)"
+ <img tal:define="tr nocall:modules/Products/photoprint/utils/translate"
tal:attributes="src python:'%s/order_states/%s' % (portal_url, tr('%s-en.gif' % options['wfstate']))"
style="float:right"/>
</td>
##parameters=addTemplate='', edit='', deleteOptionContainer='', createOptionsContainer=''
from Products.CMFCore.utils import getToolByName
-from Products.photoprint.utils import translate
-_ = lambda msg : translate(msg, context)
+from Products.photoprint.utils import translate as _
utool = getToolByName(context, 'portal_url')
pptool = getToolByName(context, 'portal_photo_print')