I\'m trying to build multilangual site.
I use this piece of code to detect users language. If you havent chosen a language, it will include your language file based
This is also possible. It will use english as default if .php is not available.
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); (@include_once 'languages/'.$lang.'.php') or (@include_once 'languages/en.php');