Commit 897e4eab authored by Tim Graham's avatar Tim Graham
Browse files

Fixed #20398 - Added language selection code to example in documentation

Thanks ggbaker for the suggestion and Simeon Visser for the patch.
parent b1f74670
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1437,7 +1437,9 @@ Here's example HTML template code:
    <select name="language">
    {% get_language_info_list for LANGUAGES as languages %}
    {% for language in languages %}
    <option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option>
    <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>
        {{ language.name_local }} ({{ language.code }})
    </option>
    {% endfor %}
    </select>
    <input type="submit" value="Go" />