From: Benoît Pin Date: Thu, 3 Oct 2013 21:14:26 +0000 (+0200) Subject: Support nouvelle signature de la fonction « translate ». X-Git-Url: https://scm.cri.mines-paristech.fr/git/photoprint.git/commitdiff_plain/a63105d74f1ef077783bbd63c51f487f708bd866?ds=sidebyside Support nouvelle signature de la fonction « translate ». --- diff --git a/skins/order_cancel_form.pt b/skins/order_cancel_form.pt index b976045..8f37263 100644 --- a/skins/order_cancel_form.pt +++ b/skins/order_cancel_form.pt @@ -24,7 +24,7 @@ + tal:attributes="value python:_('[%s] order %s canceling notification') % (here.portal_photo_print.store_name, here.getId())"/> @@ -48,7 +48,7 @@ diff --git a/skins/order_view_template.pt b/skins/order_view_template.pt index f3ba7d1..0678456 100644 --- a/skins/order_view_template.pt +++ b/skins/order_view_template.pt @@ -75,8 +75,7 @@ - diff --git a/skins/photoprint_templates_edit_form.py b/skins/photoprint_templates_edit_form.py index 94851be..b70ce31 100755 --- a/skins/photoprint_templates_edit_form.py +++ b/skins/photoprint_templates_edit_form.py @@ -1,7 +1,6 @@ ##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')