src/Titon/G11n/Locale.php
public function addResourcePath($domain, $path) {
        $code = $this->getCode();

        $this->getLocaleBundle()->addPath($domain, sprintf('%s/locales/%s', $path, $code));

        $this->getMessageBundle()->addPaths($domain, [
            sprintf('%s/messages/%s', $path, $code),
            sprintf('%s/messages/%s/LC_MESSAGES', $path, $code) // gettext
        ]);

        return $this;
    }
public function addResourcePath($domain, $path) {
        $code = $this->getCode();

        $this->getLocaleBundle()->addPath($domain, sprintf('%s/locales/%s', $path, $code));

        $this->getMessageBundle()->addPaths($domain, [
            sprintf('%s/messages/%s', $path, $code),
            sprintf('%s/messages/%s/LC_MESSAGES', $path, $code) // gettext
        ]);

        return $this;
    }
public function addResourcePath ( $ domain , $ path ) { $ code = $ this -> getCode ( ) ; $ this -> getLocaleBundle ( ) -> addPath ( $ domain , sprintf ( '%s/locales/%s' , $ path , $ code ) ) ; $ this -> getMessageBundle ( ) -> addPaths ( $ domain , [ sprintf ( '%s/messages/%s' , $ path , $ code ) , sprintf ( '%s/messages/%s/LC_MESSAGES' , $ path , $ code ) // gettext ] ) ; return $ this ; }
Add resource path lookups for locales and messages.

@param string $domain
@param string $path
@return $this
Add resource path lookups for locales and messages .