src/Titon/G11n/Locale.php
public function initialize() {
        if ($data = $this->getLocaleBundle()->loadResource(null, 'locale')) {
            $data = \Locale::parseLocale($data['code']) + $data;

            $config = $this->allConfig();
            unset($config['code'], $config['initialize']);

            $this->addConfig($config + $data);
        }

        // Force parent config to merge
        $this->getParentLocale();

        return $this;
    }
public function initialize() {
        if ($data = $this->getLocaleBundle()->loadResource(null, 'locale')) {
            $data = \Locale::parseLocale($data['code']) + $data;

            $config = $this->allConfig();
            unset($config['code'], $config['initialize']);

            $this->addConfig($config + $data);
        }

        // Force parent config to merge
        $this->getParentLocale();

        return $this;
    }
public function initialize ( ) { if ( $ data = $ this -> getLocaleBundle ( ) -> loadResource ( null , 'locale' ) ) { $ data = \ Locale :: parseLocale ( $ data [ 'code' ] ) + $ data ; $ config = $ this -> allConfig ( ) ; unset ( $ config [ 'code' ] , $ config [ 'initialize' ] ) ; $ this -> addConfig ( $ config + $ data ) ; } // Force parent config to merge $ this -> getParentLocale ( ) ; return $ this ; }
Instantiate the locale and message bundles using the resource paths.

@uses Locale
@uses Titon\Common\Config

@return $this
Instantiate the locale and message bundles using the resource paths .