Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaspiterek committed Feb 19, 2024
1 parent ccf0d09 commit c0b86b3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
5 changes: 5 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 5 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
7 changes: 6 additions & 1 deletion 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-02-02T08:52:19.982Z\n"
"POT-Creation-Date: 2024-02-19T14:56:25.399Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -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 ""
10 changes: 7 additions & 3 deletions src/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand All @@ -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;
Expand All @@ -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'],
},
],
Expand Down

0 comments on commit c0b86b3

Please sign in to comment.