Use localization w/trans_choice

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-04-08 15:12:58 +01:00
parent 420278c63b
commit a96abeac5f

View file

@ -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)));
}
}