-
-
Couldn't load subscription status.
- Fork 4.6k
[stable31] fix(singularandpluralfiles):implemented ternary operator to handle si… #51419
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
|
/compile amend / |
dd8f138 to
f258b22
Compare
| // if we're here, we have a mix of failed and successful files | ||
| showError(t('files', '{count} files could not be converted', { count: failed.length })) | ||
| showSuccess(t('files', '{count} files successfully converted', { count: fileIds.length - failed.length })) | ||
| showError(n('files', 'One file could not be converted', '%n files could not be converted', failed.length)) |
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.
Please use the placeholder also in singular (even if you split the === 1 case of above) to keep it more logical for translators of languages where they have no "plural" for 1, but e.g. the first plural rule is for numbers 1-3
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 already done on master not only on the backport
Co-authored-by: Caitlin Jordan <jordan.cait17@gmail.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
f258b22 to
0314ccd
Compare
|
Thanks for the help here, it was still on my todo, but down the priority list :( |
Backport of #51031
Warning, This backport's changes differ from the original and might be incomplete⚠️
Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.