diff --git a/CHANGELOG.md b/CHANGELOG.md index 084ea0b7b0..c4d1b9f28d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,19 @@ myst: +## 17.20.3 (2024-12-12) + +### Bugfix + +- Added missing translation in Table of Contents block and added missing Italian translations. @pnicolli [#6533](https://github.com/plone/volto/issues/6533) + +## 17.20.2 (2024-12-11) + +### Bugfix + +- Fixes ICS download in non-public event content. @sneridagh [#6497](https://github.com/plone/volto/issues/6497) +- improved Contents delete modal and linkintegrity check. @giuliaghisini [#6517](https://github.com/plone/volto/issues/6517) + ## 17.20.1 (2024-10-30) ### Bugfix diff --git a/docs/source/release-notes/index.md b/docs/source/release-notes/index.md index 084ea0b7b0..c4d1b9f28d 100644 --- a/docs/source/release-notes/index.md +++ b/docs/source/release-notes/index.md @@ -17,6 +17,19 @@ myst: +## 17.20.3 (2024-12-12) + +### Bugfix + +- Added missing translation in Table of Contents block and added missing Italian translations. @pnicolli [#6533](https://github.com/plone/volto/issues/6533) + +## 17.20.2 (2024-12-11) + +### Bugfix + +- Fixes ICS download in non-public event content. @sneridagh [#6497](https://github.com/plone/volto/issues/6497) +- improved Contents delete modal and linkintegrity check. @giuliaghisini [#6517](https://github.com/plone/volto/issues/6517) + ## 17.20.1 (2024-10-30) ### Bugfix diff --git a/locales/ca/LC_MESSAGES/volto.po b/locales/ca/LC_MESSAGES/volto.po index 5285d2a757..0cfabeaceb 100644 --- a/locales/ca/LC_MESSAGES/volto.po +++ b/locales/ca/LC_MESSAGES/volto.po @@ -229,11 +229,6 @@ msgstr "Afegeix {type}" msgid "Add-Ons" msgstr "" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -531,6 +526,7 @@ msgstr "No es pot editar el disseny per al tipus de contingut {type}{type} kann nicht verändert werden, da das #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1011,12 +1007,12 @@ msgid "Delete row" msgstr "Zeile löschen" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "" @@ -1026,7 +1022,7 @@ msgid "Deleted" msgstr "Gelöscht" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2264,6 +2260,11 @@ msgstr "Schmal" msgid "Navigate back" msgstr "Zurück navigieren" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3135,6 +3136,11 @@ msgstr "Anzuzeigende Spalten wählen" msgid "Select relation" msgstr "Wählen Sie eine Relation" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3337,12 +3343,12 @@ msgid "Small" msgstr "Klein" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "" @@ -3518,6 +3524,7 @@ msgstr "Tabelle" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Inhaltsverzeichnis" @@ -3702,6 +3709,11 @@ msgstr "Es gibt Fehler" msgid "There were some errors." msgstr "Es sind Fehler aufgetreten." +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3723,7 +3735,7 @@ msgid "This is a working copy of {title}" msgstr "Das ist eine Arbeitskopie von {title}" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4104,11 +4116,6 @@ msgstr "Benutzername" msgid "Users" msgstr "Benutzer" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Benutzer und Gruppen" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4147,7 +4154,7 @@ msgid "View changes" msgstr "Änderungen anzeigen" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4566,12 +4573,12 @@ msgid "intranet" msgstr "Intranet" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "" @@ -4590,6 +4597,21 @@ msgstr "Mein Nutzername lautet" msgid "leadimage" msgstr "Lead-Bild" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4715,15 +4737,20 @@ msgid "rebuild relations" msgstr "Relationen neu indizieren" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 07a2c42f0e..dd0a6e0974 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -223,11 +223,6 @@ msgstr "" msgid "Add-Ons" msgstr "" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -525,6 +520,7 @@ msgstr "" #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1006,12 +1002,12 @@ msgid "Delete row" msgstr "" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "" @@ -1021,7 +1017,7 @@ msgid "Deleted" msgstr "" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2259,6 +2255,11 @@ msgstr "" msgid "Navigate back" msgstr "" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3130,6 +3131,11 @@ msgstr "" msgid "Select relation" msgstr "" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3332,12 +3338,12 @@ msgid "Small" msgstr "" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "" @@ -3513,6 +3519,7 @@ msgstr "" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "" @@ -3697,6 +3704,11 @@ msgstr "" msgid "There were some errors." msgstr "" +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3718,7 +3730,7 @@ msgid "This is a working copy of {title}" msgstr "" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4099,11 +4111,6 @@ msgstr "" msgid "Users" msgstr "" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4142,7 +4149,7 @@ msgid "View changes" msgstr "" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4561,12 +4568,12 @@ msgid "intranet" msgstr "" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "" @@ -4585,6 +4592,21 @@ msgstr "" msgid "leadimage" msgstr "" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4710,15 +4732,20 @@ msgid "rebuild relations" msgstr "" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index ca8ab81177..c6ac74aed2 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -230,11 +230,6 @@ msgstr "Agregar {type}" msgid "Add-Ons" msgstr "Complementos" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "Configuración de Complementos" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -532,6 +527,7 @@ msgstr "No se puede editar la plantilla de {type} porque el sop #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1013,12 +1009,12 @@ msgid "Delete row" msgstr "Eliminar fila" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "¿Eliminar elementos seleccionados?" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "¿Eliminar este elemento?" @@ -1028,7 +1024,7 @@ msgid "Deleted" msgstr "Eliminado" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2266,6 +2262,11 @@ msgstr "Filtrar" msgid "Navigate back" msgstr "Navegar hacia atrás" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3137,6 +3138,11 @@ msgstr "Seleccionar columnas a mostrar" msgid "Select relation" msgstr "Seleccionar relación" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3339,12 +3345,12 @@ msgid "Small" msgstr "Pequeño" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "Algunos elementos están referenciados por otros contenidos. Al eliminarlos, {brokenReferences} {variation} se romperá." @@ -3520,6 +3526,7 @@ msgstr "Tabla" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Tabla de contenidos" @@ -3704,6 +3711,11 @@ msgstr "Ha habido algunos errores" msgid "There were some errors." msgstr "Hay algunos errores." +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3725,7 +3737,7 @@ msgid "This is a working copy of {title}" msgstr "Es una copia de trabajo de {title}" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4106,11 +4118,6 @@ msgstr "Nombre de usuario" msgid "Users" msgstr "Usuarios" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Usuarios y Grupos" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4149,7 +4156,7 @@ msgid "View changes" msgstr "Mostrar los cambios" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4568,12 +4575,12 @@ msgid "intranet" msgstr "Intranet" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "elemento" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "elementos" @@ -4592,6 +4599,21 @@ msgstr "Mi nombre de usuario es" msgid "leadimage" msgstr "Imagen Principal" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4717,15 +4739,20 @@ msgid "rebuild relations" msgstr "reconstruir relaciones" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "referencia" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "referencias" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/eu/LC_MESSAGES/volto.po b/locales/eu/LC_MESSAGES/volto.po index eeede882ba..1312e0133d 100644 --- a/locales/eu/LC_MESSAGES/volto.po +++ b/locales/eu/LC_MESSAGES/volto.po @@ -230,11 +230,6 @@ msgstr "Gehitu {type}" msgid "Add-Ons" msgstr "Produktuak" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "Produktuen konfigurazioa" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -532,6 +527,7 @@ msgstr "Ezin da {type} elementu-motaren itxura aldatu, #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1013,12 +1009,12 @@ msgid "Delete row" msgstr "Ezabatu errenkada" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "" @@ -1028,7 +1024,7 @@ msgid "Deleted" msgstr "Ezabatuta" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2266,6 +2262,11 @@ msgstr "Estutu" msgid "Navigate back" msgstr "Atzera joan" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3137,6 +3138,11 @@ msgstr "Aukeratu erakutsiko diren zutabeak" msgid "Select relation" msgstr "" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3339,12 +3345,12 @@ msgid "Small" msgstr "Txikia" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "" @@ -3520,6 +3526,7 @@ msgstr "Taula" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Edukien taula" @@ -3704,6 +3711,11 @@ msgstr "Errorea gertatu da" msgid "There were some errors." msgstr "Errorea gertatu da" +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3725,7 +3737,7 @@ msgid "This is a working copy of {title}" msgstr "Hau {title} elementuaren lan-bertsioa da" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4106,11 +4118,6 @@ msgstr "Erabiltzaile izena" msgid "Users" msgstr "Erabiltzaileak" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Erabiltzaile eta taldeak" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4149,7 +4156,7 @@ msgid "View changes" msgstr "Aldaketak ikusi" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4568,12 +4575,12 @@ msgid "intranet" msgstr "Intraneta" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "" @@ -4592,6 +4599,21 @@ msgstr "Nire erabiltzaile izena da" msgid "leadimage" msgstr "Irudi nagusiaren eremua" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4717,15 +4739,20 @@ msgid "rebuild relations" msgstr "" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/fi/LC_MESSAGES/volto.po b/locales/fi/LC_MESSAGES/volto.po index 72a83e6c7d..c63a3e5ada 100644 --- a/locales/fi/LC_MESSAGES/volto.po +++ b/locales/fi/LC_MESSAGES/volto.po @@ -228,11 +228,6 @@ msgstr "Lisää {type}" msgid "Add-Ons" msgstr "Laajennokset" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "Laajennosten asetukset" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -530,6 +525,7 @@ msgstr "Sisältötyypin {type} asettelua ei voi muokata, koska #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1011,12 +1007,12 @@ msgid "Delete row" msgstr "Poista valittu rivi" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "" @@ -1026,7 +1022,7 @@ msgid "Deleted" msgstr "Poistettu" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2264,6 +2260,11 @@ msgstr "Kavenna" msgid "Navigate back" msgstr "Takaisin" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3135,6 +3136,11 @@ msgstr "Näytettävät sarakkeet" msgid "Select relation" msgstr "" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3337,12 +3343,12 @@ msgid "Small" msgstr "Pieni" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "" @@ -3518,6 +3524,7 @@ msgstr "Taulukkoa" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Sisällys" @@ -3702,6 +3709,11 @@ msgstr "Lomakkeesta löytyi virheitä" msgid "There were some errors." msgstr "Löytyi joitakin puutteita tai virheitä." +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3723,7 +3735,7 @@ msgid "This is a working copy of {title}" msgstr "" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4104,11 +4116,6 @@ msgstr "Käyttäjätunnus" msgid "Users" msgstr "Käyttäjät" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Käyttäjät ja ryhmät" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4147,7 +4154,7 @@ msgid "View changes" msgstr "Näytä muutokset" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4566,12 +4573,12 @@ msgid "intranet" msgstr "inranet" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "" @@ -4590,6 +4597,21 @@ msgstr "Käyttäjätunnukseni" msgid "leadimage" msgstr "nostokuva" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4715,15 +4737,20 @@ msgid "rebuild relations" msgstr "" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index a56968664a..06d2f83f02 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -230,11 +230,6 @@ msgstr "Ajouter {type}" msgid "Add-Ons" msgstr "Modules" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "Configuration des modules" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -532,6 +527,7 @@ msgstr "Impossible de modifier la mise en page pour le type de contenu { #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1013,12 +1009,12 @@ msgid "Delete row" msgstr "Supprimer la ligne" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "" @@ -1028,7 +1024,7 @@ msgid "Deleted" msgstr "Supprimé" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2266,6 +2262,11 @@ msgstr "Étroit" msgid "Navigate back" msgstr "Retour en arrière" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3137,6 +3138,11 @@ msgstr "Sélectionnez les colonnes à afficher" msgid "Select relation" msgstr "" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3339,12 +3345,12 @@ msgid "Small" msgstr "Petit" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "" @@ -3520,6 +3526,7 @@ msgstr "Table" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Table des matières" @@ -3704,6 +3711,11 @@ msgstr "Il y a eu quelques erreurs" msgid "There were some errors." msgstr "Il y a eu quelques erreurs." +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3725,7 +3737,7 @@ msgid "This is a working copy of {title}" msgstr "Il sagit d'une copie de travail de {title}" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4106,11 +4118,6 @@ msgstr "Nom d'utilisateur" msgid "Users" msgstr "Utilisateurs" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Utilisateurs et groupes" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4149,7 +4156,7 @@ msgid "View changes" msgstr "Voir les changements" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4568,12 +4575,12 @@ msgid "intranet" msgstr "Intranet" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "" @@ -4592,6 +4599,21 @@ msgstr "Mon nom d'utilisateur est" msgid "leadimage" msgstr "image de garde" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4717,15 +4739,20 @@ msgid "rebuild relations" msgstr "" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 80b67d9e94..554cdf4526 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -54,7 +54,7 @@ msgstr "Azioni" #. Default: "Activate and deactivate add-ons in the lists below." #: components/manage/Controlpanels/AddonsControlpanel msgid "Activate and deactivate" -msgstr "Attiva e disattiva" +msgstr "Questa è la sezione per la configurazione dei prodotti aggiuntivi, puoi attivare e disattivare i prodotti aggiuntivi attraverso la seguente lista." #. Default: "Active" #: components/manage/Rules/Rules @@ -86,7 +86,7 @@ msgstr "Aggiungi" #. Default: "To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add Addons" -msgstr "Aggiungi Add-ons" +msgstr "Per fare in modo che un prodotto aggiuntivo venga visualizzato qui aggiungilo nella configurazione del buildout, esegui il buildout e riavvia il server. Per maggiori informazioni vedi" #. Default: "Add Content…" #: components/manage/Toolbar/Types @@ -221,22 +221,17 @@ msgstr "Aggiungi {type}" #. Default: "Add-Ons" #: components/manage/Controlpanels/Controlpanels msgid "Add-Ons" -msgstr "Add-On" - -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "Configurazione Add-on" +msgstr "Prodotti aggiuntivi" #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" -msgstr "Add-On" +msgstr "Prodotti aggiuntivi" #. Default: "Add-ons Settings" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons Settings" -msgstr "Impostazioni Add-ons" +msgstr "Impostazioni prodotti aggiuntivi" #. Default: "Added" #: components/manage/Rules/Rules @@ -496,7 +491,7 @@ msgstr "Sfoglia" #. Default: "Browse the site, drop an image, or use a URL" #: components/manage/Widgets/ImageWidget msgid "Browse the site, drop an image, or type a URL" -msgstr "" +msgstr "Cerca nel sito, trascina un'immagine, o inserisci un URL" #. Default: "Browse the site, drop an image, or type an URL" #: components/manage/Blocks/Image/Edit @@ -525,6 +520,7 @@ msgstr "Non è possibile modificare il Layout per il tipo {type}, &, #, /, ?, or others that are illegal in URLs. Cannot start with: _, aq_, @@, ++. Cannot end with __. Cannot be: request,contributors, ., .., "". Cannot contain new lines." #: components/manage/Widgets/IdWidget msgid "Only 7-bit bytes characters are allowed. Cannot contain uppercase letters, special characters: <, >, &, #, /, ?, or others that are illegal in URLs. Cannot start with: _, aq_, @@, ++. Cannot end with __. Cannot be: request,contributors, ., .., "". Cannot contain new lines." -msgstr "" +msgstr "Sono ammessi solo 7-bit bytes di caratteri. Non può contenere lettere maiuscole, caratteris speciali come: <, >, &, #, /, ?, o altri che non sono ammessi negli URLs. Non può iniziare con: _, aq_, @@, ++. Non può finire con: __. Non può essere: request,contributors, ., .., "" Non può contenere nuove righe." #. Default: "Open in a new tab" #: components/manage/Blocks/Image/schema @@ -2482,7 +2483,7 @@ msgstr "Apri object browser" #. Default: "Ordered" #: components/manage/Blocks/ToC/Schema msgid "Ordered" -msgstr "" +msgstr "Ordinati" #. Default: "Origin" #: components/manage/Blocks/LeadImage/LeadImageSidebar @@ -3130,6 +3131,11 @@ msgstr "Seleziona le colonne da mostrare" msgid "Select relation" msgstr "Seleziona relazione" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "Seleziona una regola" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3183,7 +3189,7 @@ msgstr "Invia una mail di conferma con un link per impostare la password." #. Default: "Server Error" #: components/theme/Error/ServerError msgid "Server Error" -msgstr "" +msgstr "Errore del server" #. Default: "Set my password" #: components/theme/PasswordReset/PasswordReset @@ -3332,14 +3338,14 @@ msgid "Small" msgstr "Piccolo" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -msgstr "" +msgstr "Alcuni elementi sono anche delle cartelle. Eliminandoli cancellerai {containedItemsToDelete} {variation} dentro le cartelle." #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -msgstr "" +msgstr "Alcuni elementi sono referenziati da altri contenuti. Eliminandoli, {brokenReferences} {variation} si romperanno." #. Default: "Some relations are broken. Please fix." #: components/manage/Controlpanels/Relations/Relations @@ -3386,7 +3392,7 @@ msgstr "Ordinato" #. Default: "Sorted on" #: components/manage/Blocks/Search/components/SortOn msgid "Sorted on" -msgstr "" +msgstr "Ordinato per" #. Default: "Source" #: components/manage/Blocks/HTML/Edit @@ -3436,7 +3442,7 @@ msgstr "Status" #. Default: "Sticky" #: components/manage/Blocks/ToC/Schema msgid "Sticky" -msgstr "" +msgstr "Posizione fissa" #. Default: "Stop compare" #: components/manage/Multilingual/CompareLanguages @@ -3513,6 +3519,7 @@ msgstr "Tabella" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Indice dei contenuti" @@ -3663,18 +3670,18 @@ msgstr "{plonecms} è {copyright} 2000-{current_year} della {plonefoundation} ed #. Default: "There are no groups with the searched criteria" #: helpers/MessageLabels/MessageLabels msgid "There are no groups with the searched criteria" -msgstr "" +msgstr "Non ci sono gruppi corrispondenti ai criteri inseriti" #. Default: "There are no users with the searched criteria" #: helpers/MessageLabels/MessageLabels msgid "There are no users with the searched criteria" -msgstr "" +msgstr "Non ci sono utenti corrispondenti ai criteri inseriti" #. Default: "There are some errors." #: components/manage/Add/Add #: components/manage/Edit/Edit msgid "There are some errors." -msgstr "" +msgstr "Ci sono alcuni errori." #. Default: "There is a configuration problem on the backend" #: components/theme/CorsError/CorsError @@ -3697,6 +3704,11 @@ msgstr "Si sono verificati degli errori" msgid "There were some errors." msgstr "Si sono verificati degli errori." +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "Questi elementi avranno dei collegamenti rotti" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3718,9 +3730,9 @@ msgid "This is a working copy of {title}" msgstr "Questa è una copia di lavoro di {title}" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -msgstr "" +msgstr "Questo elemento è anche una cartella. Eliminandola eliminerai anche i {containedItemsToDelete} {variation} contenuti in questa cartella." #. Default: "This item was locked by {creator} on {date}" #: components/manage/LockingToastsFactory/LockingToastsFactory @@ -3907,7 +3919,7 @@ msgstr "Non autorizzato" #: components/manage/Controlpanels/UndoControlpanel #: components/manage/Form/UndoToolbar msgid "Undo" -msgstr "Annulla" +msgstr "Annulla operazioni" #. Default: "Undo Controlpanel" #: components/manage/Controlpanels/UndoControlpanel @@ -3959,7 +3971,7 @@ msgstr "Aggiorna" #. Default: "Update User" #: helpers/MessageLabels/MessageLabels msgid "Update User" -msgstr "" +msgstr "Aggiorna utente" #. Default: "Update installed addons" #: components/manage/Controlpanels/AddonsControlpanel @@ -4070,7 +4082,7 @@ msgstr "Utente creato" #. Default: "User deleted" #: helpers/MessageLabels/MessageLabels msgid "User deleted" -msgstr "" +msgstr "Utente eliminato" #. Default: "User name" #: components/manage/Controlpanels/Users/UsersControlpanel @@ -4085,7 +4097,7 @@ msgstr "Ruoli utente aggiornati" #. Default: "User updated successfuly" #: helpers/MessageLabels/MessageLabels msgid "User updated successfuly" -msgstr "" +msgstr "Utente aggiornato con successo" #. Default: "Username" #: helpers/MessageLabels/MessageLabels @@ -4099,15 +4111,10 @@ msgstr "Username" msgid "Users" msgstr "Utenti" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Utenti e gruppi" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." -msgstr "Utilizzando questo modulo, è possibile gestire url alternativi per gli elementi per rendere un elemento disponibile sotto due diversi indirizzi in modo facile." +msgstr "Utilizzando questo modulo, è possibile creare URL alternativi per i contenuti in modo da renderli disponibili con due diversi indirizzi URL. Digitando su browser l'URL alternativo creato per un contenuto verrà fatto un redirect all'URL originale del contenuto stesso." #. Default: "Variation" #: helpers/Extensions/withBlockSchemaEnhancer @@ -4142,9 +4149,9 @@ msgid "View changes" msgstr "Mostra le modifiche" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" -msgstr "" +msgstr "Vedi i link e le referenze a questo elemento" #. Default: "View this revision" #: components/manage/History/History @@ -4413,7 +4420,7 @@ msgstr "Confronta con" #. Default: "{countofrelation} broken {countofrelation, plural, one {relation} other {relations}} of type {typeofrelation}" #: components/manage/Controlpanels/Relations/BrokenRelations msgid "countBrokenRelations" -msgstr "" +msgstr "{countofrelation} {countofrelation, plural, one {relazione rotta} other {relazioni rotte}} di tipo {typeofrelation}" #. Default: "Date Range" #: config/Blocks @@ -4503,12 +4510,12 @@ msgstr "Questo sito non accetta file più grandi di {limit}" #. Default: "flush intIds and rebuild relations" #: helpers/MessageLabels/MessageLabels msgid "flush intIds and rebuild relations" -msgstr "elimina intIds e ricrea le relazioni" +msgstr "Elimina intId e ricrea le relazioni" #. Default: "

Check the log for details!

Warning: If you have add-ons relying on intIds, you should not flush them.

" #: helpers/MessageLabels/MessageLabels msgid "flushAndRebuildRelationsHints" -msgstr "" +msgstr "

Controlla i log per i dettagli!

Attenzione: se hai add-on che dipendono dagli intId, non dovresti eliminarli.

" #. Default: "Head title" #: components/manage/Blocks/Teaser/schema @@ -4561,14 +4568,14 @@ msgid "intranet" msgstr "Pubblicato internamente" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" -msgstr "" +msgstr "elemento" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" -msgstr "" +msgstr "elementi" #. Default: "My email is" #: components/theme/PasswordReset/RequestPasswordReset @@ -4585,10 +4592,25 @@ msgstr "Il mio nome utente è" msgid "leadimage" msgstr "Immagine di testata" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "Elimina" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "Elimina questo elemento e rompi i collegamenti" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "Sto verificando i riferimenti a questo contenuto..." + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" -msgstr "" +msgstr "Inserisci un URL a una immagine" #. Default: "Listing" #: config/Blocks @@ -4687,7 +4709,7 @@ msgstr "In attesa" #. Default: "Pick an existing image" #: components/manage/Widgets/ImageWidget msgid "pickAnImage" -msgstr "" +msgstr "Scegli una immagine esistente" #. Default: "Private" #: components/manage/Contents/ContentsItem @@ -4707,17 +4729,22 @@ msgstr "Seleziona…" #. Default: "rebuild relations" #: helpers/MessageLabels/MessageLabels msgid "rebuild relations" -msgstr "ricrea le relazioni" +msgstr "Ricrea le relazioni" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" -msgstr "" +msgstr "referenzia" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" -msgstr "" +msgstr "referenze" + +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "fa riferimento a" #. Default: "results" #: components/theme/Search/Search @@ -4968,7 +4995,7 @@ msgstr "Aggiorna da versione {origin} a {destination}" #. Default: "Upload an image from your computer" #: components/manage/Widgets/ImageWidget msgid "uploadAnImage" -msgstr "" +msgstr "Carica un'immagine dal tuo computer" #. Default: "Input must be valid url (www.something.com or http(s)://www.something.com)" #: helpers/MessageLabels/MessageLabels diff --git a/locales/ja/LC_MESSAGES/volto.po b/locales/ja/LC_MESSAGES/volto.po index 873d72d2e2..9a5e3904f8 100644 --- a/locales/ja/LC_MESSAGES/volto.po +++ b/locales/ja/LC_MESSAGES/volto.po @@ -228,11 +228,6 @@ msgstr "{type} を追加" msgid "Add-Ons" msgstr "" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -530,6 +525,7 @@ msgstr "ふるまいのブロックが有効で、かつ{type}< #. Default: "Cancel" #: components/manage/Add/Add +#: components/manage/Contents/ContentsDeleteModal #: components/manage/Contents/ContentsUploadModal #: components/manage/Controlpanels/ContentType #: components/manage/Controlpanels/ContentTypeLayout @@ -1012,12 +1008,12 @@ msgid "Delete row" msgstr "Excluir linha" #. Default: "Delete selected items?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete selected items?" msgstr "" #. Default: "Delete this item?" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Delete this item?" msgstr "" @@ -1027,7 +1023,7 @@ msgid "Deleted" msgstr "Removida" #. Default: "Deleting this item breaks {brokenReferences} {variation}." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Deleting this item breaks {brokenReferences} {variation}." msgstr "" @@ -2265,6 +2261,11 @@ msgstr "Estreito" msgid "Navigate back" msgstr "Voltar" +#. Default: "Navigate to this item" +#: components/manage/Contents/ContentsDeleteModal +msgid "Navigate to this item" +msgstr "" + #. Default: "Navigation" #: components/theme/Navigation/ContextNavigation msgid "Navigation" @@ -3136,6 +3137,11 @@ msgstr "Selecione colunas para mostrar" msgid "Select relation" msgstr "Selecione um relacionamento" +#. Default: "Select rule" +#: components/manage/Rules/Rules +msgid "Select rule" +msgstr "" + #. Default: "Select the transition to be used for modifying the items state." #: components/manage/Contents/ContentsWorkflowModal msgid "Select the transition to be used for modifying the items state." @@ -3338,12 +3344,12 @@ msgid "Small" msgstr "Pequeno" #. Default: "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are also a folder. By deleting them you will delete {containedItemsToDelete} {variation} inside the folders." msgstr "" #. Default: "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "Some items are referenced by other contents. By deleting them {brokenReferences} {variation} will be broken." msgstr "" @@ -3519,6 +3525,7 @@ msgstr "Tabela" #. Default: "Table of Contents" #: components/manage/Blocks/ToC/variations/DefaultTocRenderer #: components/manage/Blocks/ToC/variations/HorizontalMenu +#: components/manage/Blocks/ToC/View msgid "Table of Contents" msgstr "Tabela de conteúdos" @@ -3703,6 +3710,11 @@ msgstr "Houve alguns erros" msgid "There were some errors." msgstr "Houve alguns erros." +#. Default: "These items will have broken links" +#: components/manage/Contents/ContentsDeleteModal +msgid "These items will have broken links" +msgstr "" + #. Default: "Third" #: components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthIndexField msgid "Third" @@ -3724,7 +3736,7 @@ msgid "This is a working copy of {title}" msgstr "Esta é uma cópia de trabalho de {title}" #. Default: "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "This item is also a folder. By deleting it you will delete {containedItemsToDelete} {variation} inside the folder." msgstr "" @@ -4105,11 +4117,6 @@ msgstr "Nome de usuário" msgid "Users" msgstr "Usuários" -#. Default: "Users and Groups" -#: components/manage/Controlpanels/Controlpanels -msgid "Users and Groups" -msgstr "Usuários e Grupos" - #. Default: "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." #: components/manage/Aliases/Aliases msgid "Using this form, you can manage alternative urls for an item. This is an easy way to make an item available under two different URLs." @@ -4148,7 +4155,7 @@ msgid "View changes" msgstr "Ver mudanças" #. Default: "View links and references to this item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "View links and references to this item" msgstr "" @@ -4567,12 +4574,12 @@ msgid "intranet" msgstr "Intranet" #. Default: "item" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "item" msgstr "" #. Default: "items" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "items" msgstr "" @@ -4591,6 +4598,21 @@ msgstr "Meu nome de usuário é " msgid "leadimage" msgstr "Imagem principal" +#. Default: "Delete" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete" +msgstr "" + +#. Default: "Delete item and break links" +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: Delete item and break links" +msgstr "" + +#. Default: "Checking references..." +#: components/manage/Contents/ContentsDeleteModal +msgid "link-integrity: loading references" +msgstr "" + #. Default: "Enter a URL to an image" #: components/manage/Widgets/ImageWidget msgid "linkAnImage" @@ -4716,15 +4738,20 @@ msgid "rebuild relations" msgstr "reconstruir relacionamentos" #. Default: "reference" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "reference" msgstr "" #. Default: "references" -#: components/manage/Contents/Contents +#: components/manage/Contents/ContentsDeleteModal msgid "references" msgstr "" +#. Default: "refers to" +#: components/manage/Contents/ContentsDeleteModal +msgid "refers to" +msgstr "" + #. Default: "results" #: components/theme/Search/Search msgid "results found" diff --git a/locales/ro/LC_MESSAGES/volto.po b/locales/ro/LC_MESSAGES/volto.po index b8026658df..b35b93a9eb 100644 --- a/locales/ro/LC_MESSAGES/volto.po +++ b/locales/ro/LC_MESSAGES/volto.po @@ -223,11 +223,6 @@ msgstr "Adăugare {type}" msgid "Add-Ons" msgstr "" -#. Default: "Add-on Configuration" -#: components/manage/Controlpanels/Controlpanels -msgid "Add-on Configuration" -msgstr "" - #. Default: "Add-ons" #: components/manage/Controlpanels/AddonsControlpanel msgid "Add-ons" @@ -525,6 +520,7 @@ msgstr "Nu se poate edita aspectul pentru tipul de conținut {type} { return (
{props.mode === 'edit' && !data.title && !tocEntries.length && ( - Table of content + {props.intl.formatMessage(messages.toc_placeholder)} )} {Renderer ? ( @@ -189,3 +189,10 @@ View.propTypes = { }; export default injectIntl(withBlockExtensions(View)); + +const messages = defineMessages({ + toc_placeholder: { + id: 'Table of Contents', + defaultMessage: 'Table of Contents', + }, +}); diff --git a/src/components/manage/Contents/Contents.jsx b/src/components/manage/Contents/Contents.jsx index cd1781e84d..8b9849a02c 100644 --- a/src/components/manage/Contents/Contents.jsx +++ b/src/components/manage/Contents/Contents.jsx @@ -11,7 +11,6 @@ import { Portal } from 'react-portal'; import { Link } from 'react-router-dom'; import { Button, - Confirm, Container as SemanticContainer, Divider, Dropdown, @@ -35,7 +34,6 @@ import { import move from 'lodash-move'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { asyncConnect } from '@plone/volto/helpers'; -import { flattenToAppURL } from '@plone/volto/helpers'; import { searchContent, @@ -48,7 +46,6 @@ import { orderContent, sortContent, updateColumnsContent, - linkIntegrityCheck, getContent, } from '@plone/volto/actions'; import Indexes, { defaultIndexes } from '@plone/volto/constants/Indexes'; @@ -68,6 +65,7 @@ import { Icon, Unauthorized, } from '@plone/volto/components'; +import ContentsDeleteModal from '@plone/volto/components/manage/Contents/ContentsDeleteModal'; import { Helmet, getBaseUrl } from '@plone/volto/helpers'; import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable'; @@ -119,14 +117,6 @@ const messages = defineMessages({ id: 'Delete', defaultMessage: 'Delete', }, - deleteConfirmSingleItem: { - id: 'Delete this item?', - defaultMessage: 'Delete this item?', - }, - deleteConfirmMultipleItems: { - id: 'Delete selected items?', - defaultMessage: 'Delete selected items?', - }, deleteError: { id: 'The item could not be deleted.', defaultMessage: 'The item could not be deleted.', @@ -300,7 +290,6 @@ class Contents extends Component { orderContent: PropTypes.func.isRequired, sortContent: PropTypes.func.isRequired, updateColumnsContent: PropTypes.func.isRequired, - linkIntegrityCheck: PropTypes.func.isRequired, clipboardRequest: PropTypes.shape({ loading: PropTypes.bool, loaded: PropTypes.bool, @@ -399,7 +388,6 @@ class Contents extends Component { this.paste = this.paste.bind(this); this.fetchContents = this.fetchContents.bind(this); this.orderTimeout = null; - this.deleteItemsToShowThreshold = 10; this.state = { selected: [], @@ -410,10 +398,6 @@ class Contents extends Component { showProperties: false, showWorkflow: false, itemsToDelete: [], - containedItemsToDelete: [], - brokenReferences: 0, - breaches: [], - showAllItemsToDelete: true, items: this.props.items, filter: '', currentPage: 0, @@ -429,7 +413,6 @@ class Contents extends Component { sort_on: this.props.sort?.on || 'getObjPositionInParent', sort_order: this.props.sort?.order || 'ascending', isClient: false, - linkIntegrityBreakages: [], }; this.filterTimeout = null; } @@ -443,50 +426,6 @@ class Contents extends Component { this.fetchContents(); this.setState({ isClient: true }); } - async componentDidUpdate(_, prevState) { - if ( - this.state.itemsToDelete !== prevState.itemsToDelete && - this.state.itemsToDelete.length > 0 - ) { - const linkintegrityInfo = await this.props.linkIntegrityCheck( - map(this.state.itemsToDelete, (item) => this.getFieldById(item, 'UID')), - ); - const containedItems = linkintegrityInfo - .map((result) => result.items_total ?? 0) - .reduce((acc, value) => acc + value, 0); - const breaches = linkintegrityInfo.flatMap((result) => - result.breaches.map((source) => ({ - source: source, - target: result, - })), - ); - const source_by_uid = breaches.reduce( - (acc, value) => acc.set(value.source.uid, value.source), - new Map(), - ); - const by_source = breaches.reduce((acc, value) => { - if (acc.get(value.source.uid) === undefined) { - acc.set(value.source.uid, new Set()); - } - acc.get(value.source.uid).add(value.target); - return acc; - }, new Map()); - - this.setState({ - containedItemsToDelete: containedItems, - brokenReferences: by_source.size, - linksAndReferencesViewLink: linkintegrityInfo.length - ? linkintegrityInfo[0]['@id'] + '/links-to-item' - : null, - breaches: Array.from(by_source, (entry) => ({ - source: source_by_uid.get(entry[0]), - targets: Array.from(entry[1]), - })), - showAllItemsToDelete: - this.state.itemsToDelete.length < this.deleteItemsToShowThreshold, - }); - } - } /** * Component will receive props @@ -1208,296 +1147,12 @@ class Contents extends Component { />
- - {this.state.itemsToDelete.length > 1 ? ( - this.state.containedItemsToDelete > 0 ? ( - <> - - {this.state.containedItemsToDelete} - - ), - variation: ( - - {this.state.containedItemsToDelete === - 1 ? ( - - ) : ( - - )} - - ), - }} - /> - {this.state.brokenReferences > 0 && ( - <> -
- - {this.state.brokenReferences} - - ), - variation: ( - - {this.state.brokenReferences === 1 ? ( - - ) : ( - - )} - - ), - }} - /> - - )} - - ) : ( - <> - {this.state.brokenReferences > 0 && ( - <> - - {this.state.brokenReferences} - - ), - variation: ( - - {this.state.brokenReferences === 1 ? ( - - ) : ( - - )} - - ), - }} - /> - - )} - - ) - ) : this.state.containedItemsToDelete > 0 ? ( - <> - - {this.state.containedItemsToDelete} - - ), - variation: ( - - {this.state.containedItemsToDelete === 1 ? ( - - ) : ( - - )} - - ), - }} - /> - {this.state.brokenReferences > 0 && ( - <> -
- {this.state.brokenReferences} - ), - variation: ( - - {this.state.brokenReferences === 1 ? ( - - ) : ( - - )} - - ), - }} - /> -
- -
    - {this.state.breaches.map((breach) => ( -
  • - - {breach.source.title} - {' '} - refers to{' '} - {breach.targets - .map((target) => ( - - {target.title} - - )) - .reduce((result, item) => ( - <> - {result}, {item} - - ))} -
  • - ))} -
- {this.state.linksAndReferencesViewLink && ( - - - - )} -
- - )} - - ) : this.state.brokenReferences > 0 ? ( - <> - {this.state.brokenReferences} - ), - variation: ( - - {this.state.brokenReferences === 1 ? ( - - ) : ( - - )} - - ), - }} - /> -
- -
    - {this.state.breaches.map((breach) => ( -
  • - - {breach.source.title} - {' '} - refers to{' '} - {breach.targets - .map((target) => ( - - {target.title} - - )) - .reduce((result, item) => ( - <> - {result}, {item} - - ))} -
  • - ))} -
- {this.state.linksAndReferencesViewLink && ( - - - - )} -
- - ) : null} -
- } onCancel={this.onDeleteCancel} - onConfirm={this.onDeleteOk} - size="medium" + onOk={this.onDeleteOk} + items={this.state.items} + itemsToDelete={this.state.itemsToDelete} /> { + const { itemsToDelete = [], open, onCancel, onOk, items } = props; + const intl = useIntl(); + const dispatch = useDispatch(); + const linkintegrityInfo = useSelector((state) => state.linkIntegrity?.result); + const loading = useSelector((state) => state.linkIntegrity?.loading); + + const [brokenReferences, setBrokenReferences] = useState(0); + const [containedItemsToDelete, setContainedItemsToDelete] = useState([]); + const [breaches, setBreaches] = useState([]); + + const [linksAndReferencesViewLink, setLinkAndReferencesViewLink] = + useState(null); + + useEffect(() => { + const getFieldById = (id, field) => { + const item = find(items, { '@id': id }); + return item ? item[field] : ''; + }; + + if (itemsToDelete.length > 0 && open) { + dispatch( + linkIntegrityCheck( + map(itemsToDelete, (item) => getFieldById(item, 'UID')), + ), + ); + } + }, [itemsToDelete, items, open, dispatch]); + + useEffect(() => { + if (linkintegrityInfo) { + const containedItems = linkintegrityInfo + .map((result) => result.items_total ?? 0) + .reduce((acc, value) => acc + value, 0); + const breaches = linkintegrityInfo.flatMap((result) => + result.breaches.map((source) => ({ + source: source, + target: result, + })), + ); + const source_by_uid = breaches.reduce( + (acc, value) => acc.set(value.source.uid, value.source), + new Map(), + ); + const by_source = breaches.reduce((acc, value) => { + if (acc.get(value.source.uid) === undefined) { + acc.set(value.source.uid, new Set()); + } + acc.get(value.source.uid).add(value.target); + return acc; + }, new Map()); + + setContainedItemsToDelete(containedItems); + setBrokenReferences(by_source.size); + setLinkAndReferencesViewLink( + linkintegrityInfo.length + ? linkintegrityInfo[0]['@id'] + '/links-to-item' + : null, + ); + setBreaches( + Array.from(by_source, (entry) => ({ + source: source_by_uid.get(entry[0]), + targets: Array.from(entry[1]), + })), + ); + } else { + setContainedItemsToDelete([]); + setBrokenReferences(0); + setLinkAndReferencesViewLink(null); + setBreaches([]); + } + }, [linkintegrityInfo]); + + return ( + open && ( + + + + {intl.formatMessage(messages.loading)} + + + + {itemsToDelete.length > 1 ? ( + containedItemsToDelete > 0 ? ( + <> + {containedItemsToDelete} + ), + variation: ( + + {containedItemsToDelete === 1 ? ( + + ) : ( + + )} + + ), + }} + /> + {brokenReferences > 0 && ( + <> +
+ {brokenReferences}, + variation: ( + + {brokenReferences === 1 ? ( + + ) : ( + + )} + + ), + }} + /> + + )} + + ) : ( + <> + {brokenReferences > 0 && ( + <> + {brokenReferences}, + variation: ( + + {brokenReferences === 1 ? ( + + ) : ( + + )} + + ), + }} + /> + + )} + + ) + ) : containedItemsToDelete > 0 ? ( + <> + {containedItemsToDelete} + ), + variation: ( + + {containedItemsToDelete === 1 ? ( + + ) : ( + + )} + + ), + }} + /> + {brokenReferences > 0 && ( + <> +
+ {brokenReferences}, + variation: ( + + {brokenReferences === 1 ? ( + + ) : ( + + )} + + ), + }} + /> + + + )} + + ) : brokenReferences > 0 ? ( + <> + {brokenReferences}, + variation: ( + + {brokenReferences === 1 ? ( + + ) : ( + + )} + + ), + }} + /> + + + ) : null} +
+ } + onCancel={onCancel} + onConfirm={onOk} + size="medium" + /> + ) + ); +}; + +const BrokenLinksList = ({ intl, breaches, linksAndReferencesViewLink }) => { + return ( +
+ + : + + + {breaches.map((breach) => ( + + + + {breach.source.title} + + + + : + + +
    + {breach.targets.map((target) => ( +
  • + + {target.title} + +
  • + ))} +
+
+
+ ))} +
+
+ {linksAndReferencesViewLink && ( + + + + )} +
+ ); +}; +ContentsDeleteModal.propTypes = { + itemsToDelete: PropTypes.arrayOf( + PropTypes.shape({ + UID: PropTypes.string, + }), + ).isRequired, + open: PropTypes.bool.isRequired, + onOk: PropTypes.func.isRequired, + onCancel: PropTypes.func.isRequired, +}; +export default ContentsDeleteModal; diff --git a/src/components/manage/Controlpanels/Controlpanels.jsx b/src/components/manage/Controlpanels/Controlpanels.jsx index fa8d3e880d..b6338e0fa3 100644 --- a/src/components/manage/Controlpanels/Controlpanels.jsx +++ b/src/components/manage/Controlpanels/Controlpanels.jsx @@ -30,18 +30,10 @@ const messages = defineMessages({ id: 'Back', defaultMessage: 'Back', }, - versionoverview: { - id: 'Version Overview', - defaultMessage: 'Version Overview', - }, general: { id: 'General', defaultMessage: 'General', }, - addonconfiguration: { - id: 'Add-on Configuration', - defaultMessage: 'Add-on Configuration', - }, content: { id: 'Content', defaultMessage: 'Content', @@ -50,10 +42,6 @@ const messages = defineMessages({ id: 'Moderate Comments', defaultMessage: 'Moderate Comments', }, - usersandgroups: { - id: 'Users and Groups', - defaultMessage: 'Users and Groups', - }, usersControlPanelCategory: { id: 'Users', defaultMessage: 'Users', diff --git a/src/components/manage/Rules/Rules.jsx b/src/components/manage/Rules/Rules.jsx index cc0aacf11f..bab91b618e 100644 --- a/src/components/manage/Rules/Rules.jsx +++ b/src/components/manage/Rules/Rules.jsx @@ -75,6 +75,10 @@ const messages = defineMessages({ id: 'Unassigned', defaultMessage: 'Unassigned', }, + select_rule: { + id: 'Select rule', + defaultMessage: 'Select rule', + }, }); /** @@ -365,7 +369,9 @@ class Rules extends Component { />