src/Bono/Lang/Driver/FileDriver.php
protected function buildLists()
    {
        $lists    = array();
        $langList = array();
        $path     = $this->config['lang.path'];
        $objects  = new RII(new RDI($path), RII::SELF_FIRST);

        foreach ($objects as $object) {
            if ($object->getExtension() === 'php') {
                $pathName         = $object->getPathName();
                $explodedPathName = explode('/', dirname($pathName));
                $fileName         = end($explodedPathName);

                $langList[$fileName] = true;
                $lists[$fileName] = require_once $pathName;
            }
        }

        $this->langList = $langList;
        $this->list = $this->arrayDot($lists);
    }
protected function buildLists()
    {
        $lists    = array();
        $langList = array();
        $path     = $this->config['lang.path'];
        $objects  = new RII(new RDI($path), RII::SELF_FIRST);

        foreach ($objects as $object) {
            if ($object->getExtension() === 'php') {
                $pathName         = $object->getPathName();
                $explodedPathName = explode('/', dirname($pathName));
                $fileName         = end($explodedPathName);

                $langList[$fileName] = true;
                $lists[$fileName] = require_once $pathName;
            }
        }

        $this->langList = $langList;
        $this->list = $this->arrayDot($lists);
    }
protected function buildLists ( ) { $ lists = array ( ) ; $ langList = array ( ) ; $ path = $ this -> config [ 'lang.path' ] ; $ objects = new RII ( new RDI ( $ path ) , RII :: SELF_FIRST ) ; foreach ( $ objects as $ object ) { if ( $ object -> getExtension ( ) === 'php' ) { $ pathName = $ object -> getPathName ( ) ; $ explodedPathName = explode ( '/' , dirname ( $ pathName ) ) ; $ fileName = end ( $ explodedPathName ) ; $ langList [ $ fileName ] = true ; $ lists [ $ fileName ] = require_once $ pathName ; } } $ this -> langList = $ langList ; $ this -> list = $ this -> arrayDot ( $ lists ) ; }
Build list of translation and available language in specific folder

@return void
Build list of translation and available language in specific folder