diff --git a/src/Form/Type/CurrencyEntityType.php b/src/Form/Type/CurrencyEntityType.php index 22afe3f0..4e955316 100644 --- a/src/Form/Type/CurrencyEntityType.php +++ b/src/Form/Type/CurrencyEntityType.php @@ -67,6 +67,7 @@ class CurrencyEntityType extends StructuralEntityType $resolver->setDefault('class', Currency::class); $resolver->setDefault('disable_not_selectable', true); + $resolver->setDefault('choice_translation_domain', false); // This options allows you to override the currency shown for the null value $resolver->setDefault('base_currency', null); diff --git a/src/Form/Type/MasterPictureAttachmentType.php b/src/Form/Type/MasterPictureAttachmentType.php index f7464256..070bb80d 100644 --- a/src/Form/Type/MasterPictureAttachmentType.php +++ b/src/Form/Type/MasterPictureAttachmentType.php @@ -60,6 +60,7 @@ class MasterPictureAttachmentType extends AbstractType $resolver->setDefaults([ 'filter' => 'picture', + 'choice_translation_domain' => false, 'attr' => [ 'class' => 'selectpicker', ], diff --git a/src/Form/Type/SIUnitType.php b/src/Form/Type/SIUnitType.php index 4b3493d9..1e14cf09 100644 --- a/src/Form/Type/SIUnitType.php +++ b/src/Form/Type/SIUnitType.php @@ -145,6 +145,7 @@ final class SIUnitType extends AbstractType implements DataMapperInterface 'm' => -3, 'ยต' => -6, ], + 'choice_translation_domain' => false, ]); } diff --git a/src/Form/Type/StructuralEntityType.php b/src/Form/Type/StructuralEntityType.php index bdbc0a08..73454038 100644 --- a/src/Form/Type/StructuralEntityType.php +++ b/src/Form/Type/StructuralEntityType.php @@ -108,6 +108,7 @@ class StructuralEntityType extends AbstractType 'choice_attr' => function ($choice, $key, $value) { return $this->generateChoiceAttr($choice, $key, $value); }, + 'choice_translation_domain' => false, //Don't translate the entity names ]); $resolver->setDefault('empty_message', null);