-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
"Symfony\Component\Translation\PluralizationRules" is deprecated #26375
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
"Symfony\Component\Translation\PluralizationRules" is deprecated #26375
Conversation
rullzer
left a comment
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.
Looks good
bede060 to
76f7b70
Compare
|
CI does not agree |
|
Fun, showed a broken string missing plurals in the test, but only with this I noticed that our placeholders dont work anymore |
|
Fixed by readding vsprintf at the end and adding a test in the L10nTest for it |
|
CI is still very unhappy 😢 |
|
|
||
| // No exclude groups | ||
| $data[] = ['no', null, null, null, false]; | ||
| $data[] = ['no', null, null, [], false]; |
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.
- Test\Share20\ManagerTest::testIsSharingDisabledForUser with data set #0 ('no', null, null, null, false)
Method getUserGroupIds may not return value of type NULL, its return declaration is ": array"
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
bb415e4 to
79ebc7f
Compare
|
@MorrisJobke good to go? |
MorrisJobke
left a comment
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.
Looks fine 👍
|
@nickvergessen Should this be backported? Was requested in 012f791#commitcomment-49915825 |
|
So it's deprecated, should only log in debug? or does it log normally? |
|
@nickvergessen It logs on several occasions as or this one |
|
But if you get this in your log on a production instance it seems you have debug enabled, which you should disable, can you confirm? |
|
Nevermind, I found the problem... feel free to test the branch at #26762 |
I was allready doubting myself. 🥴😄 Glad you found it.🥳 |
|
Works. 🛸 |
Symfony\Component\Translation\PluralizationRulesis deprecated, replacement isSymfony\Component\Translation\IdentityTranslatorl10n/*.jsfiles always had the same result anyway. At least our unit tests for L10NString still pass, so looks promising.|and count argument is%count%instead of%nhttps://github.com/nextcloud/3rdparty/blob/03eb378a5c8f29da9d0240b142bc0e7e66c31694/symfony/translation-contracts/TranslatorInterface.php#L20-L62
|inside translations.