File tree 2 files changed +9
-0
lines changed
reference/forms/types/options
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
``extra_fields_message``
2
2
~~~~~~~~~~~~~~~~~~~~~~~~
3
3
4
+ .. versionadded:: 5.1
5
+
6
+ The support for pluralization was introduced in Symfony 5.1 .
7
+
4
8
**type**: ``string`` **default **: ``This form should not contain extra fields.``
5
9
6
10
This is the validation error message that' s used if the submitted form data
7
11
contains one or more fields that are not part of the form definition. The
8
12
placeholder ``{{ extra_fields }}`` can be used to display a comma separated
9
13
list 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:
168
168
readable for translators and, as you can see in the ``other `` case, other
169
169
parts of the sentence might be influenced by the variables.
170
170
171
+
172
+ .. _component-translation-pluralization :
173
+
171
174
Pluralization
172
175
-------------
173
176
You can’t perform that action at this time.
0 commit comments