Added translation
authorThierry Florac <tflorac@ulthar.net>
Fri, 26 Jul 2019 12:34:54 +0200
changeset 180 2f4027a2d6c8
parent 179 f9147cd3fe5b
child 181 f0e082a0cb75
Added translation
src/pyams_form/widget/templates/radio-display.pt
--- a/src/pyams_form/widget/templates/radio-display.pt	Fri Jul 26 12:33:02 2019 +0200
+++ b/src/pyams_form/widget/templates/radio-display.pt	Fri Jul 26 12:34:54 2019 +0200
@@ -1,4 +1,5 @@
 <input type="text" readonly
+	   tal:define="translate request.localizer.translate"
 	   tal:attributes="id view/id;
 					   class string:${view/klass} border-0;
 					   style view/style;
@@ -14,4 +15,4 @@
 					   onkeypress view/onkeypress;
 					   onkeydown view/onkeydown;
 					   onkeyup view/onkeyup;
-					   value python:', '.join(view.displayValue)" />
+					   value python:', '.join((translate(value) for value in view.displayValue))" />