#32479: LocaleMiddleware not recognising properly zh-Hant-HK from the accept-
language header
-------------------------------------+-------------------------------------
Reporter: Marco Passeri | Owner: nobody
Type: Bug | Status: new
Component: | Version: 2.2
Internationalization |
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage: Accepted
internationalization, locale |
middleware |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* cc: Claude Paroz (added)
* stage: Unreviewed => Accepted
Comment:
Thanks for this ticket, as far as I'm aware `zh-Hant-HK` is a valid
language tag (see [http://www.iana.org/assignments/language-subtag-
registry/language-subtag-registry Language Subtag Registry]), we should
probably add `zh-Hant-HK` and others to fallbacks:
- `zh-hans`: `zh-Hans-CN`, `zh-Hans-HK`, `zh-Hans-MO`, `zh-Hans-SG`, `zh-
Hans-TW`,
- `zh-hant`: `zh-Hant-CN`, `zh-Hant-HK`, `zh-Hant-MO`, `zh-Hant-SG`, `zh-
Hant-TW`.
What do you think Claude?
--
Ticket URL: <https://code.djangoproject.com/ticket/32479#comment:1>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.557d1c8dc4fe6822a2f5464ac99d6b78%40djangoproject.com.