8000 fix default value of choice_translation_domain for choice types by xabbuh · Pull Request #14220 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

fix 8000 default value of choice_translation_domain for choice types #14220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reference/forms/types/birthday.rst
10000
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Inherited Options

These options inherit from the :doc:`DateType </reference/forms/types/date>`:

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

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

Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ the choice options would need to be resolved thus triggering the callback.

.. include:: /reference/forms/types/options/choice_name.rst.inc

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
.. include:: /reference/forms/types/options/choice_translation_domain_enabled.rst.inc

.. include:: /reference/forms/types/options/choice_value.rst.inc

Expand Down
4 changes: 3 additions & 1 deletion reference/forms/types/country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
+-------------+-----------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
| options | - `choice_translation_domain`_ |
+-------------+-----------------------------------------------------------------------+
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
| options | |
Expand Down Expand Up @@ -67,6 +67,8 @@ The locale is used to translate the countries names.
will also have to set the ``choice_loader`` option to ``null``. Not doing
so is deprecated since Symfony 3.3.

.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

Inherited Options
-----------------

Expand Down
4 changes: 3 additions & 1 deletion reference/forms/types/currency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
+-------------+------------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
| options | - `choice_translation_domain`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
| options | |
Expand Down Expand Up @@ -58,6 +58,8 @@ The choices option defaults to all currencies.
will also have to set the ``choice_loader`` option to ``null``. Not doing
so is deprecated since Symfony 3.3.

.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

Inherited Options
-----------------

Expand Down
8 changes: 4 additions & 4 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ and can understand a number of different input formats via the `input`_ option.
+----------------------+-----------------------------------------------------------------------------+
| Rendered as | single text box or three select fields |
+----------------------+-----------------------------------------------------------------------------+
| Options | - `choice_translation_domain`_ |
| | - `days`_ |
| Options | - `days`_ |
| | - `placeholder`_ |
| | - `format`_ |
| | - `html5`_ |
Expand All @@ -28,6 +27,7 @@ and can understand a number of different input formats via the `input`_ option.
| | - `years`_ |
+----------------------+-----------------------------------------------------------------------------+
| Overridden options | - `by_reference`_ |
| | - `choice_translation_domain`_ |
| | - `compound`_ |
| | - `data_class`_ |
| | - `error_bubbling`_ |
Expand Down Expand Up @@ -135,8 +135,6 @@ that Symfony should expect via the `format`_ option.
Field Options
-------------

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc

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

``placeholder``
Expand Down Expand Up @@ -191,6 +189,8 @@ Overridden Options

The ``DateTime`` classes are treated as immutable objects.

.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

.. include:: /reference/forms/types/options/compound_type.rst.inc

.. include:: /reference/forms/types/options/data_class_date.rst.inc
Expand Down
2 changes: 1 addition & 1 deletion reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`

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

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

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

Expand Down
4 changes: 3 additions & 1 deletion reference/forms/types/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
+-------------+------------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
| options | - `choice_translation_domain`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
| options | |
Expand Down Expand Up @@ -69,6 +69,8 @@ The default locale is used to translate the languages names.
will also have to set the ``choice_loader`` option to ``null``. Not doing
so is deprecated since Symfony 3.3.

.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

Inherited Options
-----------------

Expand Down
4 changes: 3 additions & 1 deletion reference/forms/types/locale.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
+-------------+------------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
| options | - `choice_translation_domain`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
| options | |
Expand Down Expand Up @@ -70,6 +70,8 @@ specify the language.
will also have to set the ``choice_loader`` option to ``null``. Not doing
so is deprecated since Symfony 3.3.

.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

Inherited Options
-----------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
``choice_translation_domain``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**type**: ``string``, ``boolean`` or ``null``
DEFAULT_VALUE

This option determines if the choice values should be translated and in which
translation domain.
Expand Down
10000
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
:end-before: DEFAULT_VALUE

**type**: ``string``, ``boolean`` or ``null`` **default**: ``false``

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
:start-after: DEFAULT_VALUE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
:end-before: DEFAULT_VALUE

**type**: ``string``, ``boolean`` or ``null`` **default**: ``true``

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
:start-after: DEFAULT_VALUE
2 changes: 1 addition & 1 deletion reference/forms/types/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ values.
Field Options
-------------

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

``placeholder``
~~~~~~~~~~~~~~~
Expand Down
4 changes: 3 additions & 1 deletion reference/forms/types/timezone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| | - `regions`_ |
+-------------+------------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
| options | - `choice_translation_domain`_ |
+-------------+------------------------------------------------------------------------+
| Inherited | from the :doc:`ChoiceType </reference/forms/types/choice>` |
| options | |
Expand Down Expand Up @@ -87,6 +87,8 @@ The Timezone type defaults the choices to all timezones returned by
will also have to set the ``choice_loader`` option to ``null``. Not doing
so is deprecated since Symfony 3.3.

.. include:: /reference/forms/types/options/choice_translation_domain_disabled.rst.inc

Inherited Options
-----------------

Expand Down
0