mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-08 20:10:17 +02:00
- Remove unnecessary HTML tags - Remove unnecessary Bootstrap classes - Add title attributes - Make strings translatable
16 lines
604 B
HTML
16 lines
604 B
HTML
{% load i18n %}
|
|
|
|
<form class="dropdown-item" action="{% url 'set_language' %}" method="post">
|
|
{% csrf_token %}
|
|
|
|
<select class="form-select" onchange="this.form.submit()" class="form-control" id="lang-select" name="language">
|
|
{% get_available_languages as LANGUAGES %}
|
|
|
|
{% for lang_code, lang_name in LANGUAGES %}
|
|
<option lang="{{ lang_code }}" value="{{ lang_code }}"{% if lang_code == LANGUAGE_CODE %} selected{% endif %}>
|
|
{{ lang_code|language_name_local|capfirst }} ({{ lang_code }})
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</form>
|