Opened 6 years ago

Last modified 5 years ago

#30241 closed Cleanup/optimization

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

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 (last modified by Nick Pope)

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.

Change History (1)

comment:1 by Nick Pope, 6 years ago

Description: modified (diff)
Has patch: set
Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top