diff options
| author | Wim Feijen <wim@go2people.nl> | 2015-06-22 10:58:38 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-06-22 15:42:30 -0400 |
| commit | 7439039806038ce35d3a91f430037c667dcab051 (patch) | |
| tree | e66ebec5c84d2cd7b1ae1ab0a6c704fe4a6e2a99 /docs | |
| parent | 252867ed2aaec3e57dda08243a4603c8bffa7bb2 (diff) | |
[1.8.x] Updated indentation of example template in docs/topics/i18n/translation.txt.
Backport of 514b69cb9e1ec08f22f04a6a2ed29b130cb42258 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/i18n/translation.txt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index f9972ae6f7..9220cda737 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -1705,20 +1705,20 @@ Here's example HTML template code: .. code-block:: html+django {% load i18n %} - <form action="{% url 'set_language' %}" method="post"> - {% csrf_token %} - <input name="next" type="hidden" value="{{ redirect_to }}" /> - <select name="language"> - {% get_current_language as LANGUAGE_CODE %} - {% get_available_languages as LANGUAGES %} - {% get_language_info_list for 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> - {% endfor %} - </select> - <input type="submit" value="Go" /> + + <form action="{% url 'set_language' %}" method="post">{% csrf_token %} + <input name="next" type="hidden" value="{{ redirect_to }}" /> + <select name="language"> + {% get_current_language as LANGUAGE_CODE %} + {% get_available_languages as LANGUAGES %} + {% get_language_info_list for 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> + {% endfor %} + </select> + <input type="submit" value="Go" /> </form> In this example, Django looks up the URL of the page to which the user will be |
