added language option to preferences

This commit is contained in:
SJ
2013-03-17 21:43:40 +01:00
parent 7ab1478655
commit 266003afb6
9 changed files with 27 additions and 4 deletions

View File

@ -79,6 +79,18 @@
</div>
</div>
<div class="row">
<div class="cell1"><?php print $text_language; ?>:</div>
<div class="cell2">
<select name="lang">
<option value=""><?php print $text_use_browser_settings; ?></option>
<?php foreach(Registry::get('langs') as $t) { ?>
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['lang']) && $_SESSION['lang'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="row">
<div class="cell1">&nbsp;</div>