From a748fd66938151bf1d8fd0f9cfe0279b6df3ea8c Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Sat, 8 Nov 2014 15:15:31 +0100 Subject: [PATCH] CFGroup - Lanuguage --- Form/CustomFieldsGroupType.php | 2 +- Resources/views/CustomFieldsGroup/show.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Form/CustomFieldsGroupType.php b/Form/CustomFieldsGroupType.php index 1dd35a16e..2cd4eff2a 100644 --- a/Form/CustomFieldsGroupType.php +++ b/Form/CustomFieldsGroupType.php @@ -39,7 +39,7 @@ class CustomFieldsGroupType extends AbstractType } $builder - ->add('name') + ->add('name', 'translatable_string') ->add('entity', 'choice', array( 'choices' => $customizableEntites )) diff --git a/Resources/views/CustomFieldsGroup/show.html.twig b/Resources/views/CustomFieldsGroup/show.html.twig index 489fc6590..60897345a 100644 --- a/Resources/views/CustomFieldsGroup/show.html.twig +++ b/Resources/views/CustomFieldsGroup/show.html.twig @@ -11,7 +11,7 @@ Name - {{ entity.name }} + {{ entity.getName(app.request.locale) }} Entity