diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 7e4a543..a674be6 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -45,3 +45,8 @@ msgstr "Zitat" # defaultMessage: This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms. msgid "This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms." msgstr "Dieses Feld erwartet eine URL als Eingabe (optional). Wenn eine URL angegeben wird, beziehen sich die Zusatzinformationen auf diese URL, um Barrierefreiheit zu gewährleisten." + +#: components/schema +# defaultMessage: Accessibility +msgid "accessibility" +msgstr "Barrierefreiheit" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 9b11a78..6bf7902 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -45,3 +45,8 @@ msgstr "" # defaultMessage: This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms. msgid "This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms." msgstr "" + +#: components/schema +# defaultMessage: Accessibility +msgid "accessibility" +msgstr "" diff --git a/locales/volto.pot b/locales/volto.pot index 59b5633..c88831a 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-02-02T08:52:19.982Z\n" +"POT-Creation-Date: 2024-02-19T14:56:25.399Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "MIME-Version: 1.0\n" @@ -47,3 +47,8 @@ msgstr "" # defaultMessage: This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms. msgid "This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms." msgstr "" + +#: components/schema +# defaultMessage: Accessibility +msgid "accessibility" +msgstr "" diff --git a/src/components/schema.js b/src/components/schema.js index f1c3adb..e034d58 100644 --- a/src/components/schema.js +++ b/src/components/schema.js @@ -31,6 +31,10 @@ const messages = defineMessages({ defaultMessage: 'This field expects an URL as input (optional). If an URL is provided the additional information will have a relation to this URL, this is due to accessibility norms.', }, + accessibility: { + id: 'accessibility', + defaultMessage: 'Accessibility', + }, }); export const QuoteBlockSchema = ({ intl }) => { @@ -44,7 +48,7 @@ export const QuoteBlockSchema = ({ intl }) => { const filterDefaultLanguages = () => { if (allowedLanguages) { return DEFAULT_LANGUAGES.filter((item) => - allowedLanguages.includes(item[0]), + allowedLanguages.includes(item[0]) ); } else { return DEFAULT_LANGUAGES; @@ -64,12 +68,12 @@ export const QuoteBlockSchema = ({ intl }) => { }, { id: 'author', - title: 'Author', + title: intl.formatMessage(messages.author), fields: ['author', 'additional_information'], }, { id: 'accessibility', - title: 'Accessibility', + title: intl.formatMessage(messages.accessibility), fields: ['quotationLanguage', 'cite'], }, ],