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". |
| 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-DE''. It would only work with "en", "de", and "es". |