File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
reference/forms/types/options Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 11``extra_fields_message``
22~~~~~~~~~~~~~~~~~~~~~~~~
33
4+ .. versionadded:: 5.1
5+
6+ The support for pluralization was introduced in Symfony 5.1 .
7+
48**type**: ``string`` **default **: ``This form should not contain extra fields.``
59
610This is the validation error message that' s used if the submitted form data
711contains one or more fields that are not part of the form definition. The
812placeholder ``{{ extra_fields }}`` can be used to display a comma separated
913list of the submitted extra field names.
14+
15+ This message can be pluralized, see :ref:`formatting pluralized messages <component-translation-pluralization>` for details.
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ you to use literal text in the select statements:
168168 readable for translators and, as you can see in the ``other `` case, other
169169 parts of the sentence might be influenced by the variables.
170170
171+
172+ .. _component-translation-pluralization :
173+
171174Pluralization
172175-------------
173176
You can’t perform that action at this time.
0 commit comments