{% load i18n %}
<div id="utility_lang">
    {% for lang in languages %}        
        {% if not forloop.first %}
            {%if mod.separator %}
                <span class = "lang_separator">
                    {{mod.separator}}
                </span>
            {%endif%}
        {% endif %}
        <form class="upy_lan_form_string" id = "form_change_language_{{lang.code}}" action="/i18n/setlang/" method="post">{% csrf_token %}
	        <input name="language" type="hidden" value="{{lang.code}}" />
	        {% if mod.redirect_to %}
	        <input type="hidden" name="next" value="{{mod.redirect_to}}" />
	        {% endif %}
	        <input type="submit" {% if mod.current_disabled and lang.code == LANGUAGE_CODE %}disabled="disabled"{% endif %} value="{{lang.alias}}" />
    	</form>
    {% endfor %}
</div>

