Skip to content

Minor improvement for the docs about the translation:update command #12334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,14 @@ with these tasks:

.. code-block:: terminal

# updates the French translation file with the missing strings for that locale
$ php bin/console translation:update --dump-messages --force fr
# shows all the messages that should be translated for the French language
$ php bin/console translation:update --dump-messages fr

# updates the French translation files with the missing strings for that locale
$ php bin/console translation:update --force fr

# check out the command help to see its options (prefix, output format, domain, etc.)
$ php bin/console translation:update --help

The ``translation:update`` command looks for missing translations in:

Expand All @@ -263,11 +269,6 @@ The ``translation:update`` command looks for missing translations in:
The extraction of missing translation strings from PHP files was introduced
in Symfony 4.3.

.. note::

If you want to see the missing translation strings without actually updating
the translation files, remove the ``--force`` option from the command above.

.. _translation-resource-locations:

Translation Resource/File Names and Locations
Expand Down