protected function parseLocalesFromConfig()
    {
        $localeInfos = Hash::normalize((array)Strata::config("i18n.locales"));
        $locales = array();

        foreach ($localeInfos as $key => $config) {
            $locales[$key] = new Locale($key, $config);
        }

        return $locales;
    }
protected function parseLocalesFromConfig()
    {
        $localeInfos = Hash::normalize((array)Strata::config("i18n.locales"));
        $locales = array();

        foreach ($localeInfos as $key => $config) {
            $locales[$key] = new Locale($key, $config);
        }

        return $locales;
    }
protected function parseLocalesFromConfig ( ) { $ localeInfos = Hash :: normalize ( ( array ) Strata :: config ( "i18n.locales" ) ) ; $ locales = array ( ) ; foreach ( $ localeInfos as $ key => $ config ) { $ locales [ $ key ] = new Locale ( $ key , $ config ) ; } return $ locales ; }
Goes through the list of localization configurations values in Strata's
configuration file.
@return array A list of instantiated Locale object.
Goes through the list of localization configurations values in Strata s configuration file .