Skip to content

A free open source IT asset/license management system

Use localization w/trans_choice

snipea96abeac5fe4
diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php
index bca72a911e..feca50ddd9 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)));
}
}