diff --git a/app/Notifications/ResetPassword.php b/app/Notifications/ResetPassword.php index 646030a10..affd8f076 100644 --- a/app/Notifications/ResetPassword.php +++ b/app/Notifications/ResetPassword.php @@ -43,8 +43,9 @@ class ResetPassword extends Notification public function toMail() { return (new MailMessage) - ->line('You are receiving this email because we received a password reset request for your account.') - ->action('Reset Password', baseUrl('password/reset/' . $this->token)) - ->line('If you did not request a password reset, no further action is required.'); + ->subject(trans('auth.email_reset_subject', ['appName' => setting('app-name')])) + ->line(trans('auth.email_reset_text')) + ->action(trans('auth.reset_password'), baseUrl('password/reset/' . $this->token)) + ->line(trans('auth.email_reset_not_requested')); } } diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php index ffdb1cf45..5e364799d 100644 --- a/resources/lang/en/auth.php +++ b/resources/lang/en/auth.php @@ -14,7 +14,41 @@ return [ 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', /** - * Email Confirmation Text + * Login & Register + */ + 'sign_up' => 'Sign up', + 'log_in' => 'Log in', + + 'name' => 'Name', + 'username' => 'Username', + 'email' => 'Email', + 'password' => 'Password', + 'password_confirm' => 'Confirm Password', + 'password_hint' => 'Must be over 5 characters', + 'forgot_password' => 'Forgot Password?', + 'remember_me' => 'Remember Me', + 'ldap_email_hint' => 'Please enter an email to use for this account.', + 'create_account' => 'Create Account', + 'social_login' => 'Social Login', + 'social_registration' => 'Social Registration', + 'social_registration_text' => 'Register and sign in using another service.', + + 'register_thanks' => 'Thanks for registering!', + 'register_confirm' => 'Please check your email and click the confirmation button to access :appName.', + + /** + * Password Reset + */ + 'reset_password' => 'Reset Password', + 'reset_password_send_instructions' => 'Enter your email below and you will be sent an email with a password reset link.', + 'reset_password_send_button' => 'Send Reset Link', + + 'email_reset_subject' => 'Reset your :appName password', + 'email_reset_text' => 'You are receiving this email because we received a password reset request for your account.', + 'email_reset_not_requested' => 'If you did not request a password reset, no further action is required.', + + /** + * Email Confirmation */ 'email_confirm_subject' => 'Confirm your email on :appName', 'email_confirm_greeting' => 'Thanks for joining :appName!', @@ -23,4 +57,10 @@ return [ 'email_confirm_send_error' => 'Email confirmation required but the system could not send the email. Contact the admin to ensure email is set up correctly.', 'email_confirm_success' => 'Your email has been confirmed!', 'email_confirm_resent' => 'Confirmation email resent, Please check your inbox.', + + 'email_not_confirmed' => 'Email Address Not Confirmed', + 'email_not_confirmed_text' => 'Your email address has not yet been confirmed.', + 'email_not_confirmed_click_link' => 'Please click the link in the email that was sent shortly after you registered.', + 'email_not_confirmed_resend' => 'If you cannot find the email you can re-send the confirmation email by submitting the form below.', + 'email_not_confirmed_resend_button' => 'Resend Confirmation Email', ]; \ No newline at end of file diff --git a/resources/views/auth/forms/login/ldap.blade.php b/resources/views/auth/forms/login/ldap.blade.php index 5230d43ca..b52b5f13e 100644 --- a/resources/views/auth/forms/login/ldap.blade.php +++ b/resources/views/auth/forms/login/ldap.blade.php @@ -1,19 +1,19 @@
- + @include('form/text', ['name' => 'username', 'tabindex' => 1])
@if(session('request-email', false) === true)
- + @include('form/text', ['name' => 'email', 'tabindex' => 1]) - Please enter an email to use for this account. + {{ trans('auth.ldap_email_hint') }}
@endif
- + @include('form/password', ['name' => 'password', 'tabindex' => 2])
\ No newline at end of file diff --git a/resources/views/auth/forms/login/standard.blade.php b/resources/views/auth/forms/login/standard.blade.php index abefd21a1..4ea1f35ba 100644 --- a/resources/views/auth/forms/login/standard.blade.php +++ b/resources/views/auth/forms/login/standard.blade.php @@ -1,10 +1,10 @@
- + @include('form/text', ['name' => 'email', 'tabindex' => 1])
- + @include('form/password', ['name' => 'password', 'tabindex' => 2]) - Forgot Password? + {{ trans('auth.forgot_password') }}
\ No newline at end of file diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 4fa97c1d5..295d1a801 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -2,7 +2,7 @@ @section('header-buttons') @if(setting('registration-enabled', false)) - Sign up + {{ trans('auth.sign_up') }} @endif @stop @@ -10,7 +10,7 @@
-

Log In

+

{{ title_case(trans('auth.log_in')) }}

{!! csrf_field() !!} @@ -19,20 +19,20 @@ @include('auth/forms/login/' . $authMethod)
- +
- +
@if(count($socialDrivers) > 0)
-

Social Login

+

{{ trans('auth.social_login') }}

@if(isset($socialDrivers['google'])) @endif diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php index 115785ab2..07bd2c383 100644 --- a/resources/views/auth/passwords/email.blade.php +++ b/resources/views/auth/passwords/email.blade.php @@ -1,9 +1,9 @@ @extends('public') @section('header-buttons') - Sign in + {{ trans('auth.log_in') }} @if(setting('registration-enabled')) - Sign up + {{ trans('auth.sign_up') }} @endif @stop @@ -12,20 +12,20 @@
-

Reset Password

+

{{ trans('auth.reset_password') }}

-

Enter your email below and you will be sent an email with a password reset link.

+

{{ trans('auth.reset_password_send_instructions') }}

{!! csrf_field() !!}
- + @include('form/text', ['name' => 'email'])
- +
diff --git a/resources/views/auth/passwords/reset.blade.php b/resources/views/auth/passwords/reset.blade.php index 612b50ff8..fef9ad476 100644 --- a/resources/views/auth/passwords/reset.blade.php +++ b/resources/views/auth/passwords/reset.blade.php @@ -1,9 +1,9 @@ -@extends('public') +1@extends('public') @section('header-buttons') - Sign in + {{ trans('auth.log_in') }} @if(setting('registration-enabled')) - Sign up + {{ trans('auth.sign_up') }} @endif @stop @@ -14,29 +14,29 @@
-

Reset Password

+

{{ trans('auth.reset_password') }}

{!! csrf_field() !!}
- + @include('form/text', ['name' => 'email'])
- + @include('form/password', ['name' => 'password'])
- + @include('form/password', ['name' => 'password_confirmation'])
- +
diff --git a/resources/views/auth/register-confirm.blade.php b/resources/views/auth/register-confirm.blade.php index 97fd65ab5..364df9266 100644 --- a/resources/views/auth/register-confirm.blade.php +++ b/resources/views/auth/register-confirm.blade.php @@ -2,7 +2,7 @@ @section('header-buttons') @if(!$signedIn) - Sign in + {{ trans('auth.log_in') }} @endif @stop @@ -10,10 +10,9 @@
-

Thanks for registering!

-

Please check your email and click the confirmation button to access {{ setting('app-name', 'BookStack') }}.

+

{{ trans('auth.register_thanks') }}

+

{{ trans('auth.register_confirm', ['appName' => setting('app-name')]) }}

- @stop diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 8ae5fcf50..7a119ddba 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -1,42 +1,42 @@ @extends('public') @section('header-buttons') - Sign in + {{ trans('auth.log_in') }} @stop @section('content')
-

Sign Up

+

{{ title_case(trans('auth.sign_up')) }}

{!! csrf_field() !!}
- + @include('form/text', ['name' => 'name'])
- + @include('form/text', ['name' => 'email'])
- - @include('form/password', ['name' => 'password', 'placeholder' => 'Must be over 5 characters']) + + @include('form/password', ['name' => 'password', 'placeholder' => trans('auth.password_hint')])
- +
@if(count($socialDrivers) > 0)
-

Social Registration

-

Register and sign in using another service.

+

{{ trans('auth.social_registration') }}

+

{{ trans('auth.social_registration_text') }}

@if(isset($socialDrivers['google'])) @endif diff --git a/resources/views/auth/user-unconfirmed.blade.php b/resources/views/auth/user-unconfirmed.blade.php index 08178e891..13567b412 100644 --- a/resources/views/auth/user-unconfirmed.blade.php +++ b/resources/views/auth/user-unconfirmed.blade.php @@ -4,16 +4,16 @@
-

Email Address not confirmed

-

Your email address has not yet been confirmed.
- Please click the link in the email that was sent shortly after you registered.
- If you cannot find the email you can re-send the confirmation email by submitting the form below. +

{{ trans('auth.email_not_confirmed') }}

+

{{ trans('auth.email_not_confirmed_text') }}
+ {{ trans('auth.email_not_confirmed_click_link') }}
+ {{ trans('auth.email_not_confirmed_resend') }}


{!! csrf_field() !!}
- + @if(auth()->check()) @include('form/text', ['name' => 'email', 'model' => auth()->user()]) @else @@ -21,7 +21,7 @@ @endif
- +
diff --git a/resources/views/vendor/notifications/email-plain.blade.php b/resources/views/vendor/notifications/email-plain.blade.php index acefa6523..79634b611 100644 --- a/resources/views/vendor/notifications/email-plain.blade.php +++ b/resources/views/vendor/notifications/email-plain.blade.php @@ -19,4 +19,4 @@ if (! empty($outroLines)) { } echo 'Regards,', "\n"; -echo config('app.name'), "\n"; +echo setting('app-name'), "\n";