"Symfony\Component\Translation\PluralizationRules" is deprecated#26375
Conversation
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.
- 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 <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
bb415e4 to
79ebc7f
Compare
|
@MorrisJobke good to go? |
|
@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.