summaryrefslogtreecommitdiff
path: root/docs/ref/templates/api.txt
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/ref/templates/api.txt
parent92dafc10e7f7ac6a8643451d420a9471710f3d81 (diff)
[2.1.x] Fixed links for i18n context processor docs.
Backport of fd06488fe36acc27fbe37bf7c9aefc0574e9cc4e from master
Diffstat (limited to 'docs/ref/templates/api.txt')
-rw-r--r--docs/ref/templates/api.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index 6ce34b0b20..41f6b5765f 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -696,14 +696,20 @@ the request's IP address (``request.META['REMOTE_ADDR']``) is in the
``django.template.context_processors.i18n``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-If this processor is enabled, every ``RequestContext`` will contain these two
+.. function:: i18n
+
+If this processor is enabled, every ``RequestContext`` will contain these
variables:
* ``LANGUAGES`` -- The value of the :setting:`LANGUAGES` setting.
+* ``LANGUAGE_BIDI`` -- ``True`` if the current language is a right-to-left
+ language, e.g. Hebrew, Arabic. ``False`` if it's a left-to-right language,
+ e.g. English, French, German.
* ``LANGUAGE_CODE`` -- ``request.LANGUAGE_CODE``, if it exists. Otherwise,
the value of the :setting:`LANGUAGE_CODE` setting.
-See :doc:`/topics/i18n/index` for more.
+See :ref:`i18n template tags <i18n-template-tags>` for template tags that
+generate the same values.
``django.template.context_processors.media``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~