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
Multilingual embedded
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Multilingual embedded
I'd make your embedded script/template detect the setting of $serendipity['lang'] and use that to customize the links...
Regards,
Garvin
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/