I’m playing with my Revo Testsuite and Babel
I’ve set up two name spaces (web, id)
I’ve follow all nstruction in
http://www.class-zec.com/en/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html,
<?php
if($modx->context->get('key') != "mgr"){
/* grab the current langauge from the cultureKey request var */
switch ($_REQUEST['cultureKey']) {
case 'en':
/* switch the context */
$modx->switchContext('web');
break;
default:
/* Set the default context here */
$modx->switchContext('id');
break;
}
/* unset GET var to avoid
* appending cultureKey=xy to URLs by other components */
unset($_GET['cultureKey']);
}
But when i hit my url without context, it’s always direct to English (en) context.
How to fix this problem?
A tutorial would be very appreciated.