Skip to content

Commit 63a4580

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

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

translation.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,14 @@ with these tasks:
246246

247247
.. code-block:: terminal
248248
249-
# updates the French translation file with the missing strings for that locale
250-
$ php bin/console translation:update --dump-messages --force fr
249+
# shows all the messages that should be translated for the French language
250+
$ php bin/console translation:update --dump-messages fr
251+
252+
# updates the French translation files with the missing strings for that locale
253+
$ php bin/console translation:update --force fr
254+
255+
# check out the command help to see its options (prefix, output format, domain, sorting, etc.)
256+
$ php bin/console translation:update --help
251257
252258
The ``translation:update`` command looks for missing translations in:
253259

@@ -262,15 +268,6 @@ The ``translation:update`` command looks for missing translations in:
262268
The extraction of missing translation strings from PHP files was introduced
263269
in Symfony 4.3.
264270

265-
.. note::
266-
267-
If you want to see the missing translation strings without actually updating
268-
the translation files, remove the ``--force`` option from the command above.
269-
270-
.. note::
271-
272-
If you want to see translation output strings sorted alphabetically, add ``--sort=asc`` or ``--sort=desc`` option.
273-
274271
.. _translation-resource-locations:
275272

276273
Translation Resource/File Names and Locations

0 commit comments

Comments
 (0)