-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Remove usages of transChoice() method for Symfony 5.0 #12957
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
Remove usages of transChoice() method for Symfony 5.0 #12957
Conversation
components/translation/usage.rst
Outdated
Pluralized Translations | ||
----------------------- | ||
|
||
Translation messages can be pluralized using `interval notations`_, the count |
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.
where the counter value to choose the right translation can be provided using
Wdyt?
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.
Thanks for the feedback, I've removed this section based on this comment: #12957 (review)
@wouterj would you be able to review this PR? Thanks 🙏 |
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.
Perfect! Thanks for updating the docs on this topic :)
I would remove the "Pluralized Translations" section. As far as I know, the format described there was removed in Symfony 5 (in favor of the ICU message format).
Thanks for the comments, based on the feedback I've removed the |
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.
Thanks for the quick reaction! It's perfect now imho :)
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.
should be merged into the 4.4
branch IMO so that we do not show usages of the deprecated API there
@xabbuh should I change the target branch? |
@kane-menicou Thank you, but we use a tool for merging that is able to do it. So it's not really necessary for you to change it. :) |
ba613ad
to
73376df
Compare
Thank you Kane. |
…ane-menicou) This PR was submitted for the 5.0 branch but it was squashed and merged into the 4.4 branch instead (closes #12957). Discussion ---------- Remove usages of transChoice() method for Symfony 5.0 The `transChoice()` method and the `transChoice` Twig filter [were removed in Symfony 5.0](https://github.com/symfony/symfony/blob/master/UPGRADE-5.0.md#frameworkbundle) **Notes for reviewers:** I'm not too sure about the new `Pluralized Translations` section, I couldn't find any other information about it in the docs so maybe it's relevant? I'm not sure if there's a better place to put it (maybe: `components/translation.rst`), or if it's even needed? Commits ------- 73376df Remove usages of transChoice() method for Symfony 5.0
The
transChoice()
method and thetransChoice
Twig filter were removed in Symfony 5.0Notes for reviewers: I'm not too sure about the new
Pluralized Translations
section, I couldn't find any other information about it in the docs so maybe it's relevant? I'm not sure if there's a better place to put it (maybe:components/translation.rst
), or if it's even needed?