use the browsers language preferences instead of the settings page

This commit is contained in:
SJ
2012-09-21 20:13:41 +02:00
parent 3e0ad6da34
commit d68ffad8a6
5 changed files with 50 additions and 22 deletions

View File

@ -19,17 +19,6 @@
</div>
</div>
<div class="row">
<div class="cell1"><?php print $text_language; ?>:</div>
<div class="cell2">
<select name="lang">
<?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"><?php print $text_theme; ?>:</div>
<div class="cell2">