Changes between Version 1 and Version 2 of Ticket #28636, comment 1


Ignore:
Timestamp:
Sep 28, 2017, 4:03:05 AM (7 years ago)
Author:
Denis Anuschewski

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28636, comment 1

    v1 v2  
    1 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`.
     1In 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 seems to be not possible with current Django because you always get the value of `settings.LANGUAGE_CODE` when the discovered language is not in `settings.LANGUAGES`.
    22
    33Overwriting the function `get_languages` didn't work for me because translation was then activated for every language. I would like to have translations only for specific languages when I explicitly put them into `settings.LANGUAGES`, but also a fallback for every language except of `settings.LANGUAGE_CODE`.
Back to Top