From 29adb572a4dc4374038cc9f37a13ffeb93b955c8 Mon Sep 17 00:00:00 2001 From: Kerrin Hardy Date: Tue, 16 Oct 2018 23:02:04 +1030 Subject: [PATCH] Updated 'You cancelled your payment. You may try again.' to be translatable --- app/Http/Controllers/EventCheckoutController.php | 2 +- resources/lang/en/Event.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/EventCheckoutController.php b/app/Http/Controllers/EventCheckoutController.php index 633ccc32..12afa690 100644 --- a/app/Http/Controllers/EventCheckoutController.php +++ b/app/Http/Controllers/EventCheckoutController.php @@ -463,7 +463,7 @@ class EventCheckoutController extends Controller { if ($request->get('is_payment_cancelled') == '1') { - session()->flash('message', 'You cancelled your payment. You may try again.'); + session()->flash('message', trans('Event.payment_cancelled')); return response()->redirectToRoute('showEventCheckout', [ 'event_id' => $event_id, 'is_payment_cancelled' => 1, diff --git a/resources/lang/en/Event.php b/resources/lang/en/Event.php index b798c5af..86a55e65 100644 --- a/resources/lang/en/Event.php +++ b/resources/lang/en/Event.php @@ -32,6 +32,7 @@ return array ( 'no_events_yet_text' => 'Looks like you have yet to create an event. You can create one by clicking the button below.', 'num_events' => ':num Events', 'or(manual/existing_venue)' => 'or', + 'payment_cancelled' => 'You cancelled your payment. You may try again.', 'post_code' => 'Post Code', 'post_code_placeholder' => 'E.g: 94568.', 'promote' => 'Promote',