langagues redirection
Posted: Sat 4. Sep 2004, 18:05
I do you set up langagues redirection? I tried to do like Oliver said and It doesn't work.
I pasted this code in my header default template (edited to "fr" instead of "de")
I Did a translation of the summary page in french in the same structure level (article).
it's not working.
Do I have to edit some php code on WCMS to multilangual?
Well I am lost
i need heeeeeeeeelp.
thanks
Code: Select all
[PHP]
if(!$GLOBALS['aktion'][0]) {
switch( strtolower( substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 ) ) ) {
case 'de': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?de');
exit();
break;
default: header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?en');
exit();
}
}
[/PHP]
I Did a translation of the summary page in french in the same structure level (article).
it's not working.
Do I have to edit some php code on WCMS to multilangual?
Well I am lost
i need heeeeeeeeelp.
thanks