diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 23b694910d9..fd84a0ac70b 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -1021,7 +1021,7 @@ translation.extractor **Purpose**: To register a custom service that extracts messages from a file -When executing the ``translation:update`` command, it uses extractors to +When executing the ``translation:extract`` command, it uses extractors to extract translation messages from a file. By default, the Symfony Framework has a :class:`Symfony\\Bridge\\Twig\\Translation\\TwigExtractor` and a :class:`Symfony\\Component\\Translation\\Extractor\\PhpExtractor`, which diff --git a/translation.rst b/translation.rst index 83e95f8dda4..a3d49778c5e 100644 --- a/translation.rst +++ b/translation.rst @@ -466,21 +466,26 @@ Extracting Translation Contents and Updating Catalogs Automatically The most time-consuming tasks when translating an application is to extract all the template contents to be translated and to keep all the translation files in -sync. Symfony includes a command called ``translation:update`` that helps you +sync. Symfony includes a command called ``translation:extract`` that helps you with these tasks: .. code-block:: terminal # shows all the messages that should be translated for the French language - $ php bin/console translation:update --dump-messages fr + $ php bin/console translation:extract --dump-messages fr # updates the French translation files with the missing strings for that locale - $ php bin/console translation:update --force fr + $ php bin/console translation:extract --force fr # check out the command help to see its options (prefix, output format, domain, sorting, etc.) - $ php bin/console translation:update --help + $ php bin/console translation:extract --help -The ``translation:update`` command looks for missing translations in: +.. deprecated:: 5.4 + + Support for ``translation:update`` was deprecated in Symfony 5.4 + and it will be removed in Symfony 6.0. + +The ``translation:extract`` command looks for missing translations in: * Templates stored in the ``templates/`` directory (or any other directory defined in the :ref:`twig.default_path ` and