#32479: LocaleMiddleware not recognising properly zh-Hant-HK from the accept-
language header
-------------------------------------+-------------------------------------
               Reporter:  mpasseri   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  2.2
  Internationalization               |       Keywords:  translation,
               Severity:  Normal     |  internationalization, locale
           Triage Stage:             |  middleware
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 If both {{{zh-hans}}} and {{{zh-hant}}} are in {{{settings.LANGUAGES}}}
 (and in this order) the LocaleMiddleware is choosing the first one instead
 of the second as would be expected. The actual faulty code seems to be in
 {{{django.utils.translation.trans_real.get_supported_language_variant}}}.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32479>
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/051.5aed0a3fc5ac40a0d4dee776b82d33e3%40djangoproject.com.

Reply via email to