8000 Add details for pluralization on extra fields message · symfony/symfony-docs@ef275a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef275a3

Browse files
jpjoaoHeahDude
authored andcommitted
Add details for pluralization on extra fields message
1 parent 7f1c469 commit ef275a3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
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

610
This is the validation error message that's used if the submitted form data
711
contains one or more fields that are not part of the form definition. The
812
placeholder ``{{ extra_fields }}`` can be used to display a comma separated
913
list of the submitted extra field names.
14+
15+
This message can be pluralized, see :ref:`formatting pluralized messages <component-translation-pluralization>` for details.

translation/message_format.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
171174
Pluralization
172175
-------------
173176

0 commit comments

Comments
 (0)
0