Ok. At the moment the problem is slightly different (I'm getting same content no matter what) but the multilingual site is not working nevertheless. Here's all the info:
First, the contexts and their settings:
context: web
No settings defined in context settings, in system settings cultureKey is "en"
context: en
base url: /english/
culture key: english
site url:
http://www.mydomain.com/english/
My gateway:
if($modx->context->get('key') != "mgr"){
//grab the current domain from the http_host option
switch ($modx->getOption('http_host')) {
case 'www.mydomain.com/english/':
//switch the context
$modx->switchContext('en');
//set the cultureKey
$modx->setOption('cultureKey', 'english');
break;
default:
// Set the default language/context here
$modx->switchContext('web');
$modx->setOption('cultureKey', 'en');
break;
}
}
.htaccess is modifed only to allow furls, so I've uncommented the lines that do that.
Just to be crystal clear: culture key cannot exceed two characters?