Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.5.x] Fixed #20398 - Added language selection code to example in do…

…cumentation

Thanks ggbaker for the suggestion and Simeon Visser for the patch.

Backport of 897e4ea from master
  • Loading branch information...
commit cac0f7b72e5d42239803df5338db03f1d19c22e6 1 parent a9703ed
@timgraham timgraham authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/topics/i18n/translation.txt
View
4 docs/topics/i18n/translation.txt
@@ -1409,7 +1409,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" />
Please sign in to comment.
Something went wrong with that request. Please try again.