Symfony form choice disable translator

Rico Humme

I having issues with choice fields which are translated while they shouldn't have to be translated. Since Symfony 2.7 the toolbar notifies you when there are untranslatable values on the current page. Now I'm actually getting confronted with the fact that this happens. Prior to 2.7 this just got logged, but nothing actually happened with it. In the case of Form field 'date' all the digits are attempted to be translated.

What I'm looking for is a way to disable the translator on a choice field, so that the options are not translated. It could be as simple as setting the translation_domain = null or translate = false or something like that.

Any thoughts?

Yassine Guedidi

Starting from Symfony 2.7, you can use choice_translation_domain option (see Pull Request #13651)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Symfony2 Form use translator for attr attribute

From Dev

Symfony2 Form use translator for attr attribute

From Dev

Symfony 2.7 choice callback not working in form

From Dev

Symfony set value checked on a form type choice

From Dev

Combine columns in choice list Symfony form

From Dev

Symfony Form EntityType, add custom data to choice

From Dev

Update Form with 'choice_list' to Symfony >= 2.8

From Dev

Symfony 2 form theme with choice field

From Dev

symfony form choice with entity get result

From Dev

Symfony creating choice from entity in form type

From Dev

Update Form with 'choice_list' to Symfony >= 2.8

From Dev

Use locate to set default choice in Symfony form

From Dev

Dynamically disable form in form events symfony

From Dev

Disable backend validation for choice field in Symfony 2 Type

From Dev

Symfony: LoggingTranslator vs Translator

From Dev

Web service and form translator

From Dev

Use ManyToOne relation as multiple choice in Symfony Form (with Doctrine)

From Dev

Manipulate the list of countries provided by Symfony Intl and the form choice type

From Dev

Symfony 2 - add options into 'Choice' field after form is created

From Dev

symfony2 form checkbox grouped (expanded and multiple choice)

From Dev

field array type in entity for form choice type field symfony

From Dev

symfony setRole from choice in Form end up in an error

From Dev

Pass custom value to each input in Symfony form (type is choice)

From Dev

How to use an array as choices for "choice" in form builder symfony2

From Dev

Manipulate the list of countries provided by Symfony Intl and the form choice type

From Dev

Symfony2 choice (checkbox) in form always false

From Dev

symfony2 form checkbox grouped (expanded and multiple choice)

From Dev

Symfony form from child class does not load choice options

From Dev

Disable assert to custom field in form type step Symfony

Related Related

  1. 1

    Symfony2 Form use translator for attr attribute

  2. 2

    Symfony2 Form use translator for attr attribute

  3. 3

    Symfony 2.7 choice callback not working in form

  4. 4

    Symfony set value checked on a form type choice

  5. 5

    Combine columns in choice list Symfony form

  6. 6

    Symfony Form EntityType, add custom data to choice

  7. 7

    Update Form with 'choice_list' to Symfony >= 2.8

  8. 8

    Symfony 2 form theme with choice field

  9. 9

    symfony form choice with entity get result

  10. 10

    Symfony creating choice from entity in form type

  11. 11

    Update Form with 'choice_list' to Symfony >= 2.8

  12. 12

    Use locate to set default choice in Symfony form

  13. 13

    Dynamically disable form in form events symfony

  14. 14

    Disable backend validation for choice field in Symfony 2 Type

  15. 15

    Symfony: LoggingTranslator vs Translator

  16. 16

    Web service and form translator

  17. 17

    Use ManyToOne relation as multiple choice in Symfony Form (with Doctrine)

  18. 18

    Manipulate the list of countries provided by Symfony Intl and the form choice type

  19. 19

    Symfony 2 - add options into 'Choice' field after form is created

  20. 20

    symfony2 form checkbox grouped (expanded and multiple choice)

  21. 21

    field array type in entity for form choice type field symfony

  22. 22

    symfony setRole from choice in Form end up in an error

  23. 23

    Pass custom value to each input in Symfony form (type is choice)

  24. 24

    How to use an array as choices for "choice" in form builder symfony2

  25. 25

    Manipulate the list of countries provided by Symfony Intl and the form choice type

  26. 26

    Symfony2 choice (checkbox) in form always false

  27. 27

    symfony2 form checkbox grouped (expanded and multiple choice)

  28. 28

    Symfony form from child class does not load choice options

  29. 29

    Disable assert to custom field in form type step Symfony

HotTag

Archive