From 8f75bb8706a7474c40855689f8e9b33bb6c2ba83 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Tue, 31 Oct 2023 21:38:52 -0500 Subject: [PATCH] fix translation strings --- app/Http/Controllers/ReportsController.php | 10 +++++----- resources/lang/en/admin/reports/general.php | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 72e042db91..04e3c434eb 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -539,23 +539,23 @@ class ReportsController extends Controller } if ($request->filled('user_address')) { - $header[] = trans('general.user') .' '. trans('general.address'); + $header[] = trans('admin/reports/general.custom_export.user_address'); } if ($request->filled('user_city')) { - $header[] = trans('general.user') .' '. trans('general.city'); + $header[] = trans('admin/reports/general.custom_export.user_city'); } if ($request->filled('user_state')) { - $header[] = trans('general.user') .' '. trans('general.state'); + $header[] = trans('admin/reports/general.custom_export.user_state'); } if ($request->filled('user_country')) { - $header[] = trans('general.user') .' '. trans('general.country'); + $header[] = trans('admin/reports/general.custom_export.user_country'); } if ($request->filled('user_zip')) { - $header[] = trans('general.user') .' '. trans('general.zip'); + $header[] = trans('admin/reports/general.custom_export.user_zip'); } if ($request->filled('status')) { diff --git a/resources/lang/en/admin/reports/general.php b/resources/lang/en/admin/reports/general.php index 344d5c8743..9b682f8ecd 100644 --- a/resources/lang/en/admin/reports/general.php +++ b/resources/lang/en/admin/reports/general.php @@ -6,5 +6,12 @@ return [ 'send_reminder' => 'Send reminder', 'reminder_sent' => 'Reminder sent', 'acceptance_deleted' => 'Acceptance request deleted', - 'acceptance_request' => 'Acceptance request' + 'acceptance_request' => 'Acceptance request', + 'custom_export' => [ + 'user_address' => 'User Address', + 'user_city' => 'User City', + 'user_state' => 'User State', + 'user_country' => 'User Country', + 'user_zip' => 'User Zip' + ] ]; \ No newline at end of file