#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: Utilities | Version: 1.11
Severity: Normal | Resolution:
Keywords: translation, | Triage Stage:
locale, request | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Denis Anuschewski):
In my specific case I wrote a sub class from `LocaleMiddleware` in order
to use `add_fallback` whenever a language gets detected that is not equal
to `settings.LANGUAGE_CODE`. But that's not possible currently because you
always get the value of `settings.LANGUAGE_CODE` when the discovered
language is not in `settings.LANGUAGES`.
Overwriting the function `get_languages` didn't work for me because
translation was then activated for every language. I only want
translations for specific languages when I explicitly put them into
`settings.LANGUAGES`, but I want a fallback for every language except of
`settings.LANGUAGE_CODE`.
--
Ticket URL: <https://code.djangoproject.com/ticket/28636#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/066.49909ed8f732f42aa3dee772a3cdbe38%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.