Revolution 2.2.7 - using Bootstrap theme -
I currently have an English/Chinese site successfully using Babel Translation plugin to switch between languages.
I am trying to add and run an additional site in the MODX installation using ContextRouter.
I can get both sites to work but it causes the Babel translation plugin in the original site to stop functioning.
Below is the gateway script that the Babel plugin uses which seems to be over-ridden somewhere by the ContextRouter module.
If anyone could point me in the right direction to resolve this I would be most grateful.
if($modx->context->get('key') != "mgr"){
/* grab the current langauge from the cultureKey request var */
switch (isset($_REQUEST['cultureKey']) ? $_REQUEST['cultureKey'] : 'en') {
case 'zh':
/* switch the context */
$modx->switchContext('zh');
break;
default:
/* Set the default context here */
$modx->switchContext('web');
break;
}
/* unset GET var to avoid
* appending cultureKey=xy to URLs by other components */
unset($_GET['cultureKey']);
}