Skip to content

Commit f885d43

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: document the translation:extract command's --prefix option
2 parents 3aed04d + e8345e1 commit f885d43

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

translation.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,15 @@ The ``translation:extract`` command looks for missing translations in:
467467
468468
$ composer require nikic/php-parser
469469
470+
By default, when the ``translation:extract`` command creates new entries in the
471+
translation file, it uses the same content as both the source and the pending
472+
translation. The only difference is that the pending translation is prefixed by
473+
``__``. You can customize this prefix using the ``--prefix`` option:
474+
475+
.. code-block:: terminal
476+
477+
$ php bin/console translation:extract --force --prefix="NEW_" fr
478+
470479
.. _translation-resource-locations:
471480

472481
Translation Resource/File Names and Locations

0 commit comments

Comments
 (0)