#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
-------------------------------------+-------------------------------------
Comment (by Cup0fCoffee):
Hi, I thought of different solutions, and it seems to me like the one
proposed by Mariusz Felisiak is the most appropriate, so I've added a
[https://github.com/django/django/pull/14334 PR], in case the proposed
solutions gets accepted.
My only concern, is should the match be case sensitive or not? I.e. should
{{{zh-hant-HK}}} and {{{zh-hant-hk}}} match to {{{zh-Hant-HK}}}? I think,
the current implementation will not match them.
--
Ticket URL: <https://code.djangoproject.com/ticket/32479#comment:2>
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.78ed8890f759d4883ba3022866d7bcca%40djangoproject.com.