#30241: Add system checks to ensure correct configuration of translation 
settings.
-------------------------------------+-------------------------------------
     Reporter:  Nick Pope            |                    Owner:  Nick Pope
         Type:                       |                   Status:  assigned
  Cleanup/optimization               |
    Component:  Core (System         |                  Version:  master
  checks)                            |
     Severity:  Normal               |               Resolution:
     Keywords:  translations,        |             Triage Stage:
  system checks, language tags       |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Nick Pope):

 * needs_better_patch:  0 => 1
 * has_patch:  0 => 1


Old description:

> Following on from #29713 which added `translation.E001` to check
> `LANGUAGE_CODE`, I proposed the following:;
>
> - `translation.E002`: `'You have provided an invalid language code in the
> LANGUAGES setting: {}.'`
> - `translation.E003`: `'You have provided an invalid language code in the
> LANGUAGES_BIDI setting: {}.'`
> - `translation.E004`: `'You have provided a value for the LANGUAGE_CODE
> setting that is not in the LANGUAGES setting.'`
> - `translation.W005`: `'You have provided values in the LANGUAGE_BIDI
> setting that are not in the LANGUAGES setting.'`
>
> Note `W005` instead of `E005` - this case can simply be a warning because
> it will not cause things to go wrong, but highlights a potential
> configuration issue.

New description:

 Following on from #29713 which added `translation.E001` to check
 `LANGUAGE_CODE`, I proposed the following:;

 - `translation.E002`: `'You have provided an invalid language code in the
 LANGUAGES setting: {}.'`
 - `translation.E003`: `'You have provided an invalid language code in the
 LANGUAGES_BIDI setting: {}.'`
 - `translation.E004`: `'You have provided a value for the LANGUAGE_CODE
 setting that is not in the LANGUAGES setting.'`
 - `translation.W005`: `'You have provided values in the LANGUAGES_BIDI
 setting that are not in the LANGUAGES setting.'`

 Note `W005` instead of `E005` - this case can simply be a warning because
 it will not cause things to go wrong, but highlights a potential
 configuration issue.

--

Comment:

 [https://github.com/django/django/pull/11060 PR]

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30241#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.1457dc0c060c2f915954ccc37a5f3466%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to