mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed links for i18n context processor docs.
This commit is contained in:
parent
99157064a0
commit
fd06488fe3
2 changed files with 16 additions and 5 deletions
|
@ -690,14 +690,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``
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue