From bf5d4058aded96e5ec0b21ad4ced8e2d38ac96fa Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Tue, 1 Sep 2020 01:01:32 +0100 Subject: [PATCH] Add auth localization options --- resources/lang/en/messages.php | 31 +++++++++++++ resources/views/auth/2fa.blade.php | 10 ++--- resources/views/auth/login.blade.php | 16 +++---- resources/views/auth/register.blade.php | 44 +++++++++---------- .../views/breadcrumbs/auth/main.blade.php | 2 +- 5 files changed, 67 insertions(+), 36 deletions(-) diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php index 0c28265..e8a6ecc 100644 --- a/resources/lang/en/messages.php +++ b/resources/lang/en/messages.php @@ -60,5 +60,36 @@ EOT, // ======================== AUTHENTICATION MESSAGES =========================== + '2fa_txt' => 'Two-Factor Authentication', + '2fa_sronly' => 'Two-factor secret code (You can find this on Google Authenticator)', + '2fa_lostcode' => 'Don\'t know the code?', + '2fa_cancel_login' => 'Cancel login (logout)', + + 'terms' => 'Terms of Use', + 'ppolicy' => 'Privacy Policy', + + 'signin_cta' => 'Sign into your account', + 'password' => 'Password', + 'remember_me' => 'Remember me', + 'forgot_pw' => 'Forgot password?', + 'register_cta' => 'Register here', + 'no_acc' => 'Don\'t have an account?', + 'register_acc' => 'Register a new account', + 'pwsec' => [ + 'line1' => 'Basic password security', + 'line2' => 'For your security, we implement strict password policies. It\'s also advisable to let your password manager or browser generate and save passwords for you (if it\'s a private device).', + 'line3' => 'Passwords must be a combination of: ', + 'line4' => 'A minimum of 10 characters;', + 'line5' => 'At least 3 uppercase characters;', + 'line6' => 'At least 3 numbers;', + 'line7' => 'Any number of special characters.' + ], + 'sronly_confirmpassword' => 'Confirm Password', // hint: sronly stands for screen-reader only + 'sronly_mcusername' => 'Minecraft Username (Premium)', + 'have_account' => 'Have an account with us?', + 'login_here' => 'Login here', + 'register_txt' => 'Register', + + // ===================== DASHBOARD & COMPONENT MESSAGES =========================== ]; diff --git a/resources/views/auth/2fa.blade.php b/resources/views/auth/2fa.blade.php index 43d515e..07570f6 100644 --- a/resources/views/auth/2fa.blade.php +++ b/resources/views/auth/2fa.blade.php @@ -13,19 +13,19 @@
{{ config('adminlte.logo') }}
-

Two-factor Authentication

+

{{__('messages.2fa_txt')}}

@csrf
- +
- + diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 85fa936..ec69b70 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -13,28 +13,28 @@
{{ config('adminlte.logo') }}
-

Sign into your account

+

{{__('messages.signin_cta')}}

@csrf
- +
- +
- +
- Forgot password? - + {{__('messages.forgot_pw')}} + diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 8458eed..8170367 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -13,57 +13,57 @@
{{ config('adminlte.logo') }}
-

Register a new account

+

{{__('messages.register_acc')}}

× -

Basic password security

-

For your security, we implement strict password policies. It's also advisable to let your password manager or browser generate and save passwords for you (if it's a private device).

+

{{__('messages.pwsec.line1')}}

+

{{__('messages.pwsec.line2')}}

-

Passwords must be a combination of:

+

{{__('messages.pwsec.line3')}}

@csrf
- - +
- - + +
- - {{__('messages.password')}} +
- - + +
- - + +
- +
- + diff --git a/resources/views/breadcrumbs/auth/main.blade.php b/resources/views/breadcrumbs/auth/main.blade.php index 0e3ed4b..e41e288 100644 --- a/resources/views/breadcrumbs/auth/main.blade.php +++ b/resources/views/breadcrumbs/auth/main.blade.php @@ -4,7 +4,7 @@ - {{ config('app.name') . '| ID' }} + {{ config('app.name') . ' | ID' }}