Make list of locales working

This commit is contained in:
leosw
2018-10-18 22:18:33 +02:00
parent 604e42d323
commit b8295bb66f
3 changed files with 50 additions and 4 deletions

View File

@@ -43,8 +43,8 @@
<li><label for="password">Mot de passe :</label><input name="password" id="password" type="password" placeholder="Nouveau mot de passe"></li>
<li><label for="locale">Langue :</label>
<select name="locale" id="locale">
<? foreach($config['locales'] as $locale) { ?>
<option <?=$userProfile->locale==$locale[0]?'selected':''?> value="<?=$locale[0]?>"><?=$locale[5]?></option>
<? foreach($locales->objs as $locale) { ?>
<option <?=$userProfile->get_locale()==$locale->display_name?'selected':''?> value="<?=$locale->get_name()?>"><?=$locale->display_name?></option>
<? } ?>
</select></li>
<? if($user->rankIsHigher("administrator")) { ?>