chore(i18n): Fixed plural strings

Also reduced words. See https://uxdworld.com/how-to-write-effective-success-messages/ for details

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
This commit is contained in:
rakekniven 2025-11-04 15:58:15 +01:00 committed by GitHub
parent 6911a33d50
commit 9163982193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,13 +80,13 @@ export async function convertFiles(fileIds: number[], targetMimeType: string) {
// We already check above when all files failed
// if we're here, we have a mix of failed and successful files
showError(n('files', 'One file could not be converted', '%n files could not be converted', failed.length))
showSuccess(n('files', 'One file successfully converted', '%n files successfully converted', fileIds.length - failed.length))
showError(n('files', '%n file could not be converted', '%n files could not be converted', failed.length))
showSuccess(n('files', '%n file converted', '%n files converted', fileIds.length - failed.length))
return
}
// All files converted
showSuccess(t('files', 'Files successfully converted'))
showSuccess(t('files', 'Files converted'))
// Extract files that are within the current directory
// in batch mode, you might have files from different directories