summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorDavid <david.anthony.lei@gmail.com>2018-09-03 18:43:55 +1000
committerCarlton Gibson <carlton.gibson@noumenal.es>2018-09-03 10:43:55 +0200
commit5db8d617c0a5b16fabe16d1d52b2f9db519d8bb6 (patch)
treef19bc95d9915224ca7522a3d4daeff0f2ee4856b /docs/ref
parentee52044a278885bd9455dd59b1e16c5d5e2d68ce (diff)
Fixed #29713 -- Added check that LANGUAGE_CODE uses standard language id format.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/checks.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index 42296f65c9..734381e2b8 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -86,6 +86,7 @@ Django's system checks are organized using the following tags:
* ``staticfiles``: Checks :mod:`django.contrib.staticfiles` configuration.
* ``templates``: Checks template related configuration.
* ``urls``: Checks URL configuration.
+* ``translation``: Checks language formats used for translation.
Some checks may be registered with multiple tags.
@@ -449,6 +450,18 @@ The following checks are performed on your URL configuration:
* **urls.E006**: The :setting:`MEDIA_URL`/ :setting:`STATIC_URL` setting must
end with a slash.
+Translation
+-----------
+
+The following checks are performed on your translation configuration:
+
+* **translation.E001**: LANGUAGE_CODE in settings.py is ``<language_code>``.
+ It should be in the form ll or ll-cc where ll is the language and cc is the
+ country. Examples include: ``it``, ``de-at``, ``es``, ``pt-br``. The full
+ set of language codes specifications is outlined by
+ https://en.wikipedia.org/wiki/IETF_language_tag#Syntax_of_language_tags
+
+
``contrib`` app checks
======================