LocaleMiddleware should store language preferences if possible
|Reported by:||Vlastimil Zíma||Owned by:||Vlastimil Zíma|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
After logout (or other action than flushes session) language preferences are forgotten. This leads to strange behaviour when page during which session was flushed (e.g. /adminsite/logout/) is translated but next page is in default language (or browser prefered language).
This is tricky especially when your system requires explicit logout to log in other user.
Solution is quite easy, LocaleMiddleware should store current language when it is not stored in session or language cookie.
Change History (18)
comment:1 follow-up: 2 Changed 6 years ago by
|Triage Stage:||Unreviewed → Design decision needed|
comment:10 Changed 4 years ago by
|Owner:||changed from nobody to Vlastimil Zíma|
|Patch needs improvement:||unset|
|Status:||new → assigned|