diff options
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" /> |
