summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-06-28 10:25:46 -0400
committerTim Graham <timograham@gmail.com>2018-06-28 10:26:13 -0400
commit08c3581ca99620e6185ddfb8a76f29eb23b00e04 (patch)
tree10a2de2bddbda2e0b80b24d23e0f65868e2f5d99 /docs/topics
parent92dafc10e7f7ac6a8643451d420a9471710f3d81 (diff)
[2.1.x] Fixed links for i18n context processor docs.
Backport of fd06488fe36acc27fbe37bf7c9aefc0574e9cc4e from master
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/i18n/translation.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt
index 2fe1497cf1..34313034c8 100644
--- a/docs/topics/i18n/translation.txt
+++ b/docs/topics/i18n/translation.txt
@@ -845,7 +845,7 @@ If you want to select a language within a template, you can use the
While the first occurrence of "Welcome to our page" uses the current language,
the second will always be in English.
-.. _template-translation-vars:
+.. _i18n-template-tags:
Other tags
----------
@@ -880,8 +880,13 @@ locale's direction. If ``True``, it's a right-to-left language, e.g. Hebrew,
Arabic. If ``False`` it's a left-to-right language, e.g. English, French,
German, etc.
-If you enable the ``django.template.context_processors.i18n`` context processor
-then each ``RequestContext`` will have access to ``LANGUAGES``,
+.. _template-translation-vars:
+
+``i18n`` context processor
+~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+If you enable the :class:`django.template.context_processors.i18n` context
+processor, then each ``RequestContext`` will have access to ``LANGUAGES``,
``LANGUAGE_CODE``, and ``LANGUAGE_BIDI`` as defined above.
.. templatetag:: get_language_info