Skip to content

Commit 84065f6

Browse files
committed
fix default value for choice_translation_domain of some form types
1 parent 0159487 commit 84065f6

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

reference/forms/types/date.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ that Symfony should expect via the `format`_ option.
135135
Field Options
136136
-------------
137137

138-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
138+
.. include:: /reference/forms/types/options/choice_translation_domain_default_disabled.rst.inc
139139

140140
.. include:: /reference/forms/types/options/days.rst.inc
141141

reference/forms/types/entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`
258258

259259
.. include:: /reference/forms/types/options/choice_attr.rst.inc
260260

261-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
261+
.. include:: /reference/forms/types/options/choice_translation_domain_default_disabled.rst.inc
262262

263263
.. include:: /reference/forms/types/options/expanded.rst.inc
264264

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
``choice_translation_domain``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
**type**: ``string``, ``boolean`` or ``null`` **default**: ``false``
5+
6+
This option determines if the choice values should be translated and in which
7+
translation domain.
8+
9+
The values of the ``choice_translation_domain`` option can be ``true`` (reuse the current
10+
translation domain), ``false`` (disable translation), ``null`` (uses the parent translation
11+
domain or the default domain) or a string which represents the exact translation
12+
domain to use.

reference/forms/types/time.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ values.
8181
Field Options
8282
-------------
8383

84-
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
84+
.. include:: /reference/forms/types/options/choice_translation_domain_default_disabled.rst.inc
8585

8686
``placeholder``
8787
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)