26 if (array_key_exists(
'HTTP_ACCEPT_LANGUAGE', $_SERVER)) {
27 $browser_lang = $_SERVER[
'HTTP_ACCEPT_LANGUAGE'];
28 $lang = substr($browser_lang, 0, 2);
43 if (isset($_GET[
"locale"])) {
44 $locale = $_GET[
"locale"];
46 putenv(
"LC_ALL=$locale");
47 setlocale(LC_ALL, $locale);
48 bindtextdomain(
"messages",
"./locale");
49 textdomain(
"messages");