Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44df5e8

Browse files
committed
minor#20360 [Translation] document the translation:extract command's --prefix option (xabbuh)
This PR was merged into the 5.4 branch.Discussion----------[Translation] document the translation:extract command's --prefix optionbackport from#20352Commits-------942396b document the translation:extract command's --prefix option
2 parents304f14d +942396b commit44df5e8

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
@@ -460,6 +460,15 @@ The ``translation:extract`` command looks for missing translations in:
460460
Support for extracting Translatable objects has been introduced in
461461
Symfony 5.3.
462462

463+
By default, when the ``translation:extract`` command creates new entries in the
464+
translation file, it uses the same content as both the source and the pending
465+
translation. The only difference is that the pending translation is prefixed by
466+
``__``. You can customize this prefix using the ``--prefix`` option:
467+
468+
..code-block::terminal
469+
470+
$ php bin/console translation:extract --force --prefix="NEW_" fr
471+
463472
.. _translation-resource-locations:
464473

465474
Translation Resource/File Names and Locations

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp