You could use the new OnInitCulture event actually, which is a good place to make any decisions regarding multi-language presentation and function.
Think it should be written in a plugin (!) with OnHandleRequest parameter. Not in index.php. which in fact is overwritten in any updates.
So can or should I even handle my switchContext gateway with that event?
Quote from: smooth-graphics at Dec 21, 2010, 08:36 AMYou could use the new OnInitCulture event actually, which is a good place to make any decisions regarding multi-language presentation and function.
Think it should be written in a plugin (!) with OnHandleRequest parameter. Not in index.php. which in fact is overwritten in any updates.
I suppose if it makes sense at that point. Don’t see why not.
Quote from: OpenGeek at Dec 21, 2010, 10:08 AMSo can or should I even handle my switchContext gateway with that event?
Quote from: smooth-graphics at Dec 21, 2010, 08:36 AMYou could use the new OnInitCulture event actually, which is a good place to make any decisions regarding multi-language presentation and function.
Think it should be written in a plugin (!) with OnHandleRequest parameter. Not in index.php. which in fact is overwritten in any updates.