Skip to content

Commit

Permalink
fix translation strings
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerrlongg committed Nov 1, 2023
1 parent 5073c33 commit 8f75bb8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/Http/Controllers/ReportsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,23 +539,23 @@ public function postCustom(CustomAssetReportRequest $request)
}

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')) {
Expand Down
9 changes: 8 additions & 1 deletion resources/lang/en/admin/reports/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@
'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'
]
];

0 comments on commit 8f75bb8

Please sign in to comment.