Hi,
Can someone help provide some guidance on how to make boonex default (if available) to the language set in the browser/OS of the user browsing the site?
Thanks
Hi, Can someone help provide some guidance on how to make boonex default (if available) to the language set in the browser/OS of the user browsing the site? Thanks |
On client side: HTTP_ACCEPT_LANGUAGE I don't know how languages are switched in Dolphin; something I have been meaning to learn. Anyway, found the following bit of code; of course it is not useful here but may give a base to work from.
<?php Geeks, making the world a better place |
from what I can tell they are switched by simply loading the page with /?lang=fr or if there is already vars in the url it'll add &lang=fr etc... |
Actually Dolphin already parses HTTP_ACCEPT_LANGUAGE header and sets the appropriate language. You can see this code in getCurrentLangName function in inc/languages.inc.php file. Rules → http://www.boonex.com/terms |
oh cool! thanks I had no idea. |