Updated translation of boolean terms
authorThierry Florac <thierry.florac@onf.fr>
Tue, 30 Oct 2018 11:01:52 +0100
changeset 1050 0c77057e2fa1
parent 1049 6d6279200826
child 1051 e5dfdb14f9cb
Updated translation of boolean terms
src/pyams_content/shared/common/zmi/templates/check-input.pt
src/pyams_content/shared/common/zmi/templates/preview-input.pt
--- a/src/pyams_content/shared/common/zmi/templates/check-input.pt	Tue Oct 30 11:01:34 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/templates/check-input.pt	Tue Oct 30 11:01:52 2018 +0100
@@ -31,7 +31,7 @@
 								onselect view/onselect;
 								checked python: checked and 'checked' or None;
 								data-ams-data tales:object_data(view);" />
-		<i></i><span tal:replace="item/label" i18n:translate="">Label</span>
+		<i></i><span tal:replace="python:request.localizer.translate(item['label'])">Label</span>
 	</label>
 	<button class="btn btn-xs col-md-2" i18n:domain="pyams_content"
 			data-ams-url="content-check.html" data-toggle="modal">
--- a/src/pyams_content/shared/common/zmi/templates/preview-input.pt	Tue Oct 30 11:01:34 2018 +0100
+++ b/src/pyams_content/shared/common/zmi/templates/preview-input.pt	Tue Oct 30 11:01:52 2018 +0100
@@ -31,7 +31,7 @@
 								onselect view/onselect;
 								checked python: checked and 'checked' or None;
 								data-ams-data tales:object_data(view);" />
-		<i></i><span tal:replace="item/label" i18n:translate="">Label</span>
+		<i></i><span tal:replace="python:request.localizer.translate(item['label'])">Label</span>
 	</label>
 	<button class="btn btn-xs col-md-2" i18n:domain="pyams_content"
 			data-ams-url="content-preview.html" data-toggle="modal">