Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 newtranslation empty | |
| #leaves newtranslations 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 aversionadded 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.
4e83e9a intosymfony:7.2Uh oh!
There was an error while loading.Please reload this page.
javiereguiluz commentedOct 28, 2024
Thanks@jawira and congrats on your first Symfony Docs contribution 🎉 |
I added documentation for
--no-filloption and--prefixoption in Translations page.--no-filloption is a new feature in Symfony 7.2.Closes#20343