Skip to content

Commit

Permalink
fix: sidebar changed to add the video caption
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagner3UB committed Aug 23, 2024
1 parent b93069a commit a304bb4
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 47 deletions.
12 changes: 6 additions & 6 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2051,15 +2051,10 @@ msgid "gallery_close_preview"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Titolo del video
# defaultMessage: Didascalia del video
msgid "gallery_video_title"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.
msgid "gallery_video_title_description"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Video URL
msgid "gallery_video_url"
Expand Down Expand Up @@ -3272,6 +3267,11 @@ msgstr ""
msgid "share"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Mostra didascalie
msgid "showVideoCaption"
msgstr ""

#: config/Blocks/ListingOptions/bandiInEvidenceTemplate
# defaultMessage: Mostra la data di ultima modifica
msgid "show_data_ultima_modifica"
Expand Down
12 changes: 6 additions & 6 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2036,15 +2036,10 @@ msgid "gallery_close_preview"
msgstr "Close preview"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Titolo del video
# defaultMessage: Didascalia del video
msgid "gallery_video_title"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.
msgid "gallery_video_title_description"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Video URL
msgid "gallery_video_url"
Expand Down Expand Up @@ -3257,6 +3252,11 @@ msgstr "Arrange on 4 columns"
msgid "share"
msgstr "Share"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Mostra didascalie
msgid "showVideoCaption"
msgstr ""

#: config/Blocks/ListingOptions/bandiInEvidenceTemplate
# defaultMessage: Mostra la data di ultima modifica
msgid "show_data_ultima_modifica"
Expand Down
12 changes: 6 additions & 6 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2045,15 +2045,10 @@ msgid "gallery_close_preview"
msgstr "Cerrar vista previa"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Titolo del video
# defaultMessage: Didascalia del video
msgid "gallery_video_title"
msgstr "Título del vídeo"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.
msgid "gallery_video_title_description"
msgstr "No se muestra. El editor lo utiliza para identificar mejor el vídeo dentro de la galería."

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Video URL
msgid "gallery_video_url"
Expand Down Expand Up @@ -3266,6 +3261,11 @@ msgstr "Organizar en 4 columnas"
msgid "share"
msgstr "Compartir"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Mostra didascalie
msgid "showVideoCaption"
msgstr ""

#: config/Blocks/ListingOptions/bandiInEvidenceTemplate
# defaultMessage: Mostra la data di ultima modifica
msgid "show_data_ultima_modifica"
Expand Down
12 changes: 6 additions & 6 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2053,15 +2053,10 @@ msgid "gallery_close_preview"
msgstr "Fermer l'aperçu de l'image"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Titolo del video
# defaultMessage: Didascalia del video
msgid "gallery_video_title"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.
msgid "gallery_video_title_description"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Video URL
msgid "gallery_video_url"
Expand Down Expand Up @@ -3274,6 +3269,11 @@ msgstr "Disposer sur 4 colonnes"
msgid "share"
msgstr "Partager"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Mostra didascalie
msgid "showVideoCaption"
msgstr ""

#: config/Blocks/ListingOptions/bandiInEvidenceTemplate
# defaultMessage: Mostra la data di ultima modifica
msgid "show_data_ultima_modifica"
Expand Down
14 changes: 7 additions & 7 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -2036,14 +2036,9 @@ msgid "gallery_close_preview"
msgstr "Chiudi l'anteprima"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Titolo del video
# defaultMessage: Didascalia del video
msgid "gallery_video_title"
msgstr "Titolo del video"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.
msgid "gallery_video_title_description"
msgstr "Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery."
msgstr "Didascalia del video"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Video URL
Expand Down Expand Up @@ -3257,6 +3252,11 @@ msgstr "Disponi su 4 colonne"
msgid "share"
msgstr "Condividi"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Mostra didascalie
msgid "showVideoCaption"
msgstr ""

#: config/Blocks/ListingOptions/bandiInEvidenceTemplate
# defaultMessage: Mostra la data di ultima modifica
msgid "show_data_ultima_modifica"
Expand Down
14 changes: 7 additions & 7 deletions locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2024-07-25T10:23:52.051Z\n"
"POT-Creation-Date: 2024-08-23T12:31:13.362Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -2038,15 +2038,10 @@ msgid "gallery_close_preview"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Titolo del video
# defaultMessage: Didascalia del video
msgid "gallery_video_title"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.
msgid "gallery_video_title_description"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Video URL
msgid "gallery_video_url"
Expand Down Expand Up @@ -3259,6 +3254,11 @@ msgstr ""
msgid "share"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Mostra didascalie
msgid "showVideoCaption"
msgstr ""

#: config/Blocks/ListingOptions/bandiInEvidenceTemplate
# defaultMessage: Mostra la data di ultima modifica
msgid "show_data_ultima_modifica"
Expand Down
25 changes: 16 additions & 9 deletions src/components/ItaliaTheme/Blocks/VideoGallery/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ const messages = defineMessages({
video_url: { id: 'gallery_video_url', defaultMessage: 'Video URL' },
video_title: {
id: 'gallery_video_title',
defaultMessage: 'Titolo del video',
},
video_title_description: {
id: 'gallery_video_title_description',
defaultMessage:
"Non viene mostrato. Serve al redattore per identificare meglio il video all'interno della gallery.",
defaultMessage: 'Didascalia del video',
},
allowExternals: {
id: 'Allow Externals',
defaultMessage: 'Allow Externals',
},
showVideoCaption: {
id: 'showVideoCaption',
defaultMessage: 'Mostra didascalie',
},
});

const Sidebar = ({
Expand Down Expand Up @@ -103,6 +102,17 @@ const Sidebar = ({
});
}}
/>
<CheckboxWidget
id="showVideoCaption"
title={intl.formatMessage(messages.showVideoCaption)}
value={data.showVideoCaption ? data.showVideoCaption : false}
onChange={(name, value) => {
onChangeBlock(block, {
...data,
showVideoCaption: value,
});
}}
/>
</Segment>
<Accordion fluid styled className="form">
{data.subblocks &&
Expand Down Expand Up @@ -139,9 +149,6 @@ const Sidebar = ({
<TextWidget
id="title"
title={intl.formatMessage(messages.video_title)}
description={intl.formatMessage(
messages.video_title_description,
)}
value={subblock.title}
onChange={(name, value) => {
onChangeSubBlock(index, {
Expand Down

0 comments on commit a304bb4

Please sign in to comment.