public function getServerLocales() {
        if(!isset($this->serverLocales)) {
            $this->serverLocales = new LocaleCollection();
            foreach($this->supportedLocaleStrings as $server) {
                try {
                    $locale = new Locale($server);
                    $this->serverLocales->addLocale( $locale );
                } catch(\Exception $e) {
                    trigger_error($e->getMessage(), E_USER_NOTICE);
                }
            }
        }
        return $this->serverLocales->getLocales();
    }
public function getServerLocales() {
        if(!isset($this->serverLocales)) {
            $this->serverLocales = new LocaleCollection();
            foreach($this->supportedLocaleStrings as $server) {
                try {
                    $locale = new Locale($server);
                    $this->serverLocales->addLocale( $locale );
                } catch(\Exception $e) {
                    trigger_error($e->getMessage(), E_USER_NOTICE);
                }
            }
        }
        return $this->serverLocales->getLocales();
    }
public function getServerLocales ( ) { if ( ! isset ( $ this -> serverLocales ) ) { $ this -> serverLocales = new LocaleCollection ( ) ; foreach ( $ this -> supportedLocaleStrings as $ server ) { try { $ locale = new Locale ( $ server ) ; $ this -> serverLocales -> addLocale ( $ locale ) ; } catch ( \ Exception $ e ) { trigger_error ( $ e -> getMessage ( ) , E_USER_NOTICE ) ; } } } return $ this -> serverLocales -> getLocales ( ) ; }
Returns all possible locales the server can deliver the render result
@return array
Returns all possible locales the server can deliver the render result