8000 feature #13542 Add details for pluralization on extra fields message … · symfony/symfony-docs@3a49064 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a49064

Browse files
committed
feature #13542 Add details for pluralization on extra fields message (jpjoao)
This PR was squashed before being merged into the master branch (closes #13542). Discussion ---------- Add details for pluralization on extra fields message * Add ref anchor for Pluralization; * Add link for Pluralization on extra fields message; Fixes #13411 Commits ------- ef275a3 Add details for pluralization on extra fields message
2 parents 3ef6848 + ef275a3 commit 3a49064

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
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
16+
:ref:`formatting pluralized messages <component-translation-pluralization>` for
17+
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