protected static function _getSearchDirectories()
    {
        $className = get_called_class();
        $class = new ReflectionClass($className);
        $basedir = dirname($class->getFilename());
        $depth = substr_count($className, '\\')
            ?: substr_count($className, '_');

        return array(
            /* Composer */
            $basedir . str_repeat('/..', $depth) . '/data/locale',
            /* Source */
            $basedir . str_repeat('/..', $depth + 1) . '/locale'
        );
    }
protected static function _getSearchDirectories()
    {
        $className = get_called_class();
        $class = new ReflectionClass($className);
        $basedir = dirname($class->getFilename());
        $depth = substr_count($className, '\\')
            ?: substr_count($className, '_');

        return array(
            /* Composer */
            $basedir . str_repeat('/..', $depth) . '/data/locale',
            /* Source */
            $basedir . str_repeat('/..', $depth + 1) . '/locale'
        );
    }
protected static function _getSearchDirectories ( ) { $ className = get_called_class ( ) ; $ class = new ReflectionClass ( $ className ) ; $ basedir = dirname ( $ class -> getFilename ( ) ) ; $ depth = substr_count ( $ className , '\\' ) ? : substr_count ( $ className , '_' ) ; return array ( /* Composer */ $ basedir . str_repeat ( '/..' , $ depth ) . '/data/locale' , /* Source */ $ basedir . str_repeat ( '/..' , $ depth + 1 ) . '/locale' ) ; }
Get potential locations for the locale directory.

@var array List of directories
Get potential locations for the locale directory .