mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* remember installation language on first step (welcome)
This commit is contained in:
parent
5f22ab0361
commit
0d5b9c2f98
@ -18,10 +18,11 @@ else {
|
|||||||
$locales[] = array('id' => $tmp_locale, 'name' => $locale['name']);
|
$locales[] = array('id' => $tmp_locale, 'name' => $locale['name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$twig->display('install.welcome.html.twig', array(
|
$twig->display('install.welcome.html.twig', array(
|
||||||
'locales' => $locales,
|
'locales' => $locales,
|
||||||
'locale' => $locale,
|
'locale' => $locale,
|
||||||
|
'cookie_locale' => @$_COOKIE['locale'],
|
||||||
'buttons' => next_buttons(false, true)
|
'buttons' => next_buttons(false, true)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
?>
|
|
@ -3,7 +3,7 @@
|
|||||||
<div class="input"><p>{{ locale.step_welcome_desc }}</p>
|
<div class="input"><p>{{ locale.step_welcome_desc }}</p>
|
||||||
<select name="lang">
|
<select name="lang">
|
||||||
{% for locale_ in locales %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user