Hi I have tried and tried but can't even get it to work. I've tried the method on the page here ...
http://www.multilingual-modx.com/blog/2011/multilingual-websites-with-modx-and-babel.html, and on this page ...
http://designfromwithin.com/blog-webdesign-development/2012/01/12/modx-multilingual-setting-up-babel-and-have-a-website-with-multible-languages/. Not working for me.
Right now I have it set up like multilingual-modx.com says to do it.
Here's the site ...
http://anchorpmn.com
Here's my gateway plugin code ...
if($modx->context->get('key') != "mgr"){
//grab the current domain from the http_host option
switch ($modx->getOption('http_host')) {
case 'anchorpmn.com/es/':
//switch the context
$modx->switchContext('es');
//set the cultureKey
$modx->setOption('cultureKey', 'es');
break;
default:
// Set the default language/context here
$modx->switchContext('web');
$modx->setOption('cultureKey', 'en');
break;
}
}
I have only set up the home page in Spanish so far, the ID=10.
I think I should be able to type in anchorpmn.com/es/ and get the translated page or at least type in anchorpmn.com/index?id=10, but nieither of these work.
Help please.
Thanks.
Dan