Skip to content

Commit

Permalink
fix: de translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishasoumya-02 committed Nov 21, 2024
1 parent b39fd8b commit ac75253
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 11 deletions.
12 changes: 11 additions & 1 deletion packages/volto-accordion-block/locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ msgstr ""
#: components/Edit
#: components/schema
msgid "Accordion block"
msgstr "Akkordeon block"
msgstr "Akkordeon"

#. Default: "Accordion block settings"
#: components/LayoutSchema
Expand All @@ -54,6 +54,11 @@ msgstr ""
msgid "Add"
msgstr ""

#. Default: "Accordion"
#: components/schema
msgid "Add Button Label"
msgstr "Akkordeonelemente"

#. Default: "Allow multiple panels open at a time"
#: components/schema
msgid "Allow multiple panels open at a time"
Expand Down Expand Up @@ -303,6 +308,11 @@ msgstr ""
msgid "Unknown Block"
msgstr ""

#. Default: "Add Accordion"
#: components/schema
msgid "addButton"
msgstr "Akkordeonelement hinzufügen"

#. Default: "Add block in position"
#: components/NewBlockAddButton
msgid "add_block_in_position"
Expand Down
10 changes: 10 additions & 0 deletions packages/volto-accordion-block/locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ msgstr ""
msgid "Add"
msgstr ""

#. Default: "Accordion"
#: components/schema
msgid "Add Button Label"
msgstr ""

#. Default: "Allow multiple panels open at a time"
#: components/schema
msgid "Allow multiple panels open at a time"
Expand Down Expand Up @@ -303,6 +308,11 @@ msgstr ""
msgid "Unknown Block"
msgstr ""

#. Default: "Add Accordion"
#: components/schema
msgid "addButton"
msgstr ""

#. Default: "Add block in position"
#: components/NewBlockAddButton
msgid "add_block_in_position"
Expand Down
10 changes: 10 additions & 0 deletions packages/volto-accordion-block/locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ msgstr ""
msgid "Add"
msgstr ""

#. Default: "Accordion"
#: components/schema
msgid "Add Button Label"
msgstr ""

#. Default: "Allow multiple panels open at a time"
#: components/schema
msgid "Allow multiple panels open at a time"
Expand Down Expand Up @@ -310,6 +315,11 @@ msgstr ""
msgid "Unknown Block"
msgstr ""

#. Default: "Add Accordion"
#: components/schema
msgid "addButton"
msgstr ""

#. Default: "Add block in position"
#: components/NewBlockAddButton
msgid "add_block_in_position"
Expand Down
10 changes: 10 additions & 0 deletions packages/volto-accordion-block/locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ msgstr ""
msgid "Add"
msgstr ""

#. Default: "Accordion"
#: components/schema
msgid "Add Button Label"
msgstr ""

#. Default: "Allow multiple panels open at a time"
#: components/schema
msgid "Allow multiple panels open at a time"
Expand Down Expand Up @@ -303,6 +308,11 @@ msgstr ""
msgid "Unknown Block"
msgstr ""

#. Default: "Add Accordion"
#: components/schema
msgid "addButton"
msgstr ""

#. Default: "Add block in position"
#: components/NewBlockAddButton
msgid "add_block_in_position"
Expand Down
10 changes: 10 additions & 0 deletions packages/volto-accordion-block/locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ msgstr ""
msgid "Add"
msgstr ""

#. Default: "Accordion"
#: components/schema
msgid "Add Button Label"
msgstr ""

#. Default: "Allow multiple panels open at a time"
#: components/schema
msgid "Allow multiple panels open at a time"
Expand Down Expand Up @@ -303,6 +308,11 @@ msgstr ""
msgid "Unknown Block"
msgstr ""

#. Default: "Add Accordion"
#: components/schema
msgid "addButton"
msgstr ""

#. Default: "Add block in position"
#: components/NewBlockAddButton
msgid "add_block_in_position"
Expand Down
12 changes: 11 additions & 1 deletion packages/volto-accordion-block/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-11-15T08:23:24.184Z\n"
"POT-Creation-Date: 2024-11-21T12:57:01.777Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"Content-Type: text/plain; charset=utf-8\n"
Expand Down Expand Up @@ -56,6 +56,11 @@ msgstr ""
msgid "Add"
msgstr ""

#. Default: "Accordion"
#: components/schema
msgid "Add Button Label"
msgstr ""

#. Default: "Allow multiple panels open at a time"
#: components/schema
msgid "Allow multiple panels open at a time"
Expand Down Expand Up @@ -305,6 +310,11 @@ msgstr ""
msgid "Unknown Block"
msgstr ""

#. Default: "Add Accordion"
#: components/schema
msgid "addButton"
msgstr ""

#. Default: "Add block in position"
#: components/NewBlockAddButton
msgid "add_block_in_position"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ const PanelsWidget = (props) => {
<Button
compact
icon
aria-label={
objectSchema.addMessage ||
`${intl.formatMessage(messages.add)} ${objectSchema.title}`
}
aria-label={objectSchema.addMessage || `${objectSchema.title} `}
onClick={() => {
const [newId, newData] = empty();
onChange(id, {
Expand All @@ -72,8 +69,7 @@ const PanelsWidget = (props) => {
<Icon name={addSVG} size="18px" />
&nbsp;
{/* Custom addMessage in schema, else default to english */}
{objectSchema.addMessage ||
`${intl.formatMessage(messages.add)} ${objectSchema.title}`}
{objectSchema.addMessage || `${objectSchema.title} `}
</Button>
</div>
</FormFieldWrapper>
Expand Down
14 changes: 11 additions & 3 deletions packages/volto-accordion-block/src/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ const messages = defineMessages({
id: 'Accordion',
defaultMessage: 'Accordion',
},
AddButtonLabel: {
id: 'Add Button Label',
defaultMessage: 'Accordion',
},
Options: {
id: 'Options',
defaultMessage: 'Options',
Expand All @@ -21,7 +25,7 @@ const messages = defineMessages({
},
AccordionBlock: {
id: 'Accordion block',
defaultMessage: 'Accordion block',
defaultMessage: 'Accordion',
},
Heading2: {
id: 'Heading 2',
Expand Down Expand Up @@ -103,11 +107,15 @@ const messages = defineMessages({
id: 'Headline',
defaultMessage: 'Headline',
},
addButton: {
id: 'addButton',
defaultMessage: 'Add Accordion',
},
});

export const AccordionSchema = (intl) => {
return {
title: intl.formatMessage(messages.Accordion),
title: intl.formatMessage(messages.addButton),
fieldsets: [
{
id: 'default',
Expand Down Expand Up @@ -156,7 +164,7 @@ export const AccordionBlockSchema = ({ intl }) => ({
type: 'string',
},
data: {
title: intl.formatMessage(messages.Accordion),
title: intl.formatMessage(messages.AddButtonLabel),
type: 'panels',
schema: AccordionSchema(intl),
},
Expand Down

0 comments on commit ac75253

Please sign in to comment.