#28636: Allow customizing the fallback language from the locale middleware
-------------------------------------+-------------------------------------
     Reporter:  Denis Anuschewski    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:                       |                  Version:  master
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:  translation,         |             Triage Stage:  Accepted
  internationalization, request      |
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

 * version:  1.11 => master
 * stage:  Unreviewed => Accepted
 * needs_tests:  0 => 1


Comment:

 Thanks for testing, I'll made a pull request soon.

 However, are you sure you need that special `process_request` method? What
 about simply:
 {{{
 class CustomLocaleMiddleWare(LocaleMiddleware):
     fallback_language = 'en'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28636#comment:16>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.201a9b2be105825fb1574010e9650944%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to