I'm trying to rewrite an example of i18n found on the network to another component. With the exact link to the combo.
An example found in the network looks
Example is:
<span style="float: right">
<a href="?lang=en">en</a>
|
<a href="?lang=de">de</a>
</span
My code
<from action="" method="get">
<select name="lang" id="lang" onchange="this.form.submit();">
<option value="de">DE</option>
<option value ="en">EN</option>
</select>
</form>
I came across a problem. When I change the language i18n starts correctly, but I do not know how to check the combo of the value of the parameter - lang. The upshot is that if you change the value in the combo and submicie form is presented in the initial value. Does anyone know how to solve this problem?