Page 1 of 1

multilingual don´t woork ?

Posted: Wed 2. Mar 2005, 13:25
by artico
I have this in the HEAD of default template:
[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?dk');
exit();
}

}
[/PHP]


I have 2 site structure with there own alias "dk" and "de"

And the change of language work fine, but i always see both language structure on the website ?

I have try, change {NAV_TABLE_COLUMN:0} to the id i found in admin for danish {NAV_TABLE_COLUMN:94} but then i ONLY se danish and only change is the German startsite ? not the german site structure ??

What is wrong ? Where do i look for the problem ?

[/img]

Posted: Wed 2. Mar 2005, 13:34
by pico
Hi

do you have also 2 different Templates for the 2 Languages, one with
{NAV_TABLE_COLUMN:0} and the other one with {NAV_TABLE_COLUMN:94}

no

Posted: Wed 2. Mar 2005, 18:33
by artico
i just have one template... is that wrong ?