Skip to content

Commit a8d64cc

Browse files
committed
Merge branch '4.4'
* 4.4: Minor improvement for the docs about the translation:update command
2 parents 3438256 + 63a4580 commit a8d64cc

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

translation.rst

+8-11
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,14 @@ with these tasks:
240240

241241
.. code-block:: terminal
242242
243-
# updates the French translation file with the missing strings for that locale
244-
$ php bin/console translation:update --dump-messages --force fr
243+
# shows all the messages that should be translated for the French language
244+
$ php bin/console translation:update --dump-messages fr
245+
246+
# updates the French translation files with the missing strings for that locale
247+
$ php bin/console translation:update --force fr
248+
249+
# check out the command help to see its options (prefix, output format, domain, sorting, etc.)
250+
$ php bin/console translation:update --help
245251
246252
The ``translation:update`` command looks for missing translations in:
247253

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

254-
.. note::
255-
256-
If you want to see the missing translation strings without actually updating
257-
the translation files, remove the ``--force`` option from the command above.
258-
259-
.. note::
260-
261-
If you want to see translation output strings sorted alphabetically, add ``--sort=asc`` or ``--sort=desc`` option.
262-
263260
.. _translation-resource-locations:
264261

265262
Translation Resource/File Names and Locations

0 commit comments

Comments
 (0)