Localization

This commit is contained in:
Roman 2022-12-09 14:54:28 +01:00
parent 87f7b44010
commit c0997e0224
6 changed files with 37 additions and 16 deletions

@ -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",

@ -7,6 +7,7 @@ return [
"Go back" => "Zurück",
"submitting" => "Übermittle",
"submit" => "Absenden",
"request" => "Anfordern",
"language" => "Sprache",
"loading" => "Laden",
"logout" => "Ausloggen",

@ -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",

@ -7,6 +7,7 @@ return [
"go_back" => "Go Back",
"submitting" => "Submitting",
"submit" => "Submit",
"request" => "Request",
"language" => "Language",
"loading" => "Loading",
"logout" => "Logout",

@ -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 %}
<div class="alert alert-danger" role="alert">{{ view.message }}</div>
<a href='/login' class='btn btn-primary'>Go back</a>
<a href='/login' class='btn btn-primary'>{{ L("general.go_back") }}</a>
{% else %}
<h4 class="pb-4">Please fill with your details</h4>
<h4 class="pb-4">{{ L("account.form_title") }}</h4>
<form>
<div class="input-group">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-hashtag"></i></span>
</div>
<input id="username" autocomplete='username' name="username" placeholder="Username" class="form-control" type="text" maxlength="32">
<input id="username" autocomplete='username' name="username"
placeholder="{{ L('account.username') }}" class="form-control" type="text" maxlength="32">
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-at"></i></span>
</div>
<input type="email" autocomplete='email' name='email' id='email' class="form-control" placeholder="Email" maxlength="64">
<input type="email" autocomplete='email' name='email' id='email'
class="form-control" placeholder="{{ L('account.email') }}" maxlength="64">
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" autocomplete='new-password' name='password' id='password' class="form-control" placeholder="Password">
<input type="password" autocomplete='new-password' name='password' id='password'
class="form-control" placeholder="{{ L('account.password') }}">
</div>
<div class="input-group mt-3">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-key"></i></span>
</div>
<input type="password" autocomplete='new-password' name='confirmPassword' id='confirmPassword' class="form-control" placeholder="Confirm Password">
<input type="password" autocomplete='new-password' name='confirmPassword'
id='confirmPassword' class="form-control" placeholder="{{ L('account.password_confirm') }}">
</div>
<div class="input-group mt-3">
<button type="button" class="btn btn-primary" id='btnRegister'>Submit</button>
<button type="button" class="btn btn-primary" id='btnRegister'>
{{ L('general.submit') }}
</button>
<a href='/login' style='margin-left: 10px'>
<button class='btn btn-secondary' type='button'>
Back to Login
{{ L('account.back_to_login') }}
</button>
</a>
</div>

@ -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 %}
<p class='lead'>Enter your E-Mail address, to receive a new e-mail to confirm your registration.</p>
<p class='lead'>
{{ L("account.resend_confirm_email_form_title") }}
</p>
<form>
<div class="input-group">
<div class="input-group-append">
<span class="input-group-text"><i class="fas fa-at"></i></span>
</div>
<input id="email" autocomplete='email' name="email" placeholder="E-Mail address" class="form-control" type="email" maxlength="64" />
<input id="email" autocomplete='email' name="email" placeholder="{{ L('account.email') }}"
class="form-control" type="email" maxlength="64" />
</div>
<div class="input-group mt-2" style='position: absolute;bottom: 15px'>
<button id='btnResendConfirmEmail' class='btn btn-primary'>
Request
{{ L('general.request') }}
</button>
<a href='/login' style='margin-left: 10px'>
<button class='btn btn-secondary' type='button'>
Back to Login
{{ L('account.back_to_login') }}
</button>
</a>
</div>