diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2018-09-06 12:49:25 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2018-09-06 13:49:25 +0200 |
| commit | 570402ffd7efd529eb597d86525b80a6fbfca0e7 (patch) | |
| tree | 6c0c75d664f7715290682c5d82923f07aac4805c /docs/ref | |
| parent | ccf870ebf5a9f9b44711a08549833f97ef3f7a41 (diff) | |
Refs #29713 -- Improved error message from translation system check.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/checks.txt | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 734381e2b8..9c149d4650 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -85,8 +85,8 @@ Django's system checks are organized using the following tags: * ``signals``: Checks on signal declarations and handler registrations. * ``staticfiles``: Checks :mod:`django.contrib.staticfiles` configuration. * ``templates``: Checks template related configuration. +* ``translation``: Checks translation related configuration. * ``urls``: Checks URL configuration. -* ``translation``: Checks language formats used for translation. Some checks may be registered with multiple tags. @@ -427,6 +427,14 @@ configured: :setting:`OPTIONS <TEMPLATES-OPTIONS>` must be a string but got: ``{value}`` (``{type}``). +Translation +----------- + +The following checks are performed on your translation configuration: + +* **translation.E001**: You have provided an invalid value for the + :setting:`LANGUAGE_CODE` setting. + URLs ---- @@ -450,18 +458,6 @@ 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 ====================== |
