Page 1 of 1

Multilingual embedded

Posted: Tue Sep 20, 2005 1:13 pm
by randulo
Hello,

I have a site that is in two languages with PHP includes relative to each language. For example, if you are in English you'd be looking at

/en/pagename.php which includes ../inc/menus.php (/en/inc/menus)

in French that same page would be

/fr/pagename.php which includes ../inc/menus.php (/fr/inc/menus)

The menus depend on the directory structure so s9y must be set up at /en/serendipity. I've symbolically linked that to /fr/serendipity and the nav menus and all included code works perfectly.

The only problem is the links that want to go quite naturally to the base URL of /en/serendipity.

Anyone have any suggestions for tweaks to detect the language and/or make all the links in serendipity relative?

thanks in advance

Re: Multilingual embedded

Posted: Tue Sep 20, 2005 3:09 pm
by garvinhicking
I'd make your embedded script/template detect the setting of $serendipity['lang'] and use that to customize the links...

Regards,
Garvin