Skip to content

Commit 1f24506

Browse files
committed
minor #17369 [Translation] Add new cases covered by PhpAstExtractor (welcoMattic)
This PR was merged into the 6.2 branch. Discussion ---------- [Translation] Add new cases covered by PhpAstExtractor In symfony/symfony#46161, we rewrite the PHP Translation extractor. It covers more cases, like named arguments. Documentation needed to be updated consequently. Commits ------- 5029cb2 Add new cases covered by PhpAstExtractor
2 parents 4d22728 + 5029cb2 commit 1f24506

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

translation.rst

+2
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ The ``translation:extract`` command looks for missing translations in:
476476
* Any PHP file/class stored in the ``src/`` directory that creates
477477
:ref:`translatable-objects` using the constructor or the ``t()`` method or calls
478478
the ``trans()`` method.
479+
* Any PHP file/class stored in the ``src/`` directory that uses
480+
:ref:`Constraints Attributes <validation-constraints>` with ``*message`` named argument(s).
479481

480482
.. _translation-resource-locations:
481483

0 commit comments

Comments
 (0)