From a96abeac5fe407b5362645a62fb2512503caf9a3 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 8 Apr 2025 15:12:58 +0100 Subject: [PATCH] Use localization w/trans_choice Signed-off-by: snipe --- app/Http/Controllers/SettingsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index bca72a911..feca50ddd 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -325,9 +325,9 @@ class SettingsController extends Controller // check for inconsistencies when activating scoped locations if ($old_locations_fmcs == '0' && $setting->scope_locations_fmcs == '1') { - $ret = Helper::test_locations_fmcs(false); - if (count($ret) != 0) { - return redirect()->back()->withInput()->with('error', 'Inconsistencies with scoped locations found, please use php artisan snipeit:test-locations-fmcs for details'); + $mismatched = Helper::test_locations_fmcs(false); + if (count($mismatched) != 0) { + return redirect()->back()->withInput()->with('error', trans_choice('admin/settings/message.location_scoping.mismatch', count($mismatched))); } }