src/Titon/G11n/Locale.php
protected function _loadResource($resource) {
        return $this->cache([__METHOD__, $resource], function() use ($resource) {
            $data = $this->getLocaleBundle()->loadResource(null, $resource);

            if ($parent = $this->getParentLocale()) {
                $data = array_merge(
                    $parent->getLocaleBundle()->loadResource(null, $resource),
                    $data
                );
            }

            return $data;
        });
    }
protected function _loadResource($resource) {
        return $this->cache([__METHOD__, $resource], function() use ($resource) {
            $data = $this->getLocaleBundle()->loadResource(null, $resource);

            if ($parent = $this->getParentLocale()) {
                $data = array_merge(
                    $parent->getLocaleBundle()->loadResource(null, $resource),
                    $data
                );
            }

            return $data;
        });
    }
protected function _loadResource ( $ resource ) { return $ this -> cache ( [ __METHOD__ , $ resource ] , function ( ) use ( $ resource ) { $ data = $ this -> getLocaleBundle ( ) -> loadResource ( null , $ resource ) ; if ( $ parent = $ this -> getParentLocale ( ) ) { $ data = array_merge ( $ parent -> getLocaleBundle ( ) -> loadResource ( null , $ resource ) , $ data ) ; } return $ data ; } ) ; }
Load a resource from the locale bundle and merge with the parent if possible.

@param string $resource
@return array
Load a resource from the locale bundle and merge with the parent if possible .