multilingual don´t woork ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
artico
Posts: 23
Joined: Tue 1. Jun 2004, 01:14
Location: denmark
Contact:

multilingual don´t woork ?

Post 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]
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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}
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
artico
Posts: 23
Joined: Tue 1. Jun 2004, 01:14
Location: denmark
Contact:

no

Post by artico »

i just have one template... is that wrong ?
Post Reply