mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 01:41:14 -06:00
Add sort to language.
This commit is contained in:
parent
a478d1b544
commit
4334928fbd
@ -86,13 +86,14 @@ class PreferencesController extends Controller
|
||||
$viewRange = $viewRangePref->data;
|
||||
$frontPageAccounts = app('preferences')->get('frontPageAccounts', $accountIds);
|
||||
$language = app('preferences')->get('language', config('firefly.default_language', 'en_US'))->data;
|
||||
$languages = config('firefly.languages');
|
||||
$listPageSize = app('preferences')->get('listPageSize', 50)->data;
|
||||
$customFiscalYear = app('preferences')->get('customFiscalYear', 0)->data;
|
||||
$fiscalYearStartStr = app('preferences')->get('fiscalYearStart', '01-01')->data;
|
||||
$fiscalYearStart = date('Y') . '-' . $fiscalYearStartStr;
|
||||
$tjOptionalFields = app('preferences')->get('transaction_journal_optional_fields', [])->data;
|
||||
|
||||
ksort($language);
|
||||
ksort($languages);
|
||||
|
||||
// an important fallback is that the frontPageAccount array gets refilled automatically
|
||||
// when it turns up empty.
|
||||
@ -106,6 +107,7 @@ class PreferencesController extends Controller
|
||||
'language',
|
||||
'groupedAccounts',
|
||||
'frontPageAccounts',
|
||||
'languages',
|
||||
'tjOptionalFields',
|
||||
'viewRange',
|
||||
'customFiscalYear',
|
||||
|
@ -30,7 +30,7 @@
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<select class="form-control" id="lang_holder" name="language">
|
||||
{% for key, lang in Config.get('firefly.languages') %}
|
||||
{% for key, lang in languages %}
|
||||
<option {% if language == key %}
|
||||
selected
|
||||
{% endif %} value="{{ key }}">{{ lang.name_locale }} ({{ lang.name_english }})</option>
|
||||
|
Loading…
Reference in New Issue
Block a user