current language removed from choices (#6537)

This commit is contained in:
Serghei Mihai 2015-03-18 17:55:49 +01:00
parent 8f50958f55
commit 62383bf280
1 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,10 @@
</a>
<ul class="dropdown-menu ">
{% for locale in h.get_available_locales() %}
<li><a href="{% url_for current_url, locale=locale %}">{{ locale.display_name or locale.english_name }}</a></li>
{% for locale in h.get_available_locales() %}
{% if locale != current_lang %}
<li><a href="{% url_for current_url, locale=locale %}">{{ locale.display_name or locale.english_name }}</a></li>
{% endif %}
{% endfor %}
</li>
</ul>