Skip to content

Commit 417fb41

Browse files
Merge pull request #1733 from nextcloud-libraries/rakekniven-patch-1
fix(i18n): Corrected plural for multi. plural languages
2 parents 314fff3 + f9c229d commit 417fb41

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

l10n/messages.pot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ msgstr ""
105105
msgid "Skip"
106106
msgstr ""
107107

108-
msgid "Skip this file"
108+
msgid "Skip {count} file"
109109
msgid_plural "Skip {count} files"
110110
msgstr[0] ""
111111
msgstr[1] ""
112112

113+
msgid "Skip this file"
114+
msgstr ""
115+
113116
msgid "Unknown size"
114117
msgstr ""
115118

lib/components/ConflictPicker.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ export default defineComponent({
194194
},
195195
196196
skipButtonLabel() {
197-
return n('Skip this file', 'Skip {count} files', this.conflicts.length, { count: this.conflicts.length })
197+
if (this.conflicts.length === 1) {
198+
return t('Skip this file')
199+
}
200+
return n('Skip {count} file', 'Skip {count} files', this.conflicts.length, { count: this.conflicts.length })
198201
},
199202
200203
// Select all incoming files

0 commit comments

Comments
 (0)