Changes between Initial Version and Version 1 of Ticket #34455, comment 16
- Timestamp:
- Apr 6, 2023, 11:41:53 AM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34455, comment 16
initial v1 6 6 get_faalback_language is taking the prefixed language. If we dont want that, then we can update the process_request function: 7 7 OLD: 8 def process_request(self, request): 8 9 {{{ 10 def process_request(self, request): 9 11 urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF) 10 12 i18n_patterns_used, _ = is_language_prefix_patterns_used(urlconf) … … 18 20 request.LANGUAGE_CODE = translation.get_language() 19 21 22 }}} 23 24 20 25 New: 26 {{{ 21 27 def process_request(self, request): 22 28 urlconf = getattr(request, "urlconf", settings.ROOT_URLCONF) … … 37 43 translation.activate(language) 38 44 request.LANGUAGE_CODE = translation.get_language() 39 45 }}} 40 46 I want to work on this issue and need your suggestion if I am on right track. 41 47