I'm developing a multilingual Django website. It has two languages, English and Hebrew. I want the default language for every first-time visitor to be Hebrew, regardless of what his browser's Accept-Language
is.
Of course, if he changes language to English (and thus gets the language cookie or the key in the session), it should remain at English.
I think I can program this algorithm myself, but where do I "plug it in"? How do I make my project use it?
Maybe you don't have to override anything. You can just check on the first page, (or maybe every page) if the user already has a language cookie and otherwise redirect him to the set_language redirect view. In that way you could force the language to Hebrew.
If the user decides to change back to English, he can do it very easily.