diff templates/sat_website/menu.html @ 32:876ae5e23690

language selector doesn't display the language code and put the first letter un uppercase (even in French, normally no upper case but here it's the first word of a word group)
author souliane <souliane@mailoo.org>
date Tue, 27 Jan 2015 07:54:43 +0100
parents 30a1edf90fae
children
line wrap: on
line diff
--- a/templates/sat_website/menu.html	Tue Jan 27 07:52:33 2015 +0100
+++ b/templates/sat_website/menu.html	Tue Jan 27 07:54:43 2015 +0100
@@ -47,7 +47,7 @@
                 <select id="language_select" name="language">
                     {% get_language_info_list for available_languages as languages %}
                     {% for language in languages %}
-                        <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option>
+                        <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local|title }}</option>
                     {% endfor %}
                 </select>
             </form>