#30272: get_language_from_path not respecting i18n_patterns
prefix_default_language=False
-------------------------------------+-------------------------------------
     Reporter:  Stefan Wehrmeyer     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:                       |                  Version:  2.1
  Internationalization               |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Hi Stefan.

 I think this is intended behaviour: doing clever things, like falling back
 to the default `LANGUAGE_CODE` is out of scope for this function. It's job
 it just (literally) to get the language code from the path. If it's not
 there then `None` is the desired response.

 The more sophisticated `get_language_from_request()` will do the ''right
 thing'' here and, ultimately, return `settings.LANGUAGE_CODE` if nothing
 else preempts it.

 (Was there an incorrect behaviour you observed here, beyond this?)

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30272#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 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/065.096cac01ef5c1866803f8bacb673e0a4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to