#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
-------------------------------------+-------------------------------------

Comment (by Claude Paroz):

 I'm still not completely satisfied by my proposal. It only partially
 solves the issue, as shown by the hack you are forced to do in the
 `process_request` middleware method.

 I think we have a problem in Django i18n in that we generally assume
 untranslated strings are in English (some problems you mentioned in
 comment:13). We can see that for example in the `en` special-casing in
 `DjangoTranslation._add_fallback`. We may miss a `LANGUAGE_SOURCE` setting
 (even if we know that non-English original strings are problematic with
 gettext when the language has more than 2 plurals). I don't know if that
 would completely solve the current issue.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28636#comment:18>
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.5aaaf32ac46b30a412e3da924f317cee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to