Here is the PR <https://github.com/django/django/pull/9177>.

I think it would be beneficial to have an optional boolean flag in order to 
check the language preference against `LANG_INFO` rather 
than `settings.LANGUAGES`. It would allow one e.g. to get the preference 
and add a translation fallback for specific languages (with a custom 
LocaleMiddleware), e.g. when it differs from `settings.LANGUAGE_CODE`. 
Currently it's not possible when you get a language that is not listed 
in `settings.LANGUAGES`, because then you always 
get `settings.LANGUAGE_CODE`, which is not the wanted result in such a use 
case.

Or is there another way for achieving this without modifying the django 
core? Overwriting `settings.LANGUAGES` didn't work for me because it 
activated translation for all languages (I just want a fallback).

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c99ebbe1-95a4-4309-8e72-deca0f6a7071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to