From c42d8723b0e0cc0f2c1b2f6da25d991cca9392c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87OBAN?= Date: Mon, 21 May 2018 15:26:19 +0300 Subject: [PATCH] password reset translation --- app/Notifications/Auth/Reset.php | 6 +++--- resources/lang/en-GB/auth.php | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/Notifications/Auth/Reset.php b/app/Notifications/Auth/Reset.php index acb7adca2..7353221f1 100644 --- a/app/Notifications/Auth/Reset.php +++ b/app/Notifications/Auth/Reset.php @@ -46,8 +46,8 @@ class Reset extends Notification setting(['general.company_name' => config('app.name')]); return (new MailMessage) - ->line('You are receiving this email because we received a password reset request for your account.') - ->action('Reset Password', url('auth/reset', $this->token, true)) - ->line('If you did not request a password reset, no further action is required.'); + ->line(trans('auth.notification.message_1')) + ->action(trans('auth.notification.button'), url('auth/reset', $this->token, true)) + ->line(trans('auth.notification.message_2')); } } diff --git a/resources/lang/en-GB/auth.php b/resources/lang/en-GB/auth.php index d739ca0cd..9d34bb4f8 100644 --- a/resources/lang/en-GB/auth.php +++ b/resources/lang/en-GB/auth.php @@ -27,4 +27,10 @@ return [ 'disabled' => 'This account is disabled. Please, contact the system administrator.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + 'notification' => [ + 'message_1' => 'You are receiving this email because we received a password reset request for your account.', + 'message_2' => 'If you did not request a password reset, no further action is required.', + 'button' => 'Reset Password', + ], + ];