From f9c229dda99f530d8905e98aa88cedc3f6bfa36e Mon Sep 17 00:00:00 2001 From: rakekniven <2069590+rakekniven@users.noreply.github.com> Date: Thu, 1 May 2025 12:04:55 +0200 Subject: [PATCH] fix(i18n): Corrected plural for multi. plural languages Reported at Transifex. https://app.transifex.com/nextcloud/nextcloud-upload-library/translate/#de_DE/16314f783b1fbd5880d265a6aa82c3d7/488853442 Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com> --- l10n/messages.pot | 5 ++++- lib/components/ConflictPicker.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/l10n/messages.pot b/l10n/messages.pot index 15fdf722..045f0686 100644 --- a/l10n/messages.pot +++ b/l10n/messages.pot @@ -105,11 +105,14 @@ msgstr "" msgid "Skip" msgstr "" -msgid "Skip this file" +msgid "Skip {count} file" msgid_plural "Skip {count} files" msgstr[0] "" msgstr[1] "" +msgid "Skip this file" +msgstr "" + msgid "Unknown size" msgstr "" diff --git a/lib/components/ConflictPicker.vue b/lib/components/ConflictPicker.vue index 040b7dc6..d18e2c23 100644 --- a/lib/components/ConflictPicker.vue +++ b/lib/components/ConflictPicker.vue @@ -194,7 +194,10 @@ export default defineComponent({ }, skipButtonLabel() { - return n('Skip this file', 'Skip {count} files', this.conflicts.length, { count: this.conflicts.length }) + if (this.conflicts.length === 1) { + return t('Skip this file') + } + return n('Skip {count} file', 'Skip {count} files', this.conflicts.length, { count: this.conflicts.length }) }, // Select all incoming files