From 6ac921bab097f682e6bcd006b5c1bd32c327d7fd Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Thu, 7 Mar 2019 22:24:46 +0000 Subject: [PATCH] [2.2.x] Refs #1660 -- Doc'd the LANGUAGES_BIDI setting. Backport of 07daa487aeb7d41d69d7d1cf9d4b3648e299e4ac from master --- docs/ref/settings.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 5ad7846d6a..ec733b6bef 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1851,6 +1851,25 @@ Here's a sample settings file:: ('en', _('English')), ] +.. setting:: LANGUAGES_BIDI + +``LANGUAGES_BIDI`` +------------------ + +Default: A list of all language codes from the :setting:`LANGUAGES` setting +that are written right-to-left. You can see the current list of these languages +by looking in ``django/conf/global_settings.py`` (or view the `online +source`_). + +.. _online source: https://github.com/django/django/blob/master/django/conf/global_settings.py + + +The list contains :term:`language codes` for languages that are +written right-to-left. + +Generally, the default value should suffice. Only set this setting if you want +to restrict language selection to a subset of the Django-provided languages. + .. setting:: LOCALE_PATHS ``LOCALE_PATHS`` @@ -3413,6 +3432,7 @@ Globalization (``i18n``/``l10n``) * :setting:`LANGUAGE_COOKIE_NAME` * :setting:`LANGUAGE_COOKIE_PATH` * :setting:`LANGUAGES` +* :setting:`LANGUAGES_BIDI` * :setting:`LOCALE_PATHS` * :setting:`MONTH_DAY_FORMAT` * :setting:`NUMBER_GROUPING`