From 05139cb47063f5093a3eec94b9d126f78cecc0ec Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Thu, 24 Oct 2024 16:11:31 +0200 Subject: [PATCH 01/14] build the registration from using the userschema provided by backend --- packages/volto/news/6434.feature | 1 + .../components/theme/Register/Register.jsx | 38 ++++++++----------- .../theme/Register/Register.stories.jsx | 26 +++++++++++++ .../theme/Register/Register.test.jsx | 26 +++++++++++++ .../__snapshots__/Register.test.jsx.snap | 10 ++--- 5 files changed, 73 insertions(+), 28 deletions(-) create mode 100644 packages/volto/news/6434.feature diff --git a/packages/volto/news/6434.feature b/packages/volto/news/6434.feature new file mode 100644 index 00000000000..7d818cb6d33 --- /dev/null +++ b/packages/volto/news/6434.feature @@ -0,0 +1 @@ +Build the registration form with the information of the backend (provided by the @userschema endpoint) @erral diff --git a/packages/volto/src/components/theme/Register/Register.jsx b/packages/volto/src/components/theme/Register/Register.jsx index e8fc522e7dd..2b22c096240 100644 --- a/packages/volto/src/components/theme/Register/Register.jsx +++ b/packages/volto/src/components/theme/Register/Register.jsx @@ -7,7 +7,7 @@ import { toast } from 'react-toastify'; import { Helmet, usePrevious } from '@plone/volto/helpers'; import { Toast } from '@plone/volto/components'; import { Form } from '@plone/volto/components/manage/Form'; -import { createUser } from '@plone/volto/actions'; +import { createUser, getUserSchema } from '@plone/volto/actions'; const messages = defineMessages({ title: { @@ -64,6 +64,13 @@ const Register = () => { const { loaded, loading, error } = useUsers(); const prevloading = usePrevious(loading); + const userschema = useSelector((state) => state.userschema); + + useEffect(() => { + if (!userschema.loading && !userschema.loaded) { + dispatch(getUserSchema()); + } + }, [userschema, dispatch]); useEffect(() => { if (prevloading && loaded) { @@ -90,6 +97,12 @@ const Register = () => { setError(null); }; + const emptySchema = { + fieldsets: [], + properties: {}, + required: [], + } + return (
@@ -99,28 +112,7 @@ const Register = () => { error={errors || error} loading={loading} submitLabel={intl.formatMessage(messages.register)} - schema={{ - fieldsets: [ - { - id: 'default', - title: intl.formatMessage(messages.default), - fields: ['fullname', 'email'], - }, - ], - properties: { - fullname: { - type: 'string', - title: intl.formatMessage(messages.fullnameTitle), - description: intl.formatMessage(messages.fullnameDescription), - }, - email: { - type: 'string', - title: intl.formatMessage(messages.emailTitle), - description: intl.formatMessage(messages.emailDescription), - }, - }, - required: ['fullname', 'email'], - }} + schema={userschema.loaded ? userschema.userschema: emptySchema} />
); diff --git a/packages/volto/src/components/theme/Register/Register.stories.jsx b/packages/volto/src/components/theme/Register/Register.stories.jsx index a3861a70725..acd95ec6a57 100644 --- a/packages/volto/src/components/theme/Register/Register.stories.jsx +++ b/packages/volto/src/components/theme/Register/Register.stories.jsx @@ -20,6 +20,32 @@ function StoryComponent(args) { locale: 'en', messages: {}, }, + userschema: { + loaded: true, + loading: false, + userschema: { + fieldsets: [ + { + id: 'default', + title: 'default', + fields: ['fullname', 'email'], + }, + ], + properties: { + fullname: { + type: 'string', + title: 'Fullname', + description: 'Enter your fullname', + }, + email: { + type: 'string', + title: 'email', + description: 'Enter your email address', + }, + }, + required: ['fullname', 'email'], + }, + }, }} >
diff --git a/packages/volto/src/components/theme/Register/Register.test.jsx b/packages/volto/src/components/theme/Register/Register.test.jsx index cac8ca499cc..84a4d3851d9 100644 --- a/packages/volto/src/components/theme/Register/Register.test.jsx +++ b/packages/volto/src/components/theme/Register/Register.test.jsx @@ -31,6 +31,32 @@ describe('Register', () => { loaded: true, }, }, + userschema: { + loaded: true, + loading: false, + userschema: { + fieldsets: [ + { + id: 'default', + title: 'default', + fields: ['fullname', 'email'], + }, + ], + properties: { + fullname: { + type: 'string', + title: 'Fullname', + description: 'Enter your fullname', + }, + email: { + type: 'string', + title: 'email', + description: 'Enter your email address', + }, + }, + required: ['fullname', 'email'], + }, + }, }); const component = renderer.create( diff --git a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap index c75ba527ee3..81095687137 100644 --- a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap +++ b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap @@ -9,7 +9,7 @@ exports[`Register renders a register component 1`] = ` \\"fieldsets\\": [ { \\"id\\": \\"default\\", - \\"title\\": \\"Default\\", + \\"title\\": \\"default\\", \\"fields\\": [ \\"fullname\\", \\"email\\" @@ -19,13 +19,13 @@ exports[`Register renders a register component 1`] = ` \\"properties\\": { \\"fullname\\": { \\"type\\": \\"string\\", - \\"title\\": \\"Full Name\\", - \\"description\\": \\"Enter full name, e.g. John Smith.\\" + \\"title\\": \\"Fullname\\", + \\"description\\": \\"Enter your fullname\\" }, \\"email\\": { \\"type\\": \\"string\\", - \\"title\\": \\"E-mail\\", - \\"description\\": \\"Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere.\\" + \\"title\\": \\"email\\", + \\"description\\": \\"Enter your email address\\" } }, \\"required\\": [ From fbb5e5b48c30423835cd2f833e279b2a8957460d Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Thu, 24 Oct 2024 16:22:47 +0200 Subject: [PATCH 02/14] prettier --- packages/volto/src/components/theme/Register/Register.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/volto/src/components/theme/Register/Register.jsx b/packages/volto/src/components/theme/Register/Register.jsx index 2b22c096240..9c4dabfe9cd 100644 --- a/packages/volto/src/components/theme/Register/Register.jsx +++ b/packages/volto/src/components/theme/Register/Register.jsx @@ -101,7 +101,7 @@ const Register = () => { fieldsets: [], properties: {}, required: [], - } + }; return (
@@ -112,7 +112,7 @@ const Register = () => { error={errors || error} loading={loading} submitLabel={intl.formatMessage(messages.register)} - schema={userschema.loaded ? userschema.userschema: emptySchema} + schema={userschema.loaded ? userschema.userschema : emptySchema} />
); From d86b649aa204ce011f2efafd66aa323363af02e2 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 25 Oct 2024 09:15:25 +0200 Subject: [PATCH 03/14] Update packages/volto/news/6434.feature Co-authored-by: Steve Piercy --- packages/volto/news/6434.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/volto/news/6434.feature b/packages/volto/news/6434.feature index 7d818cb6d33..0f704423b98 100644 --- a/packages/volto/news/6434.feature +++ b/packages/volto/news/6434.feature @@ -1 +1 @@ -Build the registration form with the information of the backend (provided by the @userschema endpoint) @erral +Build the registration form with information from the backend, provided by the `@userschema` endpoint. @erral From 22cdbb14e6972e132ca3db20e839bc191c295730 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 25 Oct 2024 09:15:38 +0200 Subject: [PATCH 04/14] Update packages/volto/src/components/theme/Register/Register.stories.jsx Co-authored-by: Steve Piercy --- .../volto/src/components/theme/Register/Register.stories.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/volto/src/components/theme/Register/Register.stories.jsx b/packages/volto/src/components/theme/Register/Register.stories.jsx index acd95ec6a57..cbd4c9f4849 100644 --- a/packages/volto/src/components/theme/Register/Register.stories.jsx +++ b/packages/volto/src/components/theme/Register/Register.stories.jsx @@ -34,7 +34,7 @@ function StoryComponent(args) { properties: { fullname: { type: 'string', - title: 'Fullname', + title: 'Full name', description: 'Enter your fullname', }, email: { From dc1e596f2b3ba5a2b48f3c10311feae6af313c11 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 25 Oct 2024 09:15:45 +0200 Subject: [PATCH 05/14] Update packages/volto/src/components/theme/Register/Register.stories.jsx Co-authored-by: Steve Piercy --- .../volto/src/components/theme/Register/Register.stories.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/volto/src/components/theme/Register/Register.stories.jsx b/packages/volto/src/components/theme/Register/Register.stories.jsx index cbd4c9f4849..09268ce922f 100644 --- a/packages/volto/src/components/theme/Register/Register.stories.jsx +++ b/packages/volto/src/components/theme/Register/Register.stories.jsx @@ -35,7 +35,7 @@ function StoryComponent(args) { fullname: { type: 'string', title: 'Full name', - description: 'Enter your fullname', + description: 'Enter your full name', }, email: { type: 'string', From f544fe0d5f22a7ef3e75562d230b339260f75665 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 25 Oct 2024 18:54:31 +0200 Subject: [PATCH 06/14] s/fullname/full name --- packages/volto/src/components/theme/Register/Register.test.jsx | 2 +- .../theme/Register/__snapshots__/Register.test.jsx.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/volto/src/components/theme/Register/Register.test.jsx b/packages/volto/src/components/theme/Register/Register.test.jsx index 84a4d3851d9..5fa5fe41e02 100644 --- a/packages/volto/src/components/theme/Register/Register.test.jsx +++ b/packages/volto/src/components/theme/Register/Register.test.jsx @@ -46,7 +46,7 @@ describe('Register', () => { fullname: { type: 'string', title: 'Fullname', - description: 'Enter your fullname', + description: 'Enter your full name', }, email: { type: 'string', diff --git a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap index 81095687137..161352a262d 100644 --- a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap +++ b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap @@ -20,7 +20,7 @@ exports[`Register renders a register component 1`] = ` \\"fullname\\": { \\"type\\": \\"string\\", \\"title\\": \\"Fullname\\", - \\"description\\": \\"Enter your fullname\\" + \\"description\\": \\"Enter your full name\\" }, \\"email\\": { \\"type\\": \\"string\\", From 53cb2c36bf0c15d0c1eff1d91aed000b73d12e28 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 25 Oct 2024 18:54:41 +0200 Subject: [PATCH 07/14] remove unneeded strings --- .../components/theme/Register/Register.jsx | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/packages/volto/src/components/theme/Register/Register.jsx b/packages/volto/src/components/theme/Register/Register.jsx index 9c4dabfe9cd..d57f9f14e40 100644 --- a/packages/volto/src/components/theme/Register/Register.jsx +++ b/packages/volto/src/components/theme/Register/Register.jsx @@ -14,27 +14,6 @@ const messages = defineMessages({ id: 'Registration form', defaultMessage: 'Registration form', }, - default: { - id: 'Default', - defaultMessage: 'Default', - }, - fullnameTitle: { - id: 'Full Name', - defaultMessage: 'Full Name', - }, - fullnameDescription: { - id: 'Enter full name, e.g. John Smith.', - defaultMessage: 'Enter full name, e.g. John Smith.', - }, - emailTitle: { - id: 'E-mail', - defaultMessage: 'E-mail', - }, - emailDescription: { - id: 'Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere.', - defaultMessage: - 'Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere.', - }, successRegisterCompletedTitle: { id: 'Account Registration Completed', defaultMessage: 'Account Registration Completed', From 3b80078d0013e6aff249963037f036ed7fcd7ca1 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Fri, 25 Oct 2024 18:55:40 +0200 Subject: [PATCH 08/14] update po files --- .../volto/locales/ca/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/de/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/en/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/es/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/eu/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/fi/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/fr/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/hi/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/it/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/ja/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/nl/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/pt/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/pt_BR/LC_MESSAGES/volto.po | 21 ----------------- .../volto/locales/ro/LC_MESSAGES/volto.po | 21 ----------------- packages/volto/locales/volto.pot | 23 +------------------ .../volto/locales/zh_CN/LC_MESSAGES/volto.po | 21 ----------------- 16 files changed, 1 insertion(+), 337 deletions(-) diff --git a/packages/volto/locales/ca/LC_MESSAGES/volto.po b/packages/volto/locales/ca/LC_MESSAGES/volto.po index 9c127313f2a..a0deff1d976 100644 --- a/packages/volto/locales/ca/LC_MESSAGES/volto.po +++ b/packages/volto/locales/ca/LC_MESSAGES/volto.po @@ -985,7 +985,6 @@ msgstr "Data (el més nou primer)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Per defecte" @@ -1193,11 +1192,6 @@ msgstr "Deixeu fitxers aquí..." msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "correu electrònic" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1317,16 +1311,6 @@ msgstr "Introduïu l'URL o seleccioneu un element" msgid "Enter a username above to search or click 'Show All'" msgstr "Introduïu un nom d'usuari a dalt per cercar o feu clic a 'Mostra-ho tot'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Introduïu una adreça de correu electrònic. Aquest serà el vostre nom d'inici de sessió. Respectem la vostra privadesa i no donarem l'adreça a tercers ni l'exposarem enlloc." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Introduïu el nom complet, per exemple John Smith." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1601,11 +1585,6 @@ msgstr "Des de" msgid "Full" msgstr "Complet" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Nom complet" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/de/LC_MESSAGES/volto.po b/packages/volto/locales/de/LC_MESSAGES/volto.po index accbee32db6..ba11f291151 100644 --- a/packages/volto/locales/de/LC_MESSAGES/volto.po +++ b/packages/volto/locales/de/LC_MESSAGES/volto.po @@ -984,7 +984,6 @@ msgstr "Datum (neustes zuerst)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Standard" @@ -1192,11 +1191,6 @@ msgstr "Datei hier ablegen um die bestehende Datei zu ersetzen" msgid "Dry run selected, transaction aborted." msgstr "Probelauf gewählt, Transaktion abgebrochen." -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-Mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1316,16 +1310,6 @@ msgstr "URL eingeben oder Objekt auswählen" msgid "Enter a username above to search or click 'Show All'" msgstr "Benutzername oben eingeben oder auf 'Alle anzeigen' klicken" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Tragen Sie Ihre E-Mail-Adresse ein, mit der Sie sich künftig anmelden müssen. Wir respektieren den Datenschutz und werden die E-Mail-Adresse nicht an Dritte weitergeben und auch nirgends anzeigen." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Tragen Sie bitte Ihren vollen Namen ein." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1600,11 +1584,6 @@ msgstr "E-Mail" msgid "Full" msgstr "Volle Breite" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Vor- und Nachname" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/en/LC_MESSAGES/volto.po b/packages/volto/locales/en/LC_MESSAGES/volto.po index 77d49db13f5..216a83beb0d 100644 --- a/packages/volto/locales/en/LC_MESSAGES/volto.po +++ b/packages/volto/locales/en/LC_MESSAGES/volto.po @@ -979,7 +979,6 @@ msgstr "" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "" @@ -1187,11 +1186,6 @@ msgstr "" msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1311,16 +1305,6 @@ msgstr "" msgid "Enter a username above to search or click 'Show All'" msgstr "" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "" - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "" - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1595,11 +1579,6 @@ msgstr "" msgid "Full" msgstr "" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/es/LC_MESSAGES/volto.po b/packages/volto/locales/es/LC_MESSAGES/volto.po index 4cc52bdb154..824b726224a 100644 --- a/packages/volto/locales/es/LC_MESSAGES/volto.po +++ b/packages/volto/locales/es/LC_MESSAGES/volto.po @@ -986,7 +986,6 @@ msgstr "Fecha (primero los más recientes)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Por defecto" @@ -1194,11 +1193,6 @@ msgstr "Arrastrar archivos aquí..." msgid "Dry run selected, transaction aborted." msgstr "Se ha seleccionado el modo de prueba, transacción abortada" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "Correo electrónico" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1318,16 +1312,6 @@ msgstr "Introduzca una URL o seleccione un elemento" msgid "Enter a username above to search or click 'Show All'" msgstr "Introduzca un nombre de usuario o haga clic en 'Mostrar todos'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Introduzca una dirección de correo electrónico. Este será el nombre de usuario. Nosotros respetamos su privacidad: y no daremos la dirección de correo electrónico a terceros, o la expondremos de alguna forma en el portal." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Introduzca el nombre completo, por ejemplo Leonardo Caballero." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1602,11 +1586,6 @@ msgstr "De" msgid "Full" msgstr "Completo" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Nombre completo" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/eu/LC_MESSAGES/volto.po b/packages/volto/locales/eu/LC_MESSAGES/volto.po index e2fed09346f..5097e9ffd7a 100644 --- a/packages/volto/locales/eu/LC_MESSAGES/volto.po +++ b/packages/volto/locales/eu/LC_MESSAGES/volto.po @@ -986,7 +986,6 @@ msgstr "Data (berriena lehenengo)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Defektuzkoa" @@ -1194,11 +1193,6 @@ msgstr "Arrastatu fitxategiak hona..." msgid "Dry run selected, transaction aborted." msgstr "Modu lehorra aukeratu duzunez, transakzioa bertan behera utzi da." -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "Eposta" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1318,16 +1312,6 @@ msgstr "Sartu URL bat edo aukeratu elementu bat" msgid "Enter a username above to search or click 'Show All'" msgstr "Idatzi erabiltzaile-izen bat bilaketa egiteko edo sakatu 'Ikusi guztiak'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Idatzi eposta helbidea. Hau zure erabiltzaile-izena izango da. Zure pribatutasuna errespetatzen dugu eta ez dugu helbidea argitaratu edo inori emango." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Idatzi izen osoa, adb. Jon Garmendia." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1602,11 +1586,6 @@ msgstr "Nok" msgid "Full" msgstr "Osoa" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Izen-abizenak" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/fi/LC_MESSAGES/volto.po b/packages/volto/locales/fi/LC_MESSAGES/volto.po index f851233f399..fe0c5ca3491 100644 --- a/packages/volto/locales/fi/LC_MESSAGES/volto.po +++ b/packages/volto/locales/fi/LC_MESSAGES/volto.po @@ -984,7 +984,6 @@ msgstr "Päivä (uusin ensin)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Oletus" @@ -1192,11 +1191,6 @@ msgstr "Pudota tiedosto tänne... " msgid "Dry run selected, transaction aborted." msgstr "Koeajo valittu, toiminto keskeytetty." -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "Sähköposti" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1316,16 +1310,6 @@ msgstr "Syötä URL-osoite tai valitse kohde" msgid "Enter a username above to search or click 'Show All'" msgstr "Syötä yläpuolelle etsittävä käyttäjähimi tai valitse 'Näytä kaikki'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Syötä sähköpostiosoite, jota haluat käyttää kirjautumistunnuksena. Me kunnioitamme yksityisyyttäsi, emmekä jaa sähköpostiosoitettasi kenellekään muulle tai julkaise sitä missään." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Syötä koko nimi, esimerkiksi Lumi Vuorinen." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1600,11 +1584,6 @@ msgstr "Sähköposti" msgid "Full" msgstr "Kokoleveästi" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Koko nimi" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/fr/LC_MESSAGES/volto.po b/packages/volto/locales/fr/LC_MESSAGES/volto.po index 2f5d0b30050..dd8f7fc5509 100644 --- a/packages/volto/locales/fr/LC_MESSAGES/volto.po +++ b/packages/volto/locales/fr/LC_MESSAGES/volto.po @@ -986,7 +986,6 @@ msgstr "Date (le plus récent en premier)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Défaut" @@ -1194,11 +1193,6 @@ msgstr "Déposez les fichiers ici ..." msgid "Dry run selected, transaction aborted." msgstr "Essai sélectionné, transaction abandonnée." -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1318,16 +1312,6 @@ msgstr "Saisissez l'URL ou sélectionnez un élément" msgid "Enter a username above to search or click 'Show All'" msgstr "Saisissez un nom d'utilisateur ci-dessus à rechercher ou cliquez sur 'Afficher tous'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Saisissez votre adresse e-mail. Elle sera votre nom d'utilisateur. Nous respectons votre vie privée, nous ne donnerons pas votre adresse à un tiers et elle ne sera pas exposée." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Saisissez votre nom complet (par exemple : John Smith)" - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1602,11 +1586,6 @@ msgstr "De" msgid "Full" msgstr "Complet" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Nom complet" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/hi/LC_MESSAGES/volto.po b/packages/volto/locales/hi/LC_MESSAGES/volto.po index 06006f6f10f..19227b79ac4 100644 --- a/packages/volto/locales/hi/LC_MESSAGES/volto.po +++ b/packages/volto/locales/hi/LC_MESSAGES/volto.po @@ -979,7 +979,6 @@ msgstr "तारीख (नवीनतम पहले)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "डिफ़ॉल्ट" @@ -1187,11 +1186,6 @@ msgstr "यहाँ फ़ाइलें ड्रॉप करें ..." msgid "Dry run selected, transaction aborted." msgstr "सूखा परीक्षण चुना गया, लेन-देन रद्द किया गया।" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "ईमेल" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1311,16 +1305,6 @@ msgstr "URL दर्ज करें या आइटम का चयन क msgid "Enter a username above to search or click 'Show All'" msgstr "खोज करने के लिए ऊपर एक उपयोगकर्ता नाम दर्ज करें या 'सभी दिखाएं' पर क्लिक करें" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "एक ईमेल पता दर्ज करें। यह आपका लॉगिन नाम होगा। हम आपकी गोपनीयता का सम्मान करते हैं, और हम इस पते को किसी तीसरे पक्ष को नहीं देंगे या इसे कहीं भी प्रकट नहीं करेंगे।" - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "पूरा नाम दर्ज करें, उदाहरण के लिए, John Smith।" - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1595,11 +1579,6 @@ msgstr "से" msgid "Full" msgstr "पूरा" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "पूरा नाम" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/it/LC_MESSAGES/volto.po b/packages/volto/locales/it/LC_MESSAGES/volto.po index 794ac7f9a64..30a2f3f455f 100644 --- a/packages/volto/locales/it/LC_MESSAGES/volto.po +++ b/packages/volto/locales/it/LC_MESSAGES/volto.po @@ -979,7 +979,6 @@ msgstr "Data (prima i più recenti)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Default" @@ -1187,11 +1186,6 @@ msgstr "Rilascia file qui..." msgid "Dry run selected, transaction aborted." msgstr "Prova a vuoto selezionata, transazione annullata" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1311,16 +1305,6 @@ msgstr "Inserisci un URL o seleziona un elemento" msgid "Enter a username above to search or click 'Show All'" msgstr "Inserisci uno username da ricercare, oppure clicca su 'Vedi tutto'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Inserisci un indirizzo e-mail. Esso sarà il tuo nome utente. Rispettiamo la tua privacy: non daremo l'indirizzo a terzi, né verrà esposto nel portale." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Inserisci il tuo nome completo, ad esempio Mario Rossi." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1595,11 +1579,6 @@ msgstr "Da" msgid "Full" msgstr "A tutta larghezza" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Nome completo" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/ja/LC_MESSAGES/volto.po b/packages/volto/locales/ja/LC_MESSAGES/volto.po index 3d016b49850..71b8acc7e2b 100644 --- a/packages/volto/locales/ja/LC_MESSAGES/volto.po +++ b/packages/volto/locales/ja/LC_MESSAGES/volto.po @@ -984,7 +984,6 @@ msgstr "日付 (新しい順)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "基本" @@ -1192,11 +1191,6 @@ msgstr "ファイルをここにドロップ" msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "メール" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1316,16 +1310,6 @@ msgstr "URLを入力または項目を選択" msgid "Enter a username above to search or click 'Show All'" msgstr "検索するユーザ名を上に入力するか、[すべて表示]をクリックしてください。" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "メールアドレスを入力してください。このメールアドレスがログイン名になります。当サイトはプライバシーを尊重しています。メールアドレスを第三者に提供したり、公開することはありません。" - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "氏名(フルネーム)を入力。例: Hanako Suzuki や 山田太郎 " - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1600,11 +1584,6 @@ msgstr "メールアドレス" msgid "Full" msgstr "フルサイズ" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "氏名" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/nl/LC_MESSAGES/volto.po b/packages/volto/locales/nl/LC_MESSAGES/volto.po index 7ae5fd8b4a5..5adf57c98db 100644 --- a/packages/volto/locales/nl/LC_MESSAGES/volto.po +++ b/packages/volto/locales/nl/LC_MESSAGES/volto.po @@ -983,7 +983,6 @@ msgstr "" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Standaard" @@ -1191,11 +1190,6 @@ msgstr "" msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mailadres" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1315,16 +1309,6 @@ msgstr "" msgid "Enter a username above to search or click 'Show All'" msgstr "" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "" - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Vul de volledige naam in, bijvoorbeeld Jan Smit." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1599,11 +1583,6 @@ msgstr "" msgid "Full" msgstr "" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Volledige naam" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/pt/LC_MESSAGES/volto.po b/packages/volto/locales/pt/LC_MESSAGES/volto.po index 38e7165a155..5fad1fb1e3d 100644 --- a/packages/volto/locales/pt/LC_MESSAGES/volto.po +++ b/packages/volto/locales/pt/LC_MESSAGES/volto.po @@ -984,7 +984,6 @@ msgstr "" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Predefinido" @@ -1192,11 +1191,6 @@ msgstr "" msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1316,16 +1310,6 @@ msgstr "" msgid "Enter a username above to search or click 'Show All'" msgstr "" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Escreva um endereço de email. Este será o seu nome de sessão. Respeitamos a sua privacidade e nunca iremos ceder o seu endereço a terceiros ou expô-lo onde quer que seja." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Escreva o nome completo. Por exemplo, José Silva." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1600,11 +1584,6 @@ msgstr "De" msgid "Full" msgstr "Cheio" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Nome Completo" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po b/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po index a49133408d1..828c78af745 100644 --- a/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po +++ b/packages/volto/locales/pt_BR/LC_MESSAGES/volto.po @@ -985,7 +985,6 @@ msgstr "Data (mais novo primeiro)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Padrão" @@ -1193,11 +1192,6 @@ msgstr "Soltar aquivos aqui…" msgid "Dry run selected, transaction aborted." msgstr "Simulação selecionada, transação abortada." -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1317,16 +1311,6 @@ msgstr "Digite URL ou selecione um item" msgid "Enter a username above to search or click 'Show All'" msgstr "Digite um nome de usuário acima para pesquisar ou clique em 'Mostrar todos'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Digite um endereço de e-mail. Este será o seu nome de usuário. Respeitamos a sua privacidade e nunca iremos ceder o seu endereço a terceiros ou expô-lo onde quer que seja." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Digite o nome completo. Por exemplo, José da Silva." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1601,11 +1585,6 @@ msgstr "E-mail" msgid "Full" msgstr "Cheia" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Nome completo" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/ro/LC_MESSAGES/volto.po b/packages/volto/locales/ro/LC_MESSAGES/volto.po index 64f8414719f..99b2c1b31f8 100644 --- a/packages/volto/locales/ro/LC_MESSAGES/volto.po +++ b/packages/volto/locales/ro/LC_MESSAGES/volto.po @@ -979,7 +979,6 @@ msgstr "Data (cea mai recentă mai întâi)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "Implicit" @@ -1187,11 +1186,6 @@ msgstr "Trageți fișierele aici..." msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1311,16 +1305,6 @@ msgstr "Introduceți adresa URL sau selectați un obiect" msgid "Enter a username above to search or click 'Show All'" msgstr "Introduceți un nume de utilizator mai sus pentru a căuta sau faceți clic pe „Afișați tot”" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Introduceți o adresă de e-mail. Acesta va fi numele dvs. de autentificare. Respectăm confidențialitatea dvs. și nu vom oferi adresa niciunui terț și nu o vom expune nicăieri." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Introduceți numele complet, de exemplu, Valentin Popescu." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1595,11 +1579,6 @@ msgstr "Din" msgid "Full" msgstr "Complet" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "Numele complet" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/volto.pot b/packages/volto/locales/volto.pot index 8d690392304..f136457722b 100644 --- a/packages/volto/locales/volto.pot +++ b/packages/volto/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-10-22T18:13:27.236Z\n" +"POT-Creation-Date: 2024-10-25T16:54:59.838Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "Content-Type: text/plain; charset=utf-8\n" @@ -981,7 +981,6 @@ msgstr "" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "" @@ -1189,11 +1188,6 @@ msgstr "" msgid "Dry run selected, transaction aborted." msgstr "" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1313,16 +1307,6 @@ msgstr "" msgid "Enter a username above to search or click 'Show All'" msgstr "" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "" - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "" - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1597,11 +1581,6 @@ msgstr "" msgid "Full" msgstr "" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" diff --git a/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po b/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po index c64ddee6a5a..5690bb29f21 100644 --- a/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po +++ b/packages/volto/locales/zh_CN/LC_MESSAGES/volto.po @@ -985,7 +985,6 @@ msgstr "日期(最新在前)" #: components/theme/ContactForm/ContactForm #: components/theme/PasswordReset/PasswordReset #: components/theme/PasswordReset/RequestPasswordReset -#: components/theme/Register/Register msgid "Default" msgstr "默认" @@ -1193,11 +1192,6 @@ msgstr "在此处放置文件 ..." msgid "Dry run selected, transaction aborted." msgstr ",事务已被终止。" -#. Default: "E-mail" -#: components/theme/Register/Register -msgid "E-mail" -msgstr "E-mail" - #. Default: "E-mail addresses do not match." #: components/theme/PasswordReset/PasswordReset msgid "E-mail addresses do not match." @@ -1317,16 +1311,6 @@ msgstr "输入 URL 或选择一个项目" msgid "Enter a username above to search or click 'Show All'" msgstr "输入用户名进行搜索或点击显示全部" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "输入一个 Email 地址。这会成为您的登录名。我们尊重您的隐私,不会向第三方透漏您的个人信息。" - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "输入您的姓名,如:张三" - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code" @@ -1601,11 +1585,6 @@ msgstr "" msgid "Full" msgstr "" -#. Default: "Full Name" -#: components/theme/Register/Register -msgid "Full Name" -msgstr "姓名" - #. Default: "Fullname" #: helpers/MessageLabels/MessageLabels msgid "Fullname" From c1b85524c2276da0cefaf44366cc25e55d4770c5 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Sun, 27 Oct 2024 15:17:14 +0100 Subject: [PATCH 09/14] Update packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap Co-authored-by: Steve Piercy --- .../theme/Register/__snapshots__/Register.test.jsx.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap index 161352a262d..16bd2645ea9 100644 --- a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap +++ b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap @@ -19,7 +19,7 @@ exports[`Register renders a register component 1`] = ` \\"properties\\": { \\"fullname\\": { \\"type\\": \\"string\\", - \\"title\\": \\"Fullname\\", + \\"title\\": \\"Full name\\", \\"description\\": \\"Enter your full name\\" }, \\"email\\": { From 84b98fa6049acdeac84f3bff7fed27ecaac0ca61 Mon Sep 17 00:00:00 2001 From: Ion Lizarazu Date: Mon, 28 Oct 2024 08:59:16 +0100 Subject: [PATCH 10/14] update Register test snapshot --- .../theme/Register/__snapshots__/Register.test.jsx.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap index 16bd2645ea9..161352a262d 100644 --- a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap +++ b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap @@ -19,7 +19,7 @@ exports[`Register renders a register component 1`] = ` \\"properties\\": { \\"fullname\\": { \\"type\\": \\"string\\", - \\"title\\": \\"Full name\\", + \\"title\\": \\"Fullname\\", \\"description\\": \\"Enter your full name\\" }, \\"email\\": { From 8c9b3c54feced72acc5394ced58890d45a37f476 Mon Sep 17 00:00:00 2001 From: Ion Lizarazu Date: Mon, 28 Oct 2024 09:15:46 +0100 Subject: [PATCH 11/14] fix: Register.jsx file test and snapshot --- packages/volto/src/components/theme/Register/Register.test.jsx | 2 +- .../theme/Register/__snapshots__/Register.test.jsx.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/volto/src/components/theme/Register/Register.test.jsx b/packages/volto/src/components/theme/Register/Register.test.jsx index 5fa5fe41e02..d1d4425d192 100644 --- a/packages/volto/src/components/theme/Register/Register.test.jsx +++ b/packages/volto/src/components/theme/Register/Register.test.jsx @@ -45,7 +45,7 @@ describe('Register', () => { properties: { fullname: { type: 'string', - title: 'Fullname', + title: 'Full name', description: 'Enter your full name', }, email: { diff --git a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap index 161352a262d..16bd2645ea9 100644 --- a/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap +++ b/packages/volto/src/components/theme/Register/__snapshots__/Register.test.jsx.snap @@ -19,7 +19,7 @@ exports[`Register renders a register component 1`] = ` \\"properties\\": { \\"fullname\\": { \\"type\\": \\"string\\", - \\"title\\": \\"Fullname\\", + \\"title\\": \\"Full name\\", \\"description\\": \\"Enter your full name\\" }, \\"email\\": { From 67b7f5f03a517eee0c79623345ed864ad53d2d81 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Wed, 30 Oct 2024 16:15:45 +0100 Subject: [PATCH 12/14] add cypress test --- packages/volto/cypress/support/commands.js | 21 ++++++++++++++++ .../cypress/tests/core/basic/register.js | 24 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 packages/volto/cypress/tests/core/basic/register.js diff --git a/packages/volto/cypress/support/commands.js b/packages/volto/cypress/support/commands.js index f8ba71f3109..690557b6f66 100644 --- a/packages/volto/cypress/support/commands.js +++ b/packages/volto/cypress/support/commands.js @@ -967,3 +967,24 @@ Cypress.Commands.add('queryCounter', (path, steps, number = 1) => { cy.get('@counterName').its('callCount').should('equal', number); }); + +Cypress.Commands.add('enableSelfRegister', () => { + let api_url; + if (Cypress.env('API') === 'guillotina') { + api_url = GUILLOTINA_API_URL; + } else { + api_url = PLONE_API_URL; + } + + cy.request({ + method: 'PATCH', + url: `${api_url}/@controlpanels/security`, + headers: { Accept: 'application/json' }, + auth: ploneAuthObj, + body: { + enable_self_reg: true, + use_email_as_login: true, + use_uuid_as_userid: true, + }, + }); +}); diff --git a/packages/volto/cypress/tests/core/basic/register.js b/packages/volto/cypress/tests/core/basic/register.js new file mode 100644 index 00000000000..2819de4bbe3 --- /dev/null +++ b/packages/volto/cypress/tests/core/basic/register.js @@ -0,0 +1,24 @@ +describe('Register Tests', () => { + beforeEach(() => { + cy.enableSelfRegister(); + cy.intercept('GET', '@userschema').as('userschema'); + }); + it('Registration form is built according to the schema of the backend', function () { + let userschema = {}; + + cy.visit('/register'); + cy.wait('@userschema').then((res) => { + userschema = res.response.body; + Object.keys(userschema.properties).forEach((item) => { + cy.get(`#fieldset-undefined-field-label-${item}`).should( + 'have.text', + userschema.properties[item].title, + ); + cy.get(`.field-wrapper-${item} .help`).should( + 'have.text', + userschema.properties[item].description, + ); + }); + }); + }); +}); From 7372fa1555555023083b047d2e52e6b52cefc3ae Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Wed, 30 Oct 2024 16:15:54 +0100 Subject: [PATCH 13/14] send all the data in the form to the backend --- .../volto/src/components/theme/Register/Register.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/volto/src/components/theme/Register/Register.jsx b/packages/volto/src/components/theme/Register/Register.jsx index d57f9f14e40..670e8fab922 100644 --- a/packages/volto/src/components/theme/Register/Register.jsx +++ b/packages/volto/src/components/theme/Register/Register.jsx @@ -65,14 +65,7 @@ const Register = () => { }, [intl, history, loaded, prevloading]); const onSubmit = (data) => { - const { fullname, email } = data; - dispatch( - createUser({ - fullname: fullname, - email: email, - sendPasswordReset: true, - }), - ); + dispatch(createUser(data)); setError(null); }; From 166fa737b6a15803f200f655054a3ea5026a3873 Mon Sep 17 00:00:00 2001 From: Ion Lizarazu Date: Fri, 8 Nov 2024 08:15:22 +0100 Subject: [PATCH 14/14] remove unused translations --- packages/volto/locales/nl/LC_MESSAGES/volto.po | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/volto/locales/nl/LC_MESSAGES/volto.po b/packages/volto/locales/nl/LC_MESSAGES/volto.po index b5e1bba35f6..ae37a7164a7 100644 --- a/packages/volto/locales/nl/LC_MESSAGES/volto.po +++ b/packages/volto/locales/nl/LC_MESSAGES/volto.po @@ -1319,16 +1319,6 @@ msgstr "Vul de URL in of selecteer een item" msgid "Enter a username above to search or click 'Show All'" msgstr "Vul hierboven een gebruikersnaam in om te zoeken of klik 'Toon alles'" -#. Default: "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -#: components/theme/Register/Register -msgid "Enter an email address. This will be your login name. We respect your privacy, and will not give the address away to any third parties or expose it anywhere." -msgstr "Vul een e-mailadres in. Dit zal jouw inlognaam worden. Wij respecteren jouw privacy en zullen het niet delen met eender welke derde partij of het ergens blootstellen." - -#. Default: "Enter full name, e.g. John Smith." -#: components/theme/Register/Register -msgid "Enter full name, e.g. John Smith." -msgstr "Vul de volledige naam in, bijvoorbeeld Jan Smit." - #. Default: "Enter map Embed Code" #: components/manage/Blocks/Maps/Edit msgid "Enter map Embed Code"