Opened 53 minutes ago
#37333 new Cleanup/optimization
Include language de_ch in language info
| Reported by: | Reto Fahrni | Owned by: | |
|---|---|---|---|
| Component: | Uncategorized | Version: | 6.1 |
| Severity: | Normal | Keywords: | l10n, localization |
| Cc: | Reto Fahrni | Triage Stage: | Unreviewed |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The language de_CH actually exists in conf/locale, but there is no language info in conf/locale/init.py.
Background: The automatic detection of the language fails if there is no entry in init.py. Additionally, providing a translated list of languages to the user is impossible without full manual override. The problems are described as well in https://code.djangoproject.com/ticket/32737. The problem was never solved since the requested languages were not official languages.
Since de_CH is an offical Django language, it should be ok to fix in the way proposed in https://github.com/django/django/pull/21100.
(Sorry, if this is not a proper ticket. I'm not (yet) used to provide input.)