From 87ad07a8f4bf4d5417e458e035e792fdc54a1258 Mon Sep 17 00:00:00 2001 From: Martina Bustacchini Date: Wed, 27 Mar 2024 16:34:17 +0100 Subject: [PATCH 1/2] fix: aria-label in calendar block controls --- locales/de/LC_MESSAGES/volto.po | 4 +-- locales/en/LC_MESSAGES/volto.po | 4 +-- locales/es/LC_MESSAGES/volto.po | 4 +-- locales/fr/LC_MESSAGES/volto.po | 4 +-- locales/it/LC_MESSAGES/volto.po | 8 +++--- locales/volto.pot | 6 ++--- .../ItaliaTheme/Blocks/Calendar/Body.jsx | 26 ++++++++++++++----- 7 files changed, 35 insertions(+), 21 deletions(-) diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 35af469fd..320fc7ffc 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -1106,7 +1106,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1116,7 +1116,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 7a22d634d..2df538a4c 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -1091,7 +1091,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1101,7 +1101,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" diff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po index 45dab89cb..d33b86c29 100644 --- a/locales/es/LC_MESSAGES/volto.po +++ b/locales/es/LC_MESSAGES/volto.po @@ -1100,7 +1100,7 @@ msgid "calendarBlockSidebarTitle" msgstr "Calendario" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "Próximo" @@ -1110,7 +1110,7 @@ msgid "calendar_no_results" msgstr "No hay eventos disponibles en este momento" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "Precedente" diff --git a/locales/fr/LC_MESSAGES/volto.po b/locales/fr/LC_MESSAGES/volto.po index 0b105fceb..6d613342d 100644 --- a/locales/fr/LC_MESSAGES/volto.po +++ b/locales/fr/LC_MESSAGES/volto.po @@ -1108,7 +1108,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1118,7 +1118,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index b53d4f229..d0a8d9b3e 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -1091,9 +1091,9 @@ msgid "calendarBlockSidebarTitle" msgstr "Calendario" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" -msgstr "Prossimo" +msgstr "Prossimi eventi" #: components/ItaliaTheme/Blocks/Calendar/Body # defaultMessage: Nessun evento disponibile al momento @@ -1101,9 +1101,9 @@ msgid "calendar_no_results" msgstr "Nessun evento disponibile al momento" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" -msgstr "Precedente" +msgstr "Eventi precedenti" #: components/ItaliaTheme/manage/Widgets/CanaleDigitaleWidget # defaultMessage: Accedere al servizio diff --git a/locales/volto.pot b/locales/volto.pot index dd3f2d722..0953d5b7d 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-03-07T15:23:38.346Z\n" +"POT-Creation-Date: 2024-03-27T15:08:22.683Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -1093,7 +1093,7 @@ msgid "calendarBlockSidebarTitle" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Prossimo +# defaultMessage: Prossimi eventi msgid "calendar_next_arrow" msgstr "" @@ -1103,7 +1103,7 @@ msgid "calendar_no_results" msgstr "" #: components/ItaliaTheme/Blocks/Calendar/Body -# defaultMessage: Precedente +# defaultMessage: Eventi precedenti msgid "calendar_prev_arrow" msgstr "" diff --git a/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx b/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx index 7ff3e95cb..8ca345b14 100644 --- a/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx @@ -30,11 +30,11 @@ const messages = defineMessages({ }, calendar_next_arrow: { id: 'calendar_next_arrow', - defaultMessage: 'Prossimo', + defaultMessage: 'Prossimi eventi', }, calendar_prev_arrow: { id: 'calendar_prev_arrow', - defaultMessage: 'Precedente', + defaultMessage: 'Eventi precedenti', }, }); @@ -172,10 +172,17 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => { const NextArrow = (props) => { const { onClick, className } = props; return ( - ); @@ -183,10 +190,17 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => { const PrevArrow = (props) => { const { onClick, className } = props; return ( - ); From 4a3b3bf99df736c063957f859f217880cda80260 Mon Sep 17 00:00:00 2001 From: Martina Bustacchini Date: Thu, 28 Mar 2024 09:43:00 +0100 Subject: [PATCH 2/2] fix: translation id typo --- src/components/ItaliaTheme/Blocks/Calendar/Body.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx b/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx index 8ca345b14..dcd033610 100644 --- a/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx +++ b/src/components/ItaliaTheme/Blocks/Calendar/Body.jsx @@ -200,7 +200,7 @@ const Body = ({ data, block, inEditMode, path, onChangeBlock, reactSlick }) => { );