#28636: Translation module: Check `LANG_INFO` against user's language 
preference as
optional feature
-------------------------------------+-------------------------------------
     Reporter:  Denis Anuschewski    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:                       |                  Version:  1.11
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:  translation,         |             Triage Stage:
  internationalization, request      |  Unreviewed
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Denis Anuschewski):

 You have de-DE (German) in `LANGUAGE_CODE` and pl (Polish) in
 `HTTP_ACCEPT_LANGUAGE` header of the user's request.

 Currently, Django's output of `get_language_from_request` is pl if it is
 in `settings.LANGUAGES` and de-DE if it is not.

 With my modification you get pl when you explicitly set
 `support_all_languages` to True, regardless of `settings.LANGUAGES`.

 Check my PR for more clarification in the code base.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28636#comment:9>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.de3c80a928a63b35e2543b7bc991e9a6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to