From 813582bf9de62d37c9e7ac73c73c8ae7be8f4b36 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 15 Dec 2020 10:27:50 +0100 Subject: [PATCH] translations for login page --- src/components/Blockly/msg/de.js | 9 ++++++--- src/components/Blockly/msg/en.js | 10 ++++++++-- src/components/User/Login.js | 14 +++++++------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/components/Blockly/msg/de.js b/src/components/Blockly/msg/de.js index b8df029..038843a 100644 --- a/src/components/Blockly/msg/de.js +++ b/src/components/Blockly/msg/de.js @@ -918,7 +918,7 @@ Blockly.Msg.button_create_variableCreate = "Erstelle Variable"; Blockly.Msg.button_back = "Zurück" Blockly.Msg.button_next = "nächster Schritt" Blockly.Msg.button_tutorial_overview = "Tutorial Übersicht" - +Blockly.Msg.button_login = "Anmelden" /** * @@ -957,6 +957,7 @@ Blockly.Msg.notfound_text = "Die gesuchte Seite wurde möglicherweise entfernt, Blockly.Msg.labels_donotshowagain = 'Dialog nicht mehr anzeigen' Blockly.Msg.labels_here = "hier" Blockly.Msg.labels_username = 'E-Mail oder Nutzername' +Blockly.Msg.labels_password = "Passwort" /** * Badges @@ -995,8 +996,10 @@ Blockly.Msg.builder_requirements_order = "Beachte, dass die Reihenfolge des Anha Blockly.Msg.login_head = "Anmelden" - - +Blockly.Msg.login_osem_account_01 = "Du benötigst einen " +Blockly.Msg.login_osem_account_02 = "Account um dich einzuloggen" +Blockly.Msg.login_lostpassword = "Du hast dein Passwort vergessen?" +Blockly.Msg.login_createaccount = "Falls du noch keinen Account hast erstellen einen auf " /** * Navbar */ diff --git a/src/components/Blockly/msg/en.js b/src/components/Blockly/msg/en.js index 393502f..a0a2724 100644 --- a/src/components/Blockly/msg/en.js +++ b/src/components/Blockly/msg/en.js @@ -850,7 +850,7 @@ Blockly.Msg.messages_newblockly_head = 'Welcome to the new version Blockly for t Blockly.Msg.messages_newblockly_text = "The new Blockly version is currently in testing. You can find all the news here:" Blockly.Msg.messages_GET_TUTORIAL_FAIL = 'Back to tutorials overview' Blockly.Msg.messages_LOGIN_FAIL = 'The username or password is incorrect.' - +Blockly.Msg.messages_login_error = "Enter both a username and a password." /** * Share Dialog */ @@ -885,7 +885,7 @@ Blockly.Msg.button_create_variableCreate = "Create Variable"; Blockly.Msg.button_back = "Back" Blockly.Msg.button_next = "Next step" Blockly.Msg.button_tutorial_overview = "Tutorial overview" - +Blockly.Msg.button_login = "Login" /** * @@ -907,6 +907,7 @@ Blockly.Msg.notfound_text = "The page you are looking for may have been removed, Blockly.Msg.labels_donotshowagain = 'Do not show dialog again' Blockly.Msg.labels_here = 'here' Blockly.Msg.labels_username = 'Email or username' +Blockly.Msg.labels_password = "Password" /** * Badges */ @@ -944,6 +945,11 @@ Blockly.Msg.builder_requirements_order = "Note that the order of ticking is auth Blockly.Msg.login_head = "Login" +Blockly.Msg.login_osem_account_01 = "You need to have an " +Blockly.Msg.login_osem_account_02 = "Account to login" +Blockly.Msg.login_lostpassword = "Lost your password?" +Blockly.Msg.login_createaccount = "If you don't have an openSenseMap account please register on " + /** diff --git a/src/components/User/Login.js b/src/components/User/Login.js index 75a4948..a84b30a 100644 --- a/src/components/User/Login.js +++ b/src/components/User/Login.js @@ -71,7 +71,7 @@ export class Login extends Component { }; this.props.login(user); } else { - this.setState({ snackbar: true, key: Date.now(), message: 'Gib sowohl ein Benutzername als auch ein Passwort ein.', type: 'error' }); + this.setState({ snackbar: true, key: Date.now(), message: Blockly.Msg.messages_login_error, type: 'error' }); } }; @@ -86,12 +86,12 @@ export class Login extends Component { render() { return (
- +

{Blockly.Msg.login_head}

- Zur Anmeldung ist ein Konto auf openSenseMap Voraussetzung. + {Blockly.Msg.login_osem_account_01} openSenseMap {Blockly.Msg.login_osem_account_02}. {this.props.progress ?
- : 'Anmelden'} + : Blockly.Msg.button_login}

- Passwort vergessen? + {Blockly.Msg.login_lostpassword}

- Du hast noch kein Konto? Registriere dich auf openSenseMap. + {Blockly.Msg.login_createaccount}openSenseMap.