public function load($filenames='common', $basePath=null, $locale=null)
	{
	    $locale = $locale ?: $this->locale;
	    
	    $filenames = (array) $filenames;
	    
	    if (!$basePath) {
	        $basePath = Config::getCommonPath();
	    } elseif (!file_exists($basePath)) {
	        $basePath = Config::getRootPath() . trim($basePath, '/');
	    }
	    
	    foreach ($filenames as $file) {
	        if (!is_file($file)) {
	            $file = rtrim($basePath, '/') . '/lang/' . $locale . '/'. $file . '.lang.php';
	        }
	        
	        $content = Ioc::load($file);
	        
	        if ($content && is_array($content)) {
	            $this->data = array_merge($this->data, $content);
	        }
	    }
	}
public function load($filenames='common', $basePath=null, $locale=null)
	{
	    $locale = $locale ?: $this->locale;
	    
	    $filenames = (array) $filenames;
	    
	    if (!$basePath) {
	        $basePath = Config::getCommonPath();
	    } elseif (!file_exists($basePath)) {
	        $basePath = Config::getRootPath() . trim($basePath, '/');
	    }
	    
	    foreach ($filenames as $file) {
	        if (!is_file($file)) {
	            $file = rtrim($basePath, '/') . '/lang/' . $locale . '/'. $file . '.lang.php';
	        }
	        
	        $content = Ioc::load($file);
	        
	        if ($content && is_array($content)) {
	            $this->data = array_merge($this->data, $content);
	        }
	    }
	}
public function load ( $ filenames = 'common' , $ basePath = null , $ locale = null ) { $ locale = $ locale ? : $ this -> locale ; $ filenames = ( array ) $ filenames ; if ( ! $ basePath ) { $ basePath = Config :: getCommonPath ( ) ; } elseif ( ! file_exists ( $ basePath ) ) { $ basePath = Config :: getRootPath ( ) . trim ( $ basePath , '/' ) ; } foreach ( $ filenames as $ file ) { if ( ! is_file ( $ file ) ) { $ file = rtrim ( $ basePath , '/' ) . '/lang/' . $ locale . '/' . $ file . '.lang.php' ; } $ content = Ioc :: load ( $ file ) ; if ( $ content && is_array ( $ content ) ) { $ this -> data = array_merge ( $ this -> data , $ content ) ; } } }
load language data, default load app basePath

@param string|array $filenames filenames with no suffix, suffix = '.lang.php'
@param string $basePath module basePath or name
@param string $locale

@return void
load language data default load app basePath