diff --git a/packages/volto/locales/ca/LC_MESSAGES/volto.po b/packages/volto/locales/ca/LC_MESSAGES/volto.po index ae5579927f..c49f46036f 100644 --- a/packages/volto/locales/ca/LC_MESSAGES/volto.po +++ b/packages/volto/locales/ca/LC_MESSAGES/volto.po @@ -1459,6 +1459,11 @@ msgstr "Arxiu" msgid "Filename" msgstr "Nom de l'arxiu" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Fitxers pujats: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3751,6 +3756,11 @@ msgstr "Total d'objectes actius i no actius" msgid "Total comments" msgstr "Total de comentaris" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Total fitxers per carregar: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3979,11 +3989,6 @@ msgstr "Pengeu una imatge principal al camp de contingut 'Imatge principal'." msgid "Upload files" msgstr "Carregueu fitxers" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Carregant fitxers" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/de/LC_MESSAGES/volto.po b/packages/volto/locales/de/LC_MESSAGES/volto.po index 41c93762f1..f42b1f850c 100644 --- a/packages/volto/locales/de/LC_MESSAGES/volto.po +++ b/packages/volto/locales/de/LC_MESSAGES/volto.po @@ -1458,6 +1458,11 @@ msgstr "Datei" msgid "Filename" msgstr "Dateiname" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Hochgeladene Dateien: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3750,6 +3755,11 @@ msgstr "Anzahl aktive und nicht-aktive Objekte" msgid "Total comments" msgstr "Anzahl Komentare" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Gesamtzahl der hochzuladenden Dateien: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3976,11 +3986,6 @@ msgstr "Laden Sie ein Lead-Bild im Feld 'Lead-Bild' hoch." #. Default: "Upload files" #: components/manage/Contents/ContentsUploadModal msgid "Upload files" -msgstr "Datei hochladen" - -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" msgstr "Dateien hochladen" #. Default: "Uploading image" diff --git a/packages/volto/locales/en/LC_MESSAGES/volto.po b/packages/volto/locales/en/LC_MESSAGES/volto.po index 7804879208..351091e13d 100644 --- a/packages/volto/locales/en/LC_MESSAGES/volto.po +++ b/packages/volto/locales/en/LC_MESSAGES/volto.po @@ -1453,6 +1453,11 @@ msgstr "" msgid "Filename" msgstr "" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3745,6 +3750,11 @@ msgstr "" msgid "Total comments" msgstr "" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3973,11 +3983,6 @@ msgstr "" msgid "Upload files" msgstr "" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/es/LC_MESSAGES/volto.po b/packages/volto/locales/es/LC_MESSAGES/volto.po index 395afdfd49..9ea8879da5 100644 --- a/packages/volto/locales/es/LC_MESSAGES/volto.po +++ b/packages/volto/locales/es/LC_MESSAGES/volto.po @@ -1460,6 +1460,11 @@ msgstr "Vista de archivo" msgid "Filename" msgstr "Nombre del archivo" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Archivos subidos: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3752,6 +3757,11 @@ msgstr "Número de objetos activos y no activos" msgid "Total comments" msgstr "Comentarios totales" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Total de archivos para cargar: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3980,11 +3990,6 @@ msgstr "Cargar una imagen principal en el campo 'Imagen Principal'." msgid "Upload files" msgstr "Cargar archivos" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Cargando archivos" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/eu/LC_MESSAGES/volto.po b/packages/volto/locales/eu/LC_MESSAGES/volto.po index 1678b97357..2909158221 100644 --- a/packages/volto/locales/eu/LC_MESSAGES/volto.po +++ b/packages/volto/locales/eu/LC_MESSAGES/volto.po @@ -1460,6 +1460,11 @@ msgstr "Fitxategiaren bista" msgid "Filename" msgstr "Fitxategi izena" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Igotako fitxategiak: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3752,6 +3757,11 @@ msgstr "Objektu aktibo eta ez-aktiboak" msgid "Total comments" msgstr "Erantzun kopurua" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Igotzeko fitxategiak guztira: {totalFiles} " + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3980,11 +3990,6 @@ msgstr "Kargatu irudia" msgid "Upload files" msgstr "Kargatu fitxategiak" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Fitxategiak kargatzen" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/fi/LC_MESSAGES/volto.po b/packages/volto/locales/fi/LC_MESSAGES/volto.po index 400bdbc90c..9e38934475 100644 --- a/packages/volto/locales/fi/LC_MESSAGES/volto.po +++ b/packages/volto/locales/fi/LC_MESSAGES/volto.po @@ -1458,6 +1458,11 @@ msgstr "Tiedostonäkymä" msgid "Filename" msgstr "Tiedostonimi" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Lähetetyt tiedostot: {uploadedFiles} " + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3750,6 +3755,11 @@ msgstr "Aktiivisten ja ei-aktiivisten kohteiden määrä" msgid "Total comments" msgstr "Kommentteja" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Kaikkien ladattavien tiedostojen määrä: {totalFiles} " + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3978,11 +3988,6 @@ msgstr "Tallenna nostokuva sisällön 'Nostokuva'-kentään" msgid "Upload files" msgstr "Lähetä palvelimelle tiedostoja" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Lähetetään tiedostoja" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/fr/LC_MESSAGES/volto.po b/packages/volto/locales/fr/LC_MESSAGES/volto.po index dd042b9143..f7c4e31855 100644 --- a/packages/volto/locales/fr/LC_MESSAGES/volto.po +++ b/packages/volto/locales/fr/LC_MESSAGES/volto.po @@ -1460,6 +1460,11 @@ msgstr "Vue fichier" msgid "Filename" msgstr "Nom du fichier" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Fichiers téléchargés : {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3752,6 +3757,11 @@ msgstr "Total des objets actifs et non actifs" msgid "Total comments" msgstr "Nombre de commentaires" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Nombre total de fichiers à uploader: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3980,11 +3990,6 @@ msgstr "Téléchargez une image de garde dans le champ «Image de garde»." msgid "Upload files" msgstr "Télécharger des fichiers" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Téléchargement de fichiers" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/it/LC_MESSAGES/volto.po b/packages/volto/locales/it/LC_MESSAGES/volto.po index d9fea77b71..8e5222dc91 100644 --- a/packages/volto/locales/it/LC_MESSAGES/volto.po +++ b/packages/volto/locales/it/LC_MESSAGES/volto.po @@ -1453,6 +1453,11 @@ msgstr "Vista file" msgid "Filename" msgstr "Nome del file" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "File caricati: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3745,6 +3750,11 @@ msgstr "Totale degli oggetti attivi e non attivi" msgid "Total comments" msgstr "Totale dei commenti" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Numero totale di file da caricare: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3973,11 +3983,6 @@ msgstr "Carica un'Immagine di testata nel campo del contenuto." msgid "Upload files" msgstr "Carica file" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Caricamento dei files" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/ja/LC_MESSAGES/volto.po b/packages/volto/locales/ja/LC_MESSAGES/volto.po index 7ebf883d72..5ccc2ae8c0 100644 --- a/packages/volto/locales/ja/LC_MESSAGES/volto.po +++ b/packages/volto/locales/ja/LC_MESSAGES/volto.po @@ -1458,6 +1458,11 @@ msgstr "" msgid "Filename" msgstr "ファイル名" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "アップロードされたファイル: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3750,6 +3755,11 @@ msgstr "オブジェクトの総数" msgid "Total comments" msgstr "コメント計" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "アップロードするファイル合計: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3978,11 +3988,6 @@ msgstr "リード画像をコンテンツのフィールドにアップロード msgid "Upload files" msgstr "アップロードファイル" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "ファイルをアップロードしています" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/nl/LC_MESSAGES/volto.po b/packages/volto/locales/nl/LC_MESSAGES/volto.po index 821a97b1fb..9cb6168525 100644 --- a/packages/volto/locales/nl/LC_MESSAGES/volto.po +++ b/packages/volto/locales/nl/LC_MESSAGES/volto.po @@ -1457,6 +1457,11 @@ msgstr "" msgid "Filename" msgstr "Bestandsnaam" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Geüploade bestanden: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3749,6 +3754,11 @@ msgstr "" msgid "Total comments" msgstr "" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Totaal aantal te uploaden bestanden: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3977,11 +3987,6 @@ msgstr "" msgid "Upload files" msgstr "Bestanden uploaden" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Bestanden uploaden" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/pt/LC_MESSAGES/volto.po b/packages/volto/locales/pt/LC_MESSAGES/volto.po index 528f7cfd10..fa63f79e92 100644 --- a/packages/volto/locales/pt/LC_MESSAGES/volto.po +++ b/packages/volto/locales/pt/LC_MESSAGES/volto.po @@ -1458,6 +1458,11 @@ msgstr "" msgid "Filename" msgstr "Nome de ficheiro" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Arquivos enviados: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3750,6 +3755,11 @@ msgstr "" msgid "Total comments" msgstr "" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Total de ficheiros para carregar: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3978,11 +3988,6 @@ msgstr "" msgid "Upload files" msgstr "Enviar ficheiros" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Enviando ficheiros" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po b/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po index ad44c4e9d5..a8e7d81cb0 100644 --- a/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po +++ b/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po @@ -1459,6 +1459,11 @@ msgstr "Visão de Arquivo" msgid "Filename" msgstr "Nome do arquivo" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Arquivos carregados: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3751,6 +3756,11 @@ msgstr "Total de objetos ativos e não ativos" msgid "Total comments" msgstr "Total de comentários" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Total de arquivos para upload: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3979,11 +3989,6 @@ msgstr "Enviar uma imagem para o campo de imagem principal." msgid "Upload files" msgstr "Enviar arquivos" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Enviando arquivos" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/ro/LC_MESSAGES/volto.po b/packages/volto/locales/ro/LC_MESSAGES/volto.po index 02eec7298d..2ababcbc53 100644 --- a/packages/volto/locales/ro/LC_MESSAGES/volto.po +++ b/packages/volto/locales/ro/LC_MESSAGES/volto.po @@ -1453,6 +1453,11 @@ msgstr "" msgid "Filename" msgstr "Nume fișier" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "Fișiere încărcate: {uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3745,6 +3750,11 @@ msgstr "Total obiecte active și inactive" msgid "Total comments" msgstr "Total comentarii" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "Numărul total de fișiere de încărcat: {totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3973,11 +3983,6 @@ msgstr "Încărcați o imagine de start în câmpul de conținut 'Imagine de sta msgid "Upload files" msgstr "Încărcați fișiere" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "Încărcarea fișierelor" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/volto.pot b/packages/volto/locales/volto.pot index f0525ab267..82a00408e7 100644 --- a/packages/volto/locales/volto.pot +++ b/packages/volto/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-03-06T08:38:38.161Z\n" +"POT-Creation-Date: 2024-05-03T06:54:04.407Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "Content-Type: text/plain; charset=utf-8\n" @@ -1455,6 +1455,11 @@ msgstr "" msgid "Filename" msgstr "" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3747,6 +3752,11 @@ msgstr "" msgid "Total comments" msgstr "" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3975,11 +3985,6 @@ msgstr "" msgid "Upload files" msgstr "" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po b/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po index 8b5f5165a6..2f53f62d3e 100644 --- a/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po +++ b/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po @@ -1459,6 +1459,11 @@ msgstr "文件视图" msgid "Filename" msgstr "文件名" +#. Default: "Files uploaded: {uploadedFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Files uploaded: {uploadedFiles}" +msgstr "已上载的文件:{uploadedFiles}" + #. Default: "Filter" #: helpers/MessageLabels/MessageLabels msgid "Filter" @@ -3751,6 +3756,11 @@ msgstr "活动和非活动对象的总数" msgid "Total comments" msgstr "全部评论" +#. Default: "Total files to upload: {totalFiles}" +#: components/manage/Contents/ContentsUploadModal +msgid "Total files to upload: {totalFiles}" +msgstr "总计需上传的文件:{totalFiles}" + #. Default: "Total number of objects in each cache" #: components/manage/Controlpanels/DatabaseInformation msgid "Total number of objects in each cache" @@ -3979,11 +3989,6 @@ msgstr "" msgid "Upload files" msgstr "上传文件" -#. Default: "Uploading files" -#: components/manage/Contents/ContentsUploadModal -msgid "Uploading files" -msgstr "上传文件中" - #. Default: "Uploading image" #: components/manage/Blocks/Image/Edit msgid "Uploading image" diff --git a/packages/volto/news/5620.bugfix b/packages/volto/news/5620.bugfix new file mode 100644 index 0000000000..da0033b853 --- /dev/null +++ b/packages/volto/news/5620.bugfix @@ -0,0 +1 @@ +Replaced the spinner with a progress bar that shows the number of files being uploaded (Uploading x files out of y), and positioned the progress bar properly, while uploading a large number of files. @victorchrollo14 diff --git a/packages/volto/src/actions/content/content.js b/packages/volto/src/actions/content/content.js index 145a3a031f..fd97dfb89b 100644 --- a/packages/volto/src/actions/content/content.js +++ b/packages/volto/src/actions/content/content.js @@ -14,10 +14,24 @@ import { LOCK_CONTENT, UNLOCK_CONTENT, LINK_INTEGRITY_CHECK, + UPDATE_UPLOADED_FILES, } from '@plone/volto/constants/ActionTypes'; import { nestContent } from '@plone/volto/helpers'; import config from '@plone/volto/registry'; +/** + * update uploaded files count function + * @function updateUploadedFiles + * @param {number} number of files uploaded + * @returns {Object} update uploaded files action + */ +export function updateUploadedFiles(uploadedFiles) { + return { + type: UPDATE_UPLOADED_FILES, + uploadedFiles: uploadedFiles, + }; +} + /** * Create content function. * @function createContent diff --git a/packages/volto/src/actions/content/content.test.js b/packages/volto/src/actions/content/content.test.js index d1e876f155..73ad7d9ec8 100644 --- a/packages/volto/src/actions/content/content.test.js +++ b/packages/volto/src/actions/content/content.test.js @@ -8,6 +8,7 @@ import { sortContent, lockContent, unlockContent, + updateUploadedFiles, } from './content'; import { CREATE_CONTENT, @@ -18,6 +19,7 @@ import { RESET_CONTENT, LOCK_CONTENT, UNLOCK_CONTENT, + UPDATE_UPLOADED_FILES, } from '@plone/volto/constants/ActionTypes'; describe('Content action', () => { @@ -307,4 +309,16 @@ describe('Content action', () => { expect(action.request[1].path).toEqual(`${urls[1]}/@lock`); }); }); + + describe('Uploaded Files action', () => { + describe('updateUploadedFiles', () => { + it('should create an action to update the number of uploaded files', () => { + const uploadedFiles = 5; + const action = updateUploadedFiles(uploadedFiles); + + expect(action.type).toEqual(UPDATE_UPLOADED_FILES); + expect(action.uploadedFiles).toEqual(5); + }); + }); + }); }); diff --git a/packages/volto/src/actions/index.js b/packages/volto/src/actions/index.js index bbd33b79a1..21c58372de 100644 --- a/packages/volto/src/actions/index.js +++ b/packages/volto/src/actions/index.js @@ -37,6 +37,7 @@ export { lockContent, unlockContent, linkIntegrityCheck, + updateUploadedFiles, } from '@plone/volto/actions/content/content'; export { getControlpanel, diff --git a/packages/volto/src/components/manage/Contents/ContentsUploadModal.jsx b/packages/volto/src/components/manage/Contents/ContentsUploadModal.jsx index cc9e0f22c9..4290a3d95f 100644 --- a/packages/volto/src/components/manage/Contents/ContentsUploadModal.jsx +++ b/packages/volto/src/components/manage/Contents/ContentsUploadModal.jsx @@ -13,11 +13,11 @@ import { Header, Icon, Image, - Loader, Modal, Table, Segment, Input, + Progress, } from 'semantic-ui-react'; import loadable from '@loadable/component'; import { concat, filter, map } from 'lodash'; @@ -40,6 +40,14 @@ const messages = defineMessages({ defaultMessage: '{count, plural, one {Upload {count} file} other {Upload {count} files}}', }, + filesUploaded: { + id: 'Files uploaded: {uploadedFiles}', + defaultMessage: 'Files uploaded: {uploadedFiles}', + }, + totalFilesToUpload: { + id: 'Total files to upload: {totalFiles}', + defaultMessage: 'Total files to upload: {totalFiles}', + }, }); const SUBREQUEST = 'batch-upload'; @@ -65,6 +73,7 @@ class ContentsUploadModal extends Component { open: PropTypes.bool.isRequired, onOk: PropTypes.func.isRequired, onCancel: PropTypes.func.isRequired, + uploadedFiles: PropTypes.number, multiple: PropTypes.bool, minSize: PropTypes.number, maxSize: PropTypes.number, @@ -88,9 +97,9 @@ class ContentsUploadModal extends Component { this.onSubmit = this.onSubmit.bind(this); this.state = { files: [], + totalFiles: 0, }; } - /** * Component will receive props * @method componentWillReceiveProps @@ -120,6 +129,7 @@ class ContentsUploadModal extends Component { index !== parseInt(event.target.getAttribute('value'), 10), ), }); + this.setState((prevState) => ({ totalFiles: prevState.totalFiles - 1 })); } /** @@ -142,6 +152,8 @@ class ContentsUploadModal extends Component { this.setState({ files: concat(this.state.files, validFiles), }); + + this.setState({ totalFiles: validFiles.length }); }; /** @@ -154,8 +166,8 @@ class ContentsUploadModal extends Component { this.setState({ files: [], }); + this.setState({ totalFiles: 0 }); } - /** * Name change handler * @method onChangeFileName @@ -234,13 +246,23 @@ class ContentsUploadModal extends Component {
+ - - - +
+ + {this.props.intl.formatMessage(messages.filesUploaded, { + uploadedFiles: this.props.uploadedFiles, + })} +
+ {this.props.intl.formatMessage(messages.totalFilesToUpload, { + totalFiles: this.state.totalFiles, + })} +
+
({ request: state.content.subrequests?.[SUBREQUEST] || {}, + uploadedFiles: state.content.uploadedFiles, }), { createContent }, ), diff --git a/packages/volto/src/constants/ActionTypes.js b/packages/volto/src/constants/ActionTypes.js index b85561281c..cb7ced7fe4 100644 --- a/packages/volto/src/constants/ActionTypes.js +++ b/packages/volto/src/constants/ActionTypes.js @@ -145,3 +145,4 @@ export const RESET_LOGIN_REQUEST = 'RESET_LOGIN_REQUEST'; export const GET_SITE = 'GET_SITE'; export const GET_NAVROOT = 'GET_NAVROOT'; export const SET_FORM_DATA = 'SET_FORM_DATA'; +export const UPDATE_UPLOADED_FILES = 'UPDATE_UPLOADED_FILES'; diff --git a/packages/volto/src/middleware/api.js b/packages/volto/src/middleware/api.js index f1e3557b7b..f46dc30470 100644 --- a/packages/volto/src/middleware/api.js +++ b/packages/volto/src/middleware/api.js @@ -17,7 +17,7 @@ import { RESET_APIERROR, SET_APIERROR, } from '@plone/volto/constants/ActionTypes'; -import { changeLanguage } from '@plone/volto/actions'; +import { changeLanguage, updateUploadedFiles } from '@plone/volto/actions'; import { toGettextLang, toReactIntlLang, @@ -133,6 +133,7 @@ const apiMiddlewareFactory = const { settings } = config; const token = getState().userSession.token; + let uploadedFiles = getState().content.uploadedFiles; let isAnonymous = true; if (token) { const tokenExpiration = jwtDecode(token).exp; @@ -154,7 +155,6 @@ const apiMiddlewareFactory = } next({ ...rest, type: `${type}_PENDING` }); - if (socket) { actionPromise = Array.isArray(request) ? Promise.all( @@ -188,6 +188,9 @@ const apiMiddlewareFactory = ), }, ).then((reqres) => { + if (action.subrequest === 'batch-upload') { + dispatch(updateUploadedFiles(++uploadedFiles)); + } return [...acc, reqres]; }); }); @@ -214,6 +217,10 @@ const apiMiddlewareFactory = }); actionPromise.then( (result) => { + if (uploadedFiles !== 0) { + dispatch(updateUploadedFiles(0)); + } + const { settings } = config; if (getState().apierror.connectionRefused) { next({ diff --git a/packages/volto/src/reducers/content/content.js b/packages/volto/src/reducers/content/content.js index 6df70e0028..c610b46e0a 100644 --- a/packages/volto/src/reducers/content/content.js +++ b/packages/volto/src/reducers/content/content.js @@ -17,6 +17,7 @@ import { RESET_CONTENT, UPDATE_CONTENT, UPDATECOLUMNS_CONTENT, + UPDATE_UPLOADED_FILES, } from '@plone/volto/constants/ActionTypes'; const initialState = { @@ -62,6 +63,7 @@ const initialState = { }, data: null, subrequests: {}, + uploadedFiles: 0, }; /** @@ -350,6 +352,11 @@ export default function content(state = initialState, action = {}) { }, data: null, }; + case UPDATE_UPLOADED_FILES: + return { + ...state, + uploadedFiles: action.uploadedFiles, + }; default: return state; } diff --git a/packages/volto/src/reducers/content/content.test.js b/packages/volto/src/reducers/content/content.test.js index 19dfdc78b3..b4550eba25 100644 --- a/packages/volto/src/reducers/content/content.test.js +++ b/packages/volto/src/reducers/content/content.test.js @@ -8,6 +8,7 @@ import { UPDATE_CONTENT, LOCK_CONTENT, UNLOCK_CONTENT, + UPDATE_UPLOADED_FILES, } from '@plone/volto/constants/ActionTypes'; const { settings } = config; @@ -57,6 +58,7 @@ describe('Content reducer', () => { loading: false, error: null, }, + uploadedFiles: 0, }); }); @@ -579,4 +581,15 @@ describe('Content reducer', () => { }, }); }); + + it('should handle UPDATE_UPLOADED_FILES', () => { + expect( + content(undefined, { + type: UPDATE_UPLOADED_FILES, + uploadedFiles: 5, + }), + ).toMatchObject({ + uploadedFiles: 5, + }); + }); }); diff --git a/packages/volto/theme/themes/pastanaga/extras/contents.less b/packages/volto/theme/themes/pastanaga/extras/contents.less index af1c80e661..64a1383dfc 100644 --- a/packages/volto/theme/themes/pastanaga/extras/contents.less +++ b/packages/volto/theme/themes/pastanaga/extras/contents.less @@ -212,4 +212,46 @@ padding: 0.67857143em 1em; } } + + .ui.progress:first-child { + margin: 0 0 2.5em; + } + + .progress-container { + padding: 35px; + background: white; + box-shadow: 0px 0px 12px 4px rgba(0, 0, 0, 0.43); + } + + .progress-bar { + width: 300px; + height: 15px; + border-radius: 0; + + .bar { + height: 15px; + border-radius: 0; + background: #0074a3; + } + + .label { + position: relative; + margin: 0; + background: white; + color: grey; + font-size: small; + font-weight: normal; + line-height: 18px; + text-align: left; + + .uploaded-files { + color: #0074a3; + } + } + } +} + +.contents-upload-modal > .content { + overflow: auto; + max-height: 75vh; }