Multilingual embedded
Posted: Tue Sep 20, 2005 1:13 pm
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
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