Changes between Initial Version and Version 1 of Ticket #34515, comment 19


Ignore:
Timestamp:
May 17, 2025, 5:07:35 AM (5 months ago)
Author:
Foucauld Degeorges

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34515, comment 19

    initial v1  
    1515As a workaround, we have implemented our own `LocaleMiddleware` which:
    1616
    17 - uses logic adapted from `django-extensions`' `show_urls` command to list all routes in all activated languages
     17- uses logic adapted from `django-extensions`' `show_urls` command to list all routes in all enabled languages
    1818- groups them by name to see whether some routes have more than one distinct pattern
    1919- this tells us whether a route is translated (of type B), or not translated (of type A)
    2020- if type B, `LocaleMiddleware` should infer the language from the route. If type A, it shouldn't.
    2121
     22edit: I'll post this again on the other bug report, that's the one that's still present.
     23
Back to Top