diff options
| author | Tim Graham <timograham@gmail.com> | 2013-05-13 13:43:28 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-05-13 13:43:28 -0400 |
| commit | 897e4eab6531cdbaf27c1b2a6716c86eb6ee1f5d (patch) | |
| tree | fbe2377d031321133c09d9a50beb72131b559d1d /docs | |
| parent | b1f74670cc9b575571f8820cad800fdfd99e9258 (diff) | |
Fixed #20398 - Added language selection code to example in documentation
Thanks ggbaker for the suggestion and Simeon Visser for the patch.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/translation.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 2ce9d8d2bc..5b4ffea528 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -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" /> |
