Fix default locale available twice
This commit is contained in:
parent
db26c69ecd
commit
56e4f7e7ff
1 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,9 @@ $page->navigation();
|
||||||
<label><?= __('Language') ?></label>
|
<label><?= __('Language') ?></label>
|
||||||
|
|
||||||
<select class="ui search dropdown" name="user-locale">
|
<select class="ui search dropdown" name="user-locale">
|
||||||
<option value="<?= DEFAULT_LOCALE ?>"><?= \Locale::getDisplayName(DEFAULT_LOCALE, $user->locale) ?></option>
|
<?php if (!in_array('en', $locales)) { ?>
|
||||||
|
<option value="<?= 'en' ?>"><?= \Locale::getDisplayName('en', $user->locale) ?></option>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<?php foreach ($locales as $locale) { ?>
|
<?php foreach ($locales as $locale) { ?>
|
||||||
<?php if ($locale === $user->locale) { ?>
|
<?php if ($locale === $user->locale) { ?>
|
||||||
|
|
Loading…
Reference in a new issue