From 96cfab973c7371144e8c86826aec5ee9a4d39b38 Mon Sep 17 00:00:00 2001 From: Tim Hovius Date: Tue, 19 Apr 2016 21:37:22 +0200 Subject: [PATCH] Added translation to description The labels of a field are usually always translated. But this does not happen in the documentation. --- Resources/views/method.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/method.html.twig b/Resources/views/method.html.twig index dc2517b..43141c2 100644 --- a/Resources/views/method.html.twig +++ b/Resources/views/method.html.twig @@ -131,7 +131,7 @@ {{ infos.dataType is defined ? infos.dataType : '' }} {{ infos.required ? 'true' : 'false' }} {{ infos.format }} - {{ infos.description is defined ? infos.description : '' }} + {{ infos.description is defined ? infos.description|trans : '' }} {% endif %} {% endfor %}