Opened 6 years ago

Last modified 6 years ago

#30241 closed Cleanup/optimization

Add system checks to ensure correct configuration of translation settings. — at Initial Version

Reported by: Nick Pope Owned by: Nick Pope
Component: Core (System checks) Version: dev
Severity: Normal Keywords: translations, system checks, language tags
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top