Skip to content

Commit

Permalink
Merge pull request #6 from codesyntax/develop
Browse files Browse the repository at this point in the history
locales
  • Loading branch information
ionlizarazu authored Jul 1, 2022
2 parents dd65c83 + 1daa85d commit 03d31fc
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 7 deletions.
69 changes: 69 additions & 0 deletions locales/volto.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2022-07-01T11:54:38.306Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"

#: components/Blocks/FeaturedBlock/FeaturedImageEditor
# defaultMessage: Edit
msgid "Edit image"
msgstr ""

#: components/Blocks/FeaturedBlock/FeaturedImageEditor
# defaultMessage: Edit or remove image
msgid "Edit or remove image"
msgstr ""

#: components/Blocks/FeaturedBlock/FeaturedImageEditor
# defaultMessage: Remove
msgid "Remove image"
msgstr ""

#: components/Blocks/FeaturedBlock/FeaturedImageEditor
# defaultMessage: Upload or select an image
msgid "Upload image"
msgstr ""

#: components/Blocks/FeaturedBlock/FeaturedImageEditor
# defaultMessage: Uploading file
msgid "Uploading file"
msgstr ""

#: components/Blocks/FeaturedBlock/messages
# defaultMessage: Description
msgid "featuredDescription"
msgstr ""

#: components/Blocks/FeaturedBlock/messages
# defaultMessage: Link Text
msgid "featuredLinkText"
msgstr ""

#: components/Blocks/FeaturedBlock/messages
# defaultMessage: Link URL
msgid "featuredLinkUrl"
msgstr ""

#: components/Blocks/FeaturedBlock/messages
# defaultMessage: Select site content or paste external url
msgid "featuredLinkUrlDescription"
msgstr ""

#: components/Blocks/FeaturedBlock/messages
# defaultMessage: Title
msgid "featuredTitle"
msgstr ""

#: components/Blocks/FeaturedBlock/messages
# defaultMessage: Variation
msgid "variation"
msgstr ""
12 changes: 6 additions & 6 deletions src/components/Blocks/FeaturedBlock/FeaturedImageEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const FeaturedImageEditor = (props) => {
if (request.loaded && !request.loading && uploading) {
onChangeBlock(block, {
...data,
url: `../resolveuid/${content['UID']}`,
url: `resolveuid/${content['UID']}`,
image_alt: content?.image?.filename,
});
setUploading(false);
Expand All @@ -97,7 +97,7 @@ const FeaturedImageEditor = (props) => {
const intl = useIntl();
return (
<>
{!data.image?.url && (
{!data.url && (
<Message className="image-message">
{selected && uploading && (
<Dimmer active>
Expand Down Expand Up @@ -133,7 +133,7 @@ const FeaturedImageEditor = (props) => {
onSelectItem: (_url, element) =>
onChangeBlock(block, {
...data,
url: `../resolveuid/${element['UID']}`,
url: `resolveuid/${element['UID']}`,
image_alt: element.title,
}),
});
Expand All @@ -147,7 +147,7 @@ const FeaturedImageEditor = (props) => {
</center>
</Message>
)}
{!!data.image?.url && selected && (
{!!data.url && selected && (
<>
<Message className="image-message">
<center>
Expand All @@ -164,7 +164,7 @@ const FeaturedImageEditor = (props) => {
onSelectItem: (url, element) =>
onChangeBlock(block, {
...data,
url: `../resolveuid/${element['UID']}`,
url: `resolveuid/${element['UID']}`,
image_alt: element?.title,
}),
});
Expand All @@ -176,7 +176,7 @@ const FeaturedImageEditor = (props) => {
onSelectItem: (url, element) =>
onChangeBlock(block, {
...data,
url: `../resolveuid/${element['UID']}`,
url: `resolveuid/${element['UID']}`,
image_alt: element?.title,
}),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const CarouselFeaturedView = (props) => {
{data.linkText && (
<Button
as="a"
className="ueu"
size="large"
href={'' + data?.link?.[0]?.['@id']}
primary
Expand Down

0 comments on commit 03d31fc

Please sign in to comment.