From ef275a3d40ffbba2c146678c47743d86cd199396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20V=20Martins?= Date: Mon, 13 Apr 2020 14:55:40 +0100 Subject: [PATCH] Add details for pluralization on extra fields message --- reference/forms/types/options/extra_fields_message.rst.inc | 6 ++++++ translation/message_format.rst | 3 +++ 2 files changed, 9 insertions(+) diff --git a/reference/forms/types/options/extra_fields_message.rst.inc b/reference/forms/types/options/extra_fields_message.rst.inc index ca54c91ec54..256d3189526 100644 --- a/reference/forms/types/options/extra_fields_message.rst.inc +++ b/reference/forms/types/options/extra_fields_message.rst.inc @@ -1,9 +1,15 @@ ``extra_fields_message`` ~~~~~~~~~~~~~~~~~~~~~~~~ +.. versionadded:: 5.1 + +The support for pluralization was introduced in Symfony 5.1. + **type**: ``string`` **default**: ``This form should not contain extra fields.`` This is the validation error message that's used if the submitted form data contains one or more fields that are not part of the form definition. The placeholder ``{{ extra_fields }}`` can be used to display a comma separated list of the submitted extra field names. + +This message can be pluralized, see :ref:`formatting pluralized messages ` for details. diff --git a/translation/message_format.rst b/translation/message_format.rst index d5d2dd62047..543bd1c87c7 100644 --- a/translation/message_format.rst +++ b/translation/message_format.rst @@ -168,6 +168,9 @@ you to use literal text in the select statements: readable for translators and, as you can see in the ``other`` case, other parts of the sentence might be influenced by the variables. + +.. _component-translation-pluralization: + Pluralization -------------