Changes between Initial Version and Version 1 of Ticket #23689, comment 3


Ignore:
Timestamp:
Jun 14, 2022, 9:12:45 AM (2 years ago)
Author:
Daniel Samuels

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23689, comment 3

    initial v1  
    2626
    2727* `LocaleMiddleware.process_request` calls `translation.get_language_from_request`
    28 * `get_language_from_request` calls `parse_accept_lang_header` which turns `pt-BR` ito `pt-br`
     28* `get_language_from_request` calls `parse_accept_lang_header` which turns `pt-BR` into `pt-br`
    2929* `get_language_from_request` then calls `get_supported_language_variant`, passing `pt-br` as the `lang_code`
    3030* `get_supported_language_variant` then runs `if code in supported_lang_codes`, which is `False` (note that `'pt-BR' in supported_lang_codes == True`)
Back to Top