Updated I18n renderer
authorThierry Florac <thierry.florac@onf.fr>
Fri, 10 Nov 2017 11:52:51 +0100
changeset 250 104e2c370c76
parent 249 990a1e45f07c
child 251 6328755f08a5
Updated I18n renderer
src/pyams_content/component/illustration/zmi/templates/renderer-left.pt
src/pyams_content/component/illustration/zmi/templates/renderer-right.pt
--- a/src/pyams_content/component/illustration/zmi/templates/renderer-left.pt	Fri Nov 10 11:52:17 2017 +0100
+++ b/src/pyams_content/component/illustration/zmi/templates/renderer-left.pt	Fri Nov 10 11:52:51 2017 +0100
@@ -1,7 +1,8 @@
 <div class="pull-left margin-10">
 	<a class="fancybox" data-toggle
 	   data-ams-fancybox-type="image"
-	   tal:define="thumbnails extension:thumbnails(context.data);
+	   tal:define="image_data i18n:context.data;
+				   thumbnails extension:thumbnails(image_data);
 				   target thumbnails.get_thumbnail('800x600', 'png');
 				   thumb thumbnails.get_thumbnail('300x200', 'png');"
 	   tal:attributes="href extension:absolute_url(target)">
--- a/src/pyams_content/component/illustration/zmi/templates/renderer-right.pt	Fri Nov 10 11:52:17 2017 +0100
+++ b/src/pyams_content/component/illustration/zmi/templates/renderer-right.pt	Fri Nov 10 11:52:51 2017 +0100
@@ -1,7 +1,8 @@
 <div class="pull-right margin-10">
 	<a class="fancybox" data-toggle
 	   data-ams-fancybox-type="image"
-	   tal:define="thumbnails extension:thumbnails(context.data);
+	   tal:define="image_data i18n:context.data;
+				   thumbnails extension:thumbnails(image_data);
 				   target thumbnails.get_thumbnail('800x600', 'png');
 				   thumb thumbnails.get_thumbnail('300x200', 'png');"
 	   tal:attributes="href extension:absolute_url(target)">