Skip to content

Commit

Permalink
Select the current language in the language selection box
Browse files Browse the repository at this point in the history
  • Loading branch information
e2jk committed Sep 19, 2012
1 parent e0e74d8 commit ea55e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flosstalks_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<select name="language" class="span2">
{% get_language_info_list for LANGUAGES as languages %}
{% for language in languages %}
<option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>{% endfor %}
<option value="{{ language.code }}"{%if language.code = LANGUAGE_CODE%} selected="selected"{%endif%}>{{ language.name_local }} ({{ language.code }})</option>{% endfor %}
</select>
<input type="submit" value="{%trans "Change language"%}" class="btn" />
</form>
Expand Down

0 comments on commit ea55e84

Please sign in to comment.