mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-16 02:46:44 +02:00
fixed locale selector for no_NB
This commit is contained in:
parent
882a27f87c
commit
8c31699baf
@ -38,7 +38,7 @@
|
|||||||
<span class="badge badge-primary navbar-badge">{{ session['language'] }}</span></a>
|
<span class="badge badge-primary navbar-badge">{{ session['language'] }}</span></a>
|
||||||
<div class="dropdown-menu dropdown-menu-right p-0" id="mailu-languages">
|
<div class="dropdown-menu dropdown-menu-right p-0" id="mailu-languages">
|
||||||
{%- for locale in config.translations.values() %}
|
{%- for locale in config.translations.values() %}
|
||||||
<a class="dropdown-item{% if locale.language == session['language'] %} active{% endif %}" href="{{ url_for('sso.set_language', language=locale.language) }}">{{ locale.get_language_name().title() }}</a>
|
<a class="dropdown-item{% if locale|string() == session['language'] %} active{% endif %}" href="{{ url_for('sso.set_language', language=locale) }}">{{ locale.get_language_name().title() }}</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<span class="badge badge-primary navbar-badge">{{ session['language'] }}</span></a>
|
<span class="badge badge-primary navbar-badge">{{ session['language'] }}</span></a>
|
||||||
<div class="dropdown-menu dropdown-menu-right p-0" id="mailu-languages">
|
<div class="dropdown-menu dropdown-menu-right p-0" id="mailu-languages">
|
||||||
{%- for locale in config.translations.values() %}
|
{%- for locale in config.translations.values() %}
|
||||||
<a class="dropdown-item{% if locale.language == session['language'] %} active{% endif %}" href="{{ url_for('.set_language', language=locale.language) }}">{{ locale.get_language_name().title() }}</a>
|
<a class="dropdown-item{% if locale|string() == session['language'] %} active{% endif %}" href="{{ url_for('.set_language', language=locale) }}">{{ locale.get_language_name().title() }}</a>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user