#31141 closed Bug (fixed)
translation.E004 shouldn't be raised on sublanguages when a base language is available.
Reported by: | Enrique Matías Sánchez | Owned by: | Mariusz Felisiak |
---|---|---|---|
Component: | Core (System checks) | Version: | 3.0 |
Severity: | Release blocker | Keywords: | |
Cc: | pope1ni | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
According to Django documentation:
If a base language is available but the sublanguage specified is not, Django uses the base language. For example, if a user specifies de-at (Austrian German) but Django only has de available, Django uses de.
However, when using Django 3.0.2, if my settings.py has
LANGUAGE_CODE = "de-at"
I get this error message:
SystemCheckError: System check identified some issues: ERRORS: ?: (translation.E004) You have provided a value for the LANGUAGE_CODE setting that is not in the LANGUAGES setting.
If using
LANGUAGE_CODE = "es-ar"
Django works fine (es-ar is one of the translations provided out of the box).
Change History (5)
comment:1 by , 5 years ago
Cc: | added |
---|---|
Component: | Internationalization → Core (System checks) |
Severity: | Normal → Release blocker |
Summary: | Language does not fall back to base language if LANGUAGE_CODE not in LANGUAGES → translation.E004 shouldn't be raised on sublanguages when a base language is available. |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
Thanks for this report.
Regression in 4400d8296d268f5a8523cd02ddc33b12219b2535.