From 0513eb1a4fe5a3660eb346be68854822d748120f Mon Sep 17 00:00:00 2001 From: alexandresalome Date: Sat, 21 Jan 2012 14:19:08 +0100 Subject: [PATCH] [Form] Pass translation domain to the sub-forms when choice list is expanded --- src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php index 691cdb6788..bcc119fee8 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php @@ -63,11 +63,13 @@ class ChoiceType extends AbstractType // The user can check 0 or more checkboxes. If required // is true, he is required to check all of them. 'required' => false, + 'translation_domain' => $options['translation_domain'], )); } else { $builder->add((string) $choice, 'radio', array( 'value' => $choice, 'label' => $value, + 'translation_domain' => $options['translation_domain'], )); } }