protected function loadFromHttpHeader()
    {
        foreach (Yii::$app->request->getAcceptableLanguages() as $language) {
            if (in_array($language, $this->supportedLanguages)) {
                return $language;
            }
        }

        return false;
    }
protected function loadFromHttpHeader()
    {
        foreach (Yii::$app->request->getAcceptableLanguages() as $language) {
            if (in_array($language, $this->supportedLanguages)) {
                return $language;
            }
        }

        return false;
    }
protected function loadFromHttpHeader ( ) { foreach ( Yii :: $ app -> request -> getAcceptableLanguages ( ) as $ language ) { if ( in_array ( $ language , $ this -> supportedLanguages ) ) { return $ language ; } } return false ; }
Load language from HTTP header.

@return string|bool
Load language from HTTP header .