diff --git a/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po index 84c14fd..459a787 100644 --- a/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po @@ -361,15 +361,15 @@ msgstr "Captcha-Anbieter" msgid "checkbox_group" msgstr "Auswahlfeldgruppe" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" -msgstr "" +msgstr "Empfänger" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" -msgstr "" +msgstr "Bestätigung an in folgendem Feld eingetragene Adresse senden" #. Default: "Description" #: formSchema @@ -774,10 +774,10 @@ msgstr "Ergebnisse" msgid "select_risultato" msgstr "Ergebnis" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" -msgstr "" +msgstr "E-Mail an Nutzenden senden" #. Default: "Static Text" #: index @@ -807,7 +807,7 @@ msgstr "Dankesnachricht" #. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" -msgstr "Ein Text mit einfacher Formatierung kann eingegeben werden. Außerdem ist es möglich, Variablen zu verwenden; {field_id} kann verwendet werden, um den Wert eines Feldes im Formular anzuzeigen. Die Variable {formfields} listet alle Formularfelder in einer tabellarischen Ansicht auf." +msgstr "Ein Text mit einfacher Formatierung kann eingegeben werden. Außerdem ist es möglich, Variablen zu verwenden; ${field_id} kann verwendet werden, um den Wert eines Feldes im Formular anzuzeigen. Die Variable ${formfields} listet alle Formularfelder in einer tabellarischen Ansicht auf." #. Default: "Time" #: index diff --git a/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po index 7f66320..a6c46de 100644 --- a/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po index d8fcc46..5d7130b 100644 --- a/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po @@ -367,12 +367,12 @@ msgstr "Proveedor de captchas" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -780,7 +780,7 @@ msgstr "Resultados" msgid "select_risultato" msgstr "Resultado" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -810,7 +810,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po index d83f486..1048309 100644 --- a/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po @@ -363,12 +363,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -776,7 +776,7 @@ msgstr "emaitzak" msgid "select_risultato" msgstr "emaitza" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -806,7 +806,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po index 2e5ec66..77fa6ac 100644 --- a/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po index 097c0e3..36c2586 100644 --- a/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "risultati" msgid "select_risultato" msgstr "risultato" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po index 4b2eede..3de47de 100644 --- a/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po index 2707823..6f28115 100644 --- a/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po index 4b2eede..3de47de 100644 --- a/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po index 118c423..dda12fc 100644 --- a/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po @@ -367,12 +367,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -780,7 +780,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -810,7 +810,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po index 4b2eede..3de47de 100644 --- a/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po @@ -361,12 +361,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -774,7 +774,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -804,7 +804,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/volto.pot b/frontend/packages/volto-form-block/locales/volto.pot index cced0fc..6d73799 100644 --- a/frontend/packages/volto-form-block/locales/volto.pot +++ b/frontend/packages/volto-form-block/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-10-30T16:45:46.614Z\n" +"POT-Creation-Date: 2024-10-30T18:09:17.004Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "Content-Type: text/plain; charset=utf-8\n" @@ -363,12 +363,12 @@ msgstr "" msgid "checkbox_group" msgstr "" -#. Default: "Recipients" +#. Default: "Recipient" #: schemaFormBlock/schema msgid "confirmation_recipients" msgstr "" -#. Default: "Email addresses to send the confirmation to. Multiple email addresses can be entered separated by a semicolon. Use the ${field_id} syntax to use a form value as the recipient." +#. Default: "Send confirmation to the email entered in the following field" #: schemaFormBlock/schema msgid "confirmation_recipients_description" msgstr "" @@ -776,7 +776,7 @@ msgstr "" msgid "select_risultato" msgstr "" -#. Default: "Send confirmation email to user" +#. Default: "Send confirmation email" #: schemaFormBlock/schema msgid "send_confirmation" msgstr "" @@ -806,7 +806,7 @@ msgstr "" msgid "thankyou" msgstr "" -#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; {field_id} can be used to display the value of a field inside the form. The {formfields} variable lists all form fields in a tabular view." #: schemaFormBlock/schema msgid "thankyou_description" msgstr "" diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx index 07d9f6b..9b839ec 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx @@ -129,11 +129,11 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { let thankyou = data.thankyou?.data || ''; // Add formfields - thankyou = thankyou.replace('{formfields}', formfields); + thankyou = thankyou.replace('${formfields}', formfields); // Add seperate fields map(keys(submittedData), (field) => { - thankyou = thankyou.replace('{' + field + '}', submittedData[field]); + thankyou = thankyou.replace('${' + field + '}', submittedData[field]); }); return ( diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js b/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js index f84259e..9b596dd 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js @@ -175,19 +175,16 @@ const messages = defineMessages({ }, send_confirmation: { id: 'send_confirmation', - defaultMessage: 'Send confirmation email to user', + defaultMessage: 'Send confirmation email', }, confirmation_recipients: { id: 'confirmation_recipients', - defaultMessage: 'Recipients', + defaultMessage: 'Recipient', }, confirmation_recipients_description: { id: 'confirmation_recipients_description', defaultMessage: - 'Email addresses to send the confirmation to. ' + - 'Multiple email addresses can be entered separated by a semicolon. ' + - // eslint-disable-next-line no-template-curly-in-string - 'Use the ${field_id} syntax to use a form value as the recipient.', + 'Send confirmation to the email entered in the following field', }, }); @@ -301,7 +298,7 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { description: intl.formatMessage(messages.thankyou_description), widget: 'richtext', default: { - data: '{formfields}', + data: '${formfields}', }, }, captcha: {