Skip to content

Commit b86b269

Browse files
committed
minor symfony#16024 [FrameworkBundle] Rename translation:update to translation:extract (welcoMattic)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] Rename translation:update to translation:extract Ref symfony#16023 The code has been merged in symfony/symfony#43758 I'm not 100% sure about the position of the deprecated block, let me know if I have to move it elsewhere. Commits ------- 7f44b33 Rename translation:update to translation:extract
2 parents 7827769 + 7f44b33 commit b86b269

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ translation.extractor
10211021
**Purpose**: To register a custom service that extracts messages from a
10221022
file
10231023

1024-
When executing the ``translation:update`` command, it uses extractors to
1024+
When executing the ``translation:extract`` command, it uses extractors to
10251025
extract translation messages from a file. By default, the Symfony Framework
10261026
has a :class:`Symfony\\Bridge\\Twig\\Translation\\TwigExtractor` and a
10271027
:class:`Symfony\\Component\\Translation\\Extractor\\PhpExtractor`, which

translation.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,21 +466,26 @@ Extracting Translation Contents and Updating Catalogs Automatically
466466

467467
The most time-consuming tasks when translating an application is to extract all
468468
the template contents to be translated and to keep all the translation files in
469-
sync. Symfony includes a command called ``translation:update`` that helps you
469+
sync. Symfony includes a command called ``translation:extract`` that helps you
470470
with these tasks:
471471

472472
.. code-block:: terminal
473473
474474
# shows all the messages that should be translated for the French language
475-
$ php bin/console translation:update --dump-messages fr
475+
$ php bin/console translation:extract --dump-messages fr
476476
477477
# updates the French translation files with the missing strings for that locale
478-
$ php bin/console translation:update --force fr
478+
$ php bin/console translation:extract --force fr
479479
480480
# check out the command help to see its options (prefix, output format, domain, sorting, etc.)
481-
$ php bin/console translation:update --help
481+
$ php bin/console translation:extract --help
482482
483-
The ``translation:update`` command looks for missing translations in:
483+
.. deprecated:: 5.4
484+
485+
Support for ``translation:update`` was deprecated in Symfony 5.4
486+
and it will be removed in Symfony 6.0.
487+
488+
The ``translation:extract`` command looks for missing translations in:
484489

485490
* Templates stored in the ``templates/`` directory (or any other directory
486491
defined in the :ref:`twig.default_path <config-twig-default-path>` and

0 commit comments

Comments
 (0)