-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Translation] Add --prefix and --no-fill to translation page #20352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
translation.rst
Outdated
|
||
.. code-block:: terminal | ||
|
||
# change default prefix for new translations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# change default prefix for new translations | |
# changes default prefix for new translations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I also shorten the comment to "changes default prefix"
translation.rst
Outdated
# change default prefix for new translations | ||
$ php bin/console translation:extract --force --prefix="NEW_" fr | ||
|
||
# leave new translation empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# leave new translation empty | |
# leaves new translations empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
text as the message, prefixed by ``__``. You can customize this prefix using | ||
the ``--prefix`` option. | ||
|
||
If you want to leave new translations empty, use the ``--no-fill`` option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a versionadded
directive for this new option ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I put directive after example.
Thanks @jawira and congrats on your first Symfony Docs contribution 🎉 |
I added documentation for
--no-fill
option and--prefix
option in Translations page.--no-fill
option is a new feature in Symfony 7.2.Closes #20343