Skip to content

Commit

Permalink
Merge branch '4.4'
Browse files Browse the repository at this point in the history
* 4.4:
  Minor improvement for the docs about the translation:update command
  • Loading branch information
javiereguiluz committed Sep 18, 2019
2 parents 3438256 + 63a4580 commit a8d64cc
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,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, sorting, etc.)
$ php bin/console translation:update --help
The ``translation:update`` command looks for missing translations in:

Expand All @@ -251,15 +257,6 @@ The ``translation:update`` command looks for missing translations in:
* Any PHP file/class that injects or :doc:`autowires </service_container/autowiring>`
the ``translator`` service and makes calls to the ``trans()`` function.

.. note::

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

.. note::

If you want to see translation output strings sorted alphabetically, add ``--sort=asc`` or ``--sort=desc`` option.

.. _translation-resource-locations:

Translation Resource/File Names and Locations
Expand Down

0 comments on commit a8d64cc

Please sign in to comment.