Changes between Initial Version and Version 1 of Ticket #28636, comment 7


Ignore:
Timestamp:
Sep 30, 2017, 11:46:33 AM (7 years ago)
Author:
Denis Anuschewski

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28636, comment 7

    initial v1  
    2929}}}
    3030
    31 So every language preference that gets identified by `get_language_from_request` and differs from `settings.LANGUAGE_CODE` gets English as fallback language, even if it's not in `settings.LANGUAGES`. When you get e.g. ''pl'' as preference you get ''de'' as language, but with ''en'' as fallback (that's what we want). With current Django you would also get ''de'' as language, but no fallback because preference would not be ''pl'' but ''de''. It would only work with "en", "de", and "es".
     31So every language preference that gets identified by `get_language_from_request` and differs from `settings.LANGUAGE_CODE` gets English as fallback language, even if it's not in `settings.LANGUAGES`. When you get e.g. ''pl'' as preference you get ''de'' as language, but with ''en'' as fallback (that's what we want). With current Django you would also get ''de'' as language, but no fallback because preference would not be ''pl'' but ''de-DE''. It would only work with "en", "de", and "es".
Back to Top