Hello,
I have 3 different contexts, and I would like to create a bilingual replicate of each using the babel plugin. I have successfully done so for the first context in my root directory. The other contexts are in sub folders. I have created the gateway plugin as instructed from this tutorial:
http://designfromwithin.com/blog/modx-multilingual
I was wondering, do I just add the other contexts into the plugin, or do I need to create a separate one for each contexts?
<?php
if($modx->context->get('key') != "mgr"){
/* grab the current langauge from the cultureKey request var */
switch ($_REQUEST['cultureKey']) {
case 'zh':
/* switch the context */
$modx->switchContext('chinese');
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']);
}