private function getFromRemoteHostServer()
    {
        if (empty($remoteHost = $this->request->server('REMOTE_HOST')))
            return null;

        $remoteHost = explode('.', $remoteHost);
        $locale     = strtolower(end($remoteHost));

        return $this->isSupported($locale) ? $locale : null;
    }
private function getFromRemoteHostServer()
    {
        if (empty($remoteHost = $this->request->server('REMOTE_HOST')))
            return null;

        $remoteHost = explode('.', $remoteHost);
        $locale     = strtolower(end($remoteHost));

        return $this->isSupported($locale) ? $locale : null;
    }
private function getFromRemoteHostServer ( ) { if ( empty ( $ remoteHost = $ this -> request -> server ( 'REMOTE_HOST' ) ) ) return null ; $ remoteHost = explode ( '.' , $ remoteHost ) ; $ locale = strtolower ( end ( $ remoteHost ) ) ; return $ this -> isSupported ( $ locale ) ? $ locale : null ; }
Get locale from remote host server.

@return null|string
Get locale from remote host server .