summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWim Feijen <wim@go2people.nl>2015-06-22 10:58:38 +0200
committerTim Graham <timograham@gmail.com>2015-06-22 15:42:09 -0400
commit514b69cb9e1ec08f22f04a6a2ed29b130cb42258 (patch)
treef8bd06e4d9708364d60e551fb5bf5d1c6227cb83 /docs
parentf1635ba4332391502fbdb8b7a54e151b68fc35ce (diff)
Updated indentation of example template in docs/topics/i18n/translation.txt.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n/translation.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index e52adf034a..8bc5602209 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -1738,20 +1738,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