From 38bd530faee947bb23fffd4cc7d608e0650fbdac Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 24 Dec 2023 19:44:20 +0000 Subject: [PATCH] Update en defaults for controllers Signed-off-by: snipe --- app/Http/Controllers/ProfileController.php | 2 +- app/Http/Controllers/SettingsController.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index f3900eff25..2e81facc76 100755 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -56,7 +56,7 @@ class ProfileController extends Controller $user->phone = $request->input('phone'); if (! config('app.lock_passwords')) { - $user->locale = $request->input('locale', 'en'); + $user->locale = $request->input('locale', 'en-US'); } if ((Gate::allows('self.two_factor')) && ((Setting::getSettings()->two_factor_enabled == '1') && (! config('app.lock_passwords')))) { diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 989fe8c494..873d764a25 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -186,7 +186,7 @@ class SettingsController extends Controller $settings->alerts_enabled = 1; $settings->pwd_secure_min = 10; $settings->brand = 1; - $settings->locale = $request->input('locale', 'en'); + $settings->locale = $request->input('locale', 'en-US'); $settings->default_currency = $request->input('default_currency', 'USD'); $settings->user_id = 1; $settings->email_domain = $request->input('email_domain'); @@ -585,7 +585,7 @@ class SettingsController extends Controller } if (! config('app.lock_passwords')) { - $setting->locale = $request->input('locale', 'en'); + $setting->locale = $request->input('locale', 'en-US'); } $setting->default_currency = $request->input('default_currency', '$'); $setting->date_display_format = $request->input('date_display_format');