From 5db8d617c0a5b16fabe16d1d52b2f9db519d8bb6 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 3 Sep 2018 18:43:55 +1000 Subject: Fixed #29713 -- Added check that LANGUAGE_CODE uses standard language id format. --- docs/ref/checks.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs') 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 ````. + 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 ====================== -- cgit v1.3