From f950246720b036d7711a9b0a1733e9950a42f2bc Mon Sep 17 00:00:00 2001 From: Giulia Ghisini <51911425+giuliaghisini@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:22:56 +0100 Subject: [PATCH] fix: table block translations (#848) * fix: table block translations * chore: added translation --- locales/de/LC_MESSAGES/volto.po | 30 ++++++++++++++++++++++++++++++ locales/en/LC_MESSAGES/volto.po | 30 ++++++++++++++++++++++++++++++ locales/es/LC_MESSAGES/volto.po | 30 ++++++++++++++++++++++++++++++ locales/fr/LC_MESSAGES/volto.po | 30 ++++++++++++++++++++++++++++++ locales/it/LC_MESSAGES/volto.po | 30 ++++++++++++++++++++++++++++++ locales/volto.pot | 32 +++++++++++++++++++++++++++++++- src/overrideTranslations.jsx | 25 +++++++++++++++++++++++++ 7 files changed, 206 insertions(+), 1 deletion(-) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 97f8d6659..7aa77f319 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -249,6 +249,11 @@ msgstr "" msgid "Dimensione della mappa" msgstr "" +#: overrideTranslations +# defaultMessage: Add border to inner columns +msgid "Divide each row into separate cells" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields # defaultMessage: Download msgid "Download" @@ -301,6 +306,11 @@ msgstr "" msgid "Hide all content types" msgstr "" +#: overrideTranslations +# defaultMessage: Hide headers +msgid "Hide headers" +msgstr "" + #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs # defaultMessage: Home msgid "Home" @@ -415,6 +425,11 @@ msgstr "" msgid "Luogo location filter" msgstr "" +#: overrideTranslations +# defaultMessage: Make the table sortable +msgid "Make the table sortable" +msgstr "" + #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Medio msgid "Medio" @@ -615,6 +630,16 @@ msgstr "" msgid "Subscribe" msgstr "" +#: overrideTranslations +# defaultMessage: Table block +msgid "Table block" +msgstr "" + +#: overrideTranslations +# defaultMessage: Table color inverted +msgid "Table color inverted" +msgstr "" + #: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock #: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock #: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock @@ -753,6 +778,11 @@ msgstr "" msgid "VideoGalleryBlock" msgstr "" +#: overrideTranslations +# defaultMessage: Visible only in view mode +msgid "Visible only in view mode" +msgstr "" + #: components/ItaliaTheme/Unauthorized/Unauthorized # defaultMessage: You are trying to access a protected resource, please {login} first. msgid "You are trying to access a protected resource, please {login} first." diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index e4212452e..1f0093459 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -234,6 +234,11 @@ msgstr "Procedure details" msgid "Dimensione della mappa" msgstr "Map dimensions" +#: overrideTranslations +# defaultMessage: Add border to inner columns +msgid "Divide each row into separate cells" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields # defaultMessage: Download msgid "Download" @@ -286,6 +291,11 @@ msgstr "Hide" msgid "Hide all content types" msgstr "Hide all content types" +#: overrideTranslations +# defaultMessage: Hide headers +msgid "Hide headers" +msgstr "" + #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs # defaultMessage: Home msgid "Home" @@ -400,6 +410,11 @@ msgstr "Place" msgid "Luogo location filter" msgstr "" +#: overrideTranslations +# defaultMessage: Make the table sortable +msgid "Make the table sortable" +msgstr "" + #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Medio msgid "Medio" @@ -600,6 +615,16 @@ msgstr "Some errors occured" msgid "Subscribe" msgstr "Subscribe" +#: overrideTranslations +# defaultMessage: Table block +msgid "Table block" +msgstr "" + +#: overrideTranslations +# defaultMessage: Table color inverted +msgid "Table color inverted" +msgstr "" + #: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock #: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock #: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock @@ -738,6 +763,11 @@ msgstr "Video" msgid "VideoGalleryBlock" msgstr "" +#: overrideTranslations +# defaultMessage: Visible only in view mode +msgid "Visible only in view mode" +msgstr "" + #: components/ItaliaTheme/Unauthorized/Unauthorized # defaultMessage: You are trying to access a protected resource, please {login} first. msgid "You are trying to access a protected resource, please {login} first." diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 524c0bfa7..5a5e88dde 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -243,6 +243,11 @@ msgstr "Detalles del procedimiento" msgid "Dimensione della mappa" msgstr "Tamaño de mapa" +#: overrideTranslations +# defaultMessage: Add border to inner columns +msgid "Divide each row into separate cells" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields # defaultMessage: Download msgid "Download" @@ -295,6 +300,11 @@ msgstr "Ocultar" msgid "Hide all content types" msgstr "Ocultar todos los tipos de contenido" +#: overrideTranslations +# defaultMessage: Hide headers +msgid "Hide headers" +msgstr "" + #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs # defaultMessage: Home msgid "Home" @@ -409,6 +419,11 @@ msgstr "Lugar" msgid "Luogo location filter" msgstr "Lugar" +#: overrideTranslations +# defaultMessage: Make the table sortable +msgid "Make the table sortable" +msgstr "" + #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Medio msgid "Medio" @@ -609,6 +624,16 @@ msgstr "Se produjeron algunos errores." msgid "Subscribe" msgstr "Suscribir" +#: overrideTranslations +# defaultMessage: Table block +msgid "Table block" +msgstr "" + +#: overrideTranslations +# defaultMessage: Table color inverted +msgid "Table color inverted" +msgstr "" + #: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock #: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock #: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock @@ -747,6 +772,11 @@ msgstr "Vídeo" msgid "VideoGalleryBlock" msgstr "Galería de Vídeos" +#: overrideTranslations +# defaultMessage: Visible only in view mode +msgid "Visible only in view mode" +msgstr "" + #: components/ItaliaTheme/Unauthorized/Unauthorized # defaultMessage: You are trying to access a protected resource, please {login} first. msgid "You are trying to access a protected resource, please {login} first." diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 278aad804..34fda7e92 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -251,6 +251,11 @@ msgstr "" msgid "Dimensione della mappa" msgstr "" +#: overrideTranslations +# defaultMessage: Add border to inner columns +msgid "Divide each row into separate cells" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields # defaultMessage: Download msgid "Download" @@ -303,6 +308,11 @@ msgstr "Cacher" msgid "Hide all content types" msgstr "Masquer tous les types de contenu" +#: overrideTranslations +# defaultMessage: Hide headers +msgid "Hide headers" +msgstr "" + #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs # defaultMessage: Home msgid "Home" @@ -417,6 +427,11 @@ msgstr "Lieu" msgid "Luogo location filter" msgstr "" +#: overrideTranslations +# defaultMessage: Make the table sortable +msgid "Make the table sortable" +msgstr "" + #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Medio msgid "Medio" @@ -617,6 +632,16 @@ msgstr "Des erreurs se sont produites" msgid "Subscribe" msgstr "S'abonner" +#: overrideTranslations +# defaultMessage: Table block +msgid "Table block" +msgstr "" + +#: overrideTranslations +# defaultMessage: Table color inverted +msgid "Table color inverted" +msgstr "" + #: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock #: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock #: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock @@ -755,6 +780,11 @@ msgstr "Vidéo" msgid "VideoGalleryBlock" msgstr "" +#: overrideTranslations +# defaultMessage: Visible only in view mode +msgid "Visible only in view mode" +msgstr "" + #: components/ItaliaTheme/Unauthorized/Unauthorized # defaultMessage: You are trying to access a protected resource, please {login} first. msgid "You are trying to access a protected resource, please {login} first." diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index d41ec64e6..bebeab190 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -234,6 +234,11 @@ msgstr "Dettagli procedimento" msgid "Dimensione della mappa" msgstr "Dimensione della mappa" +#: overrideTranslations +# defaultMessage: Add border to inner columns +msgid "Divide each row into separate cells" +msgstr "Mostra i margini delle colonne" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields # defaultMessage: Download msgid "Download" @@ -286,6 +291,11 @@ msgstr "Nascondi" msgid "Hide all content types" msgstr "Nascondi tutti i tipi di contenuto" +#: overrideTranslations +# defaultMessage: Hide headers +msgid "Hide headers" +msgstr "Nascondi le intestazioni" + #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs # defaultMessage: Home msgid "Home" @@ -400,6 +410,11 @@ msgstr "Luogo" msgid "Luogo location filter" msgstr "Luogo" +#: overrideTranslations +# defaultMessage: Make the table sortable +msgid "Make the table sortable" +msgstr "Rendi la tabella ordinabile" + #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Medio msgid "Medio" @@ -600,6 +615,16 @@ msgstr "Sono occorsi degli errori" msgid "Subscribe" msgstr "Iscriviti" +#: overrideTranslations +# defaultMessage: Table block +msgid "Table block" +msgstr "Blocco Tabella" + +#: overrideTranslations +# defaultMessage: Table color inverted +msgid "Table color inverted" +msgstr "Inverti i colori della tabella" + #: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock #: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock #: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock @@ -738,6 +763,11 @@ msgstr "Video" msgid "VideoGalleryBlock" msgstr "Video gallery" +#: overrideTranslations +# defaultMessage: Visible only in view mode +msgid "Visible only in view mode" +msgstr "Visibile solamente in modalità visualizzazione" + #: components/ItaliaTheme/Unauthorized/Unauthorized # defaultMessage: You are trying to access a protected resource, please {login} first. msgid "You are trying to access a protected resource, please {login} first." diff --git a/locales/volto.pot b/locales/volto.pot index d5eb58465..ea7fcc3d3 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-12-12T10:59:56.243Z\n" +"POT-Creation-Date: 2025-01-03T12:21:33.430Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -236,6 +236,11 @@ msgstr "" msgid "Dimensione della mappa" msgstr "" +#: overrideTranslations +# defaultMessage: Add border to inner columns +msgid "Divide each row into separate cells" +msgstr "" + #: components/ItaliaTheme/View/Commons/TrasparenzaFields # defaultMessage: Download msgid "Download" @@ -288,6 +293,11 @@ msgstr "" msgid "Hide all content types" msgstr "" +#: overrideTranslations +# defaultMessage: Hide headers +msgid "Hide headers" +msgstr "" + #: components/ItaliaTheme/Breadcrumbs/Breadcrumbs # defaultMessage: Home msgid "Home" @@ -402,6 +412,11 @@ msgstr "" msgid "Luogo location filter" msgstr "" +#: overrideTranslations +# defaultMessage: Make the table sortable +msgid "Make the table sortable" +msgstr "" + #: components/ItaliaTheme/Blocks/TextCard/CardWithImage/Sidebar # defaultMessage: Medio msgid "Medio" @@ -602,6 +617,16 @@ msgstr "" msgid "Subscribe" msgstr "" +#: overrideTranslations +# defaultMessage: Table block +msgid "Table block" +msgstr "" + +#: overrideTranslations +# defaultMessage: Table color inverted +msgid "Table color inverted" +msgstr "" + #: components/ItaliaTheme/Blocks/Accordion/Block/EditBlock #: components/ItaliaTheme/Blocks/ContactsBlock/Block/EditBlock #: components/ItaliaTheme/Blocks/IconBlocks/Block/EditBlock @@ -740,6 +765,11 @@ msgstr "" msgid "VideoGalleryBlock" msgstr "" +#: overrideTranslations +# defaultMessage: Visible only in view mode +msgid "Visible only in view mode" +msgstr "" + #: components/ItaliaTheme/Unauthorized/Unauthorized # defaultMessage: You are trying to access a protected resource, please {login} first. msgid "You are trying to access a protected resource, please {login} first." diff --git a/src/overrideTranslations.jsx b/src/overrideTranslations.jsx index 39e66a3b8..cf621b460 100644 --- a/src/overrideTranslations.jsx +++ b/src/overrideTranslations.jsx @@ -99,4 +99,29 @@ defineMessages({ defaultMessage: 'As per the official information architecture outlined in measure 1.4.1, all forms must be properly uploaded in the designated section within Amministrazione > Documenti e Dati > Modulistica, and linked to the relevant service sheet. It is no longer possible to upload files and attachments directly into this container.', }, + //table block + hideHeaders: { + id: 'Hide headers', + defaultMessage: 'Hide headers', + }, + sortable: { + id: 'Make the table sortable', + defaultMessage: 'Make the table sortable', + }, + sortableDescription: { + id: 'Visible only in view mode', + defaultMessage: 'Visible only in view mode', + }, + inverted: { + id: 'Table color inverted', + defaultMessage: 'Table color inverted', + }, + table_block: { + id: 'Table block', + defaultMessage: 'Table block', + }, + divideRows: { + id: 'Divide each row into separate cells', + defaultMessage: 'Add border to inner columns', + }, });