aratın
$_SERVER['HTTP_ACCEPT_LANGUAGE']

değiştirin
(!isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? "tr" : $_SERVER['HTTP_ACCEPT_LANGUAGE'])