Skip to content

Commit

Permalink
Fix language switcher in CKAN webpages
Browse files Browse the repository at this point in the history
  • Loading branch information
declandunne authored and amercader committed Feb 28, 2018
1 parent 6bbc360 commit 7314bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/templates/snippets/language_selector.html
Expand Up @@ -3,7 +3,7 @@
<label for="field-lang-select">{{ _('Language') }}</label>
<select id="field-lang-select" name="url" data-module="autocomplete" data-module-dropdown-class="lang-dropdown" data-module-container-class="lang-container">
{% for locale in h.get_available_locales() %}
<option value="{% url_for h.current_url(), locale=locale.short_name %}" {% if locale.identifier == current_lang %}selected="selected"{% endif %}>
<option value="{% url_for h.current_url(), locale=locale %}" {% if locale == current_lang %}selected="selected"{% endif %}>
{{ locale.display_name or locale.english_name }}
</option>
{% endfor %}
Expand Down

0 comments on commit 7314bc7

Please sign in to comment.