#30241: Add system checks to ensure correct configuration of translation settings. -------------------------------------+------------------------------------- Reporter: Nick Pope | Owner: Nick Pope Type: | Status: assigned Cleanup/optimization | Component: Core | Version: master (System checks) | Keywords: translations, Severity: Normal | system checks, language tags Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- 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. -- Ticket URL: <https://code.djangoproject.com/ticket/30241> 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/050.0efe668dcf6d145d645e2eb07156f098%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.