* remember installation language on first step (welcome)

This commit is contained in:
slawkens 2019-04-19 22:49:54 +02:00
parent 5f22ab0361
commit 0d5b9c2f98
2 changed files with 4 additions and 3 deletions

View File

@ -18,10 +18,11 @@ else {
$locales[] = array('id' => $tmp_locale, 'name' => $locale['name']);
}
}
$twig->display('install.welcome.html.twig', array(
'locales' => $locales,
'locale' => $locale,
'cookie_locale' => @$_COOKIE['locale'],
'buttons' => next_buttons(false, true)
));
}
?>
}

View File

@ -3,7 +3,7 @@
<div class="input"><p>{{ locale.step_welcome_desc }}</p>
<select name="lang">
{% for locale_ in locales %}
<option value="{{ locale_.id }}">{{ locale_.name }}</option>
<option value="{{ locale_.id }}"{% if cookie_locale == locale_.id %} selected{% endif %}>{{ locale_.name }}</option>
{% endfor %}
</select>
</div>