#32533: i18n l10n set the Accept-Language but always get settings.LANGUAGE_CODE
-----------------------------------------+---------------------------
               Reporter:  iwmbm          |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  3.1
               Severity:  Normal         |       Keywords:  i18n,l10n
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+---------------------------
 **settings.py**

 LANGUAGE_CODE = 'zh-hant'

 MIDDLEWARE = [
     ...
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.locale.LocaleMiddleware',
     'django.middleware.common.CommonMiddleware',
     ...
 ]


 **browser request headers**
 Accept-Language:Accept-Language: en,en-US;q=0.9,de;q=0.8

 i try to get request.LANGUAGE_CODE but always return zh-hant

 there's one more thing

 in chinese language
 browser will set Accept-Language zh-HK zh-TW zh-CN

 but django only support zh-Hant and zh-Hans

 what can i do to support zh-HK zh-TW zh-CN

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32533>
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/048.45a683bd8323357805172722f961752d%40djangoproject.com.

Reply via email to