Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added translations for German #27

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mrs.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"package": "@plone/volto",
"url": "[email protected]:plone/volto.git",
"https": "https://github.com/plone/volto.git",
"tag": "18.0.0-alpha.25"
"tag": "18.0.0-alpha.41"
}
}
84 changes: 84 additions & 0 deletions packages/volto-code-block/locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language: \n"
"Language-Team: \n"
"Content-Type: \n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. Default: "Caption"
#: components/Blocks/Code/schema
msgid "Caption"
msgstr "Beschriftung"

#. Default: "Code Block"
#: components/Blocks/Code/schema
msgid "Code Block"
msgstr ""

#. Default: "Dark"
#: components/SyntaxHighlighter/Styles
msgid "Dark"
msgstr "Dunkel"

#. Default: "Description"
#: components/Blocks/Code/schema
#: components/Blocks/Gist/schema
msgid "Description"
msgstr "Beschreibung"

#. Default: "File"
#: components/Blocks/Gist/schema
msgid "File"
msgstr "Datei"

#. Default: "Gist Block"
#: components/Blocks/Gist/schema
msgid "Gist Block"
msgstr ""

#. Default: "Gist Id"
#: components/Blocks/Gist/schema
msgid "Gist Id"
msgstr ""

#. Default: "Language"
#: components/Blocks/Code/schema
msgid "Language"
msgstr "Sprache"

#. Default: "Light"
#: components/SyntaxHighlighter/Styles
msgid "Light"
msgstr "Hell"

#. Default: "Show Line Numbers"
#: components/Blocks/Code/schema
msgid "Show Line Numbers"
msgstr "Zeilennummern anzeigen"

#. Default: "Starting Line Number"
#: components/Blocks/Code/schema
msgid "Starting Line Number"
msgstr "Nummer der Startzeile"

#. Default: "Style"
#: components/Blocks/Code/schema
msgid "Style"
msgstr "Aussehen"

#. Default: "Title"
#: components/Blocks/Code/schema
#: components/Blocks/Gist/schema
msgid "Title"
msgstr "Titel"

#. Default: "Wrap Long Lines"
#: components/Blocks/Code/schema
msgid "Wrap Long Lines"
msgstr "Lange Zeilen umbrechen"
5 changes: 5 additions & 0 deletions packages/volto-code-block/locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. Default: "Caption"
#: components/Blocks/Code/schema
msgid "Caption"
msgstr ""

#. Default: "Code Block"
#: components/Blocks/Code/schema
msgid "Code Block"
Expand Down
5 changes: 5 additions & 0 deletions packages/volto-code-block/locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. Default: "Caption"
#: components/Blocks/Code/schema
msgid "Caption"
msgstr ""

#. Default: "Code Block"
#: components/Blocks/Code/schema
msgid "Code Block"
Expand Down
7 changes: 6 additions & 1 deletion packages/volto-code-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-04-02T13:25:29.270Z\n"
"POT-Creation-Date: 2025-01-15T13:59:29.248Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"Content-Type: text/plain; charset=utf-8\n"
Expand All @@ -13,6 +13,11 @@ msgstr ""
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"

#. Default: "Caption"
#: components/Blocks/Code/schema
msgid "Caption"
msgstr ""

#. Default: "Code Block"
#: components/Blocks/Code/schema
msgid "Code Block"
Expand Down
3 changes: 1 addition & 2 deletions packages/volto-code-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
},
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0",
"react-intl": "3.8.0"
"react-dom": "18.2.0"
},
"devDependencies": {
"@plone/scripts": "^3.6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const messages = defineMessages({
id: 'Description',
defaultMessage: 'Description',
},
caption: {
id: 'Caption',
defaultMessage: 'Caption',
},
});

export const codeSchema = (props) => {
Expand Down Expand Up @@ -73,7 +77,7 @@ export const codeSchema = (props) => {
},
{
id: 'caption',
title: 'Caption',
title: props.intl.formatMessage(messages.caption),
fields: ['caption_title', 'caption_description'],
},
],
Expand Down
4 changes: 3 additions & 1 deletion packages/volto-code-block/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ const applyConfig = (config) => {
);
}
});

config.settings.isMultilingual = true;
config.settings.supportedLanguages = ['de', 'en'];
config.settings.defaultLanguage = 'de';
return config;
};

Expand Down