Changes between Initial Version and Version 1 of Ticket #23689, comment 3
- Timestamp:
- Jun 14, 2022, 9:12:45 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23689, comment 3
initial v1 26 26 27 27 * `LocaleMiddleware.process_request` calls `translation.get_language_from_request` 28 * `get_language_from_request` calls `parse_accept_lang_header` which turns `pt-BR` i to `pt-br`28 * `get_language_from_request` calls `parse_accept_lang_header` which turns `pt-BR` into `pt-br` 29 29 * `get_language_from_request` then calls `get_supported_language_variant`, passing `pt-br` as the `lang_code` 30 30 * `get_supported_language_variant` then runs `if code in supported_lang_codes`, which is `False` (note that `'pt-BR' in supported_lang_codes == True`)