lib/Lime/Helper/I18n.php
public function load($langfile, $lang=null) {

        if (!$lang) {
            $lang = $this->locale;
        }

        if ($path = $this->app->path($langfile)){

            if (!isset($this->_languages[$lang])){
                $this->_languages[$lang] = [];
            }

            $langtable = include($path);

            $this->_languages[$lang] = \array_merge($this->_languages[$lang], (array)$langtable);

            return true;
        }

        return false;
    }
public function load($langfile, $lang=null) {

        if (!$lang) {
            $lang = $this->locale;
        }

        if ($path = $this->app->path($langfile)){

            if (!isset($this->_languages[$lang])){
                $this->_languages[$lang] = [];
            }

            $langtable = include($path);

            $this->_languages[$lang] = \array_merge($this->_languages[$lang], (array)$langtable);

            return true;
        }

        return false;
    }
public function load ( $ langfile , $ lang = null ) { if ( ! $ lang ) { $ lang = $ this -> locale ; } if ( $ path = $ this -> app -> path ( $ langfile ) ) { if ( ! isset ( $ this -> _languages [ $ lang ] ) ) { $ this -> _languages [ $ lang ] = [ ] ; } $ langtable = include ( $ path ) ; $ this -> _languages [ $ lang ] = \ array_merge ( $ this -> _languages [ $ lang ] , ( array ) $ langtable ) ; return true ; } return false ; }
Load language files
@param  string $langfile path to language file
@param  string $lang     language to merge to
@return boolean
Load language files