From c49d76274daafba8c62f421c53b27f0e61678f57 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Mon, 21 Jul 2025 18:24:49 +0200 Subject: [PATCH] WebClient: translate "selected items" label also at bottom of page Fixes #1979 Signed-off-by: Nicola Murino --- static/locales/de/translation.json | 1 + static/locales/en/translation.json | 1 + static/locales/fr/translation.json | 1 + static/locales/it/translation.json | 1 + templates/webclient/files.html | 9 ++++++++- 5 files changed, 12 insertions(+), 1 deletion(-) diff --git a/static/locales/de/translation.json b/static/locales/de/translation.json index 8de1831d..cedda3fb 100644 --- a/static/locales/de/translation.json +++ b/static/locales/de/translation.json @@ -156,6 +156,7 @@ "datetime": "{{- val, datetime}}", "selected_items_one": "{{count}} Element ausgewählt", "selected_items_other": "{{count}} Elemente ausgewählt", + "selected_with_placeholder": "%d Elemente ausgewählt", "name_required": "Name ist erforderlich!", "name_different": "Der neue Name muss sich vom aktuellen Namen unterscheiden!", "html5_media_not_supported": "Ihr Browser unterstützt keine HTML5-Audio/Video.", diff --git a/static/locales/en/translation.json b/static/locales/en/translation.json index f379e488..e1dffe6f 100644 --- a/static/locales/en/translation.json +++ b/static/locales/en/translation.json @@ -156,6 +156,7 @@ "datetime": "{{- val, datetime}}", "selected_items_one": "{{count}} item selected", "selected_items_other": "{{count}} items selected", + "selected_with_placeholder": "%d items selected", "name_required": "Name is required", "name_different": "The new name must be different from the current name", "html5_media_not_supported": "Your browser does not support HTML5 audio/video.", diff --git a/static/locales/fr/translation.json b/static/locales/fr/translation.json index 6f08d6ba..d5add7be 100644 --- a/static/locales/fr/translation.json +++ b/static/locales/fr/translation.json @@ -156,6 +156,7 @@ "datetime": "{{- val, datetime}}", "selected_items_one": "{{count}} élément sélectionné", "selected_items_other": "{{count}} éléments sélectionnés", + "selected_with_placeholder": "%d éléments sélectionnés", "name_required": "Le nom est requis", "name_different": "Le nouveau nom doit être différent du nom actuel", "html5_media_not_supported": "Votre navigateur ne supporte pas l'audio/vidéo HTML5.", diff --git a/static/locales/it/translation.json b/static/locales/it/translation.json index f134f32d..76961473 100644 --- a/static/locales/it/translation.json +++ b/static/locales/it/translation.json @@ -156,6 +156,7 @@ "datetime": "{{- val, datetime}}", "selected_items_one": "{{count}} elemento selezionato", "selected_items_other": "{{count}} elementi selezionati", + "selected_with_placeholder": "%d elementi selezionati", "name_required": "Il nome è obbligatorio", "name_different": "Il nuovo nome deve essere diverso dal nome attuale", "html5_media_not_supported": "Il tuo browser non supporta audio/video HTML5.", diff --git a/templates/webclient/files.html b/templates/webclient/files.html index 00cb1f01..9d12cb2e 100644 --- a/templates/webclient/files.html +++ b/templates/webclient/files.html @@ -831,7 +831,14 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). loadingRecords: "", processing: $.t('datatable.processing'), zeroRecords: "", - emptyTable: $.t('fs.no_files_folders') + emptyTable: $.t('fs.no_files_folders'), + select: { + rows: { + _: $.t('general.selected_with_placeholder'), + 0: '', + 1: $.t('general.selected_items', { count: 1}) + } + } }, orderFixed: [1, 'asc'], order: [2, 'asc'],