From a63105d74f1ef077783bbd63c51f487f708bd866 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Thu, 3 Oct 2013 23:14:26 +0200 Subject: [PATCH 1/1] =?utf8?q?Support=20nouvelle=20signature=20de=20la=20f?= =?utf8?q?onction=20=C2=AB=C2=A0translate=C2=A0=C2=BB.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/order_cancel_form.pt | 4 ++-- skins/order_view_template.pt | 3 +-- skins/photoprint_templates_edit_form.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) 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') -- 2.20.1