1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Updated user language select to use correct default

- Updated localisation system to take note of system defaul locale
before replacing the current locale
Fixes #1316
This commit is contained in:
Dan Brown
2019-03-07 21:09:23 +00:00
parent b273b9d6d0
commit 98a4359198
3 changed files with 4 additions and 3 deletions

View File

@ -38,8 +38,9 @@
<div class="form-group">
<label for="user-language">{{ trans('settings.users_preferred_language') }}</label>
<select name="setting[language]" id="user-language">
@foreach(trans('settings.language_select') as $lang => $label)
<option @if(setting()->getUser($user, 'language') === $lang) selected @endif value="{{ $lang }}">{{ $label }}</option>
<option @if(setting()->getUser($user, 'language', config('app.default_locale')) === $lang) selected @endif value="{{ $lang }}">{{ $label }}</option>
@endforeach
</select>
</div>