Skip to content

Commit

Permalink
Add translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Oct 16, 2024
1 parent a4ac2bf commit 17a6673
Show file tree
Hide file tree
Showing 15 changed files with 43 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Abbrechen"
Expand Down Expand Up @@ -178,9 +179,10 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
msgstr "Senden"

#. Default: "Submit button label"
#: schemaFormBlock/schema
Expand Down Expand Up @@ -575,7 +577,7 @@ msgstr "Text"
#. Default: "Textarea"
#: fieldSchema
msgid "form_field_type_textarea"
msgstr "Textfeld"
msgstr "Textbereichsfeld"

#. Default: "{formDataCount} item(s) stored"
#: components/Sidebar
Expand Down Expand Up @@ -780,7 +782,7 @@ msgstr "Statischer Text"
#. Default: "Textarea"
#: index
msgid "textarea"
msgstr "Textfeld"
msgstr "Textbereichsfeld"

#. Default: "Thank you message"
#: schemaFormBlock/schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Cancel"
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Cancelar"
Expand Down Expand Up @@ -184,6 +185,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Utzi"
Expand Down Expand Up @@ -180,6 +181,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Annuler"
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Annulla"
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr ""
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Annuleren"
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr ""
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr "Cancelar"
Expand Down Expand Up @@ -184,6 +185,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr ""
Expand Down Expand Up @@ -178,6 +179,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
4 changes: 3 additions & 1 deletion frontend/packages/volto-form-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-10-05T15:44:18.362Z\n"
"POT-Creation-Date: 2024-10-15T08:41:20.752Z\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 @@ -31,6 +31,7 @@ msgstr ""
#. Default: "Cancel"
#: components/Sidebar
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Cancel"
msgstr ""
Expand Down Expand Up @@ -180,6 +181,7 @@ msgstr ""

#. Default: "Submit"
#: schemaFormBlock/EditSchemaForm
#: schemaFormBlock/schema
#: schemaFormBlock/ViewSchemaForm
msgid "Submit"
msgstr ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Edit extends Component {
default: defaultEmptyData,
filterFactory,
additionalFactory,
allowEditId: true,
},
},
required: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => {
};

return (
<>
<div className="block schemaForm">
{data.title && <h2>{data.title}</h2>}
{data.description && (
<p className="documentDescription">{data.description}</p>
Expand Down Expand Up @@ -120,7 +120,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => {
cancelLabel={data.cancel_label || intl.formatMessage(messages.cancel)}
/>
)}
</>
</div>
);
};

Expand Down
14 changes: 12 additions & 2 deletions frontend/packages/volto-form-block/src/schemaFormBlock/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ const messages = defineMessages({
id: 'Cancel button label',
defaultMessage: 'Cancel button label',
},
cancel: {
id: 'Cancel',
defaultMessage: 'Cancel',
},
submit: {
id: 'Submit',
defaultMessage: 'Submit',
},
captcha: {
id: 'captcha',
defaultMessage: 'Captcha provider',
Expand Down Expand Up @@ -201,8 +209,8 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => {
'description',
'submit_label',
'show_cancel',
'thankyou',
...(data?.show_cancel ? ['cancel_label'] : []),
'thankyou',
'captcha',
],
},
Expand Down Expand Up @@ -248,10 +256,11 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => {
},
description: {
title: intl.formatMessage(messages.description),
type: 'textarea',
widget: 'textarea',
},
submit_label: {
title: intl.formatMessage(messages.submit_label),
default: intl.formatMessage(messages.submit),
},
show_cancel: {
type: 'boolean',
Expand All @@ -260,6 +269,7 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => {
},
cancel_label: {
title: intl.formatMessage(messages.cancel_label),
default: intl.formatMessage(messages.cancel),
},
thankyou: {
title: intl.formatMessage(messages.thankyou),
Expand Down

0 comments on commit 17a6673

Please sign in to comment.