mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Refactoring translation
This commit is contained in:
@@ -24,18 +24,16 @@ class GenderType extends AbstractType {
|
||||
|
||||
public function setDefaultOptions(OptionsResolverInterface $resolver) {
|
||||
|
||||
$rootTranslate = 'person.gender.';
|
||||
|
||||
$a = array(
|
||||
Person::GENRE_MAN => $rootTranslate.Person::GENRE_MAN,
|
||||
Person::GENRE_WOMAN => $rootTranslate.Person::GENRE_WOMAN
|
||||
Person::GENRE_MAN => Person::GENRE_MAN,
|
||||
Person::GENRE_WOMAN => Person::GENRE_WOMAN
|
||||
);
|
||||
|
||||
$resolver->setDefaults(array(
|
||||
'choices' => $a,
|
||||
'expanded' => true,
|
||||
'multiple' => false,
|
||||
'empty_value' => $rootTranslate.'undefined'
|
||||
'empty_value' => 'Not given'
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user