Skip to content

Commit c614df7

Browse files
committed
minor #12334 Minor improvement for the docs about the translation:update command (javiereguiluz)
This PR was merged into the 4.3 branch. Discussion ---------- Minor improvement for the docs about the translation:update command After merging #12136, I realized we don't explain this command well ... so let's tweak it. Commits ------- 182d927 Minor improvement for the docs about the translation:update command
2 parents b1e27b9 + 182d927 commit c614df7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

translation.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,14 @@ with these tasks:
247247

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

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

266-
.. note::
267-
268-
If you want to see the missing translation strings without actually updating
269-
the translation files, remove the ``--force`` option from the command above.
270-
271272
.. _translation-resource-locations:
272273

273274
Translation Resource/File Names and Locations

0 commit comments

Comments
 (0)