Skip to content
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

[stable31] fix(singularandpluralfiles):implemented ternary operator to handle si… #51419

Open
wants to merge 2 commits into
base: stable31
Choose a base branch
from

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 12, 2025

Backport of #51031

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Co-authored-by: Caitlin Jordan <jordan.cait17@gmail.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@skjnldsv skjnldsv marked this pull request as ready for review March 12, 2025 10:03
@skjnldsv
Copy link
Member

/compile amend /

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the backport/51031/stable31 branch from dd8f138 to f258b22 Compare March 12, 2025 10:08
@blizzz blizzz mentioned this pull request Mar 12, 2025
14 tasks
return
}

// We already check above when all files failed
// 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))
Copy link
Member

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

@Altahrim Altahrim mentioned this pull request Mar 18, 2025
20 tasks
@blizzz blizzz mentioned this pull request Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants