From c0997e02243d17ce5f5f5480f27a656e8f9db782 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 9 Dec 2022 14:54:28 +0100 Subject: [PATCH] Localization --- Core/Localization/de_DE/account.php | 5 ++++ Core/Localization/de_DE/general.php | 1 + Core/Localization/en_US/account.php | 5 ++++ Core/Localization/en_US/general.php | 1 + Core/Templates/account/register.twig | 26 ++++++++++++------- .../account/resend_confirm_email.twig | 15 ++++++----- 6 files changed, 37 insertions(+), 16 deletions(-) diff --git a/Core/Localization/de_DE/account.php b/Core/Localization/de_DE/account.php index 4f39612..a0135dc 100644 --- a/Core/Localization/de_DE/account.php +++ b/Core/Localization/de_DE/account.php @@ -8,6 +8,11 @@ return [ "accept_invite_description" => "Schließen Sie die Registrierung ab indem Sie ein Passwort wählen", "confirm_email_title" => "E-Mail Adresse bestätigen", "confirm_email_description" => "Schließen Sie die Registrierung ab indem Sie Ihre E-Mail Adresse bestätigen", + "registration_title" => "Registration", + "registration_description" => "Erstelle einen neuen Account", + "resend_confirm_email_title" => "Bestätigungsmail erneut senden", + "resend_confirm_email_description" => "Eine neue Bestätigungsmail anfordern um die Accounterstellung abzuschließen", + "resend_confirm_email_form_title" => "Geben Sie Ihre E-Mailadresse ein, um eine neue Bestätigungsmail zu erhalten", "form_title" => "Bitte geben Sie ihre Daten ein", "username" => "Benutzername", "username_or_email" => "Benutzername oder E-Mail", diff --git a/Core/Localization/de_DE/general.php b/Core/Localization/de_DE/general.php index 39fb684..e3e48fb 100644 --- a/Core/Localization/de_DE/general.php +++ b/Core/Localization/de_DE/general.php @@ -7,6 +7,7 @@ return [ "Go back" => "Zurück", "submitting" => "Übermittle", "submit" => "Absenden", + "request" => "Anfordern", "language" => "Sprache", "loading" => "Laden", "logout" => "Ausloggen", diff --git a/Core/Localization/en_US/account.php b/Core/Localization/en_US/account.php index 3020a26..7318a59 100644 --- a/Core/Localization/en_US/account.php +++ b/Core/Localization/en_US/account.php @@ -8,6 +8,11 @@ return [ "accept_invite_description" => "Complete your account registration by choosing a password", "confirm_email_title" => "Confirm Email", "confirm_email_description" => "Complete your registration by confirming the e-mail address", + "registration_title" => "Registration", + "registration_description" => "Create a new account", + "resend_confirm_email_title" => "Resend Confirm Email", + "resend_confirm_email_description" => "Request a new confirmation email to finalize the account creation", + "resend_confirm_email_form_title" => "Enter your E-Mail address, to receive a new e-mail to confirm your registration.", "form_title" => "Please fill with your details", "username" => "Username", "username_or_email" => "Username or E-Mail", diff --git a/Core/Localization/en_US/general.php b/Core/Localization/en_US/general.php index 35381b6..065df5b 100644 --- a/Core/Localization/en_US/general.php +++ b/Core/Localization/en_US/general.php @@ -7,6 +7,7 @@ return [ "go_back" => "Go Back", "submitting" => "Submitting", "submit" => "Submit", + "request" => "Request", "language" => "Language", "loading" => "Loading", "logout" => "Logout", diff --git a/Core/Templates/account/register.twig b/Core/Templates/account/register.twig index 58606f6..ec0e2e4 100644 --- a/Core/Templates/account/register.twig +++ b/Core/Templates/account/register.twig @@ -1,46 +1,52 @@ {% extends "account/account_base.twig" %} -{% set view_title = 'Registration' %} +{% set view_title = 'account.registration_title' %} {% set view_icon = 'user-plus' %} -{% set view_description = 'Create a new account' %} +{% set view_description = 'account.registration_description' %} {% block view_content %} {% if not view.success %} - Go back + {{ L("general.go_back") }} {% else %} -

Please fill with your details

+

{{ L("account.form_title") }}

- +
- +
- +
- +
- +
diff --git a/Core/Templates/account/resend_confirm_email.twig b/Core/Templates/account/resend_confirm_email.twig index 3bddc96..0e1ec59 100644 --- a/Core/Templates/account/resend_confirm_email.twig +++ b/Core/Templates/account/resend_confirm_email.twig @@ -1,25 +1,28 @@ {% extends "account/account_base.twig" %} -{% set view_title = 'Resend Confirm Email' %} +{% set view_title = 'account.resend_confirm_email_title' %} {% set view_icon = 'envelope' %} -{% set view_description = 'Request a new confirmation email to finalize the account creation' %} +{% set view_description = 'resend_confirm_email_description' %} {% block view_content %} -

Enter your E-Mail address, to receive a new e-mail to confirm your registration.

+

+ {{ L("account.resend_confirm_email_form_title") }} +

- +