public function addFile($file) {
        $baseName = basename($file, '.php');

        $components = explode('.', $baseName);
        $language = $components[1];

        $data = require($file);

        $this->add($data, $language);
    }
public function addFile($file) {
        $baseName = basename($file, '.php');

        $components = explode('.', $baseName);
        $language = $components[1];

        $data = require($file);

        $this->add($data, $language);
    }
public function addFile ( $ file ) { $ baseName = basename ( $ file , '.php' ) ; $ components = explode ( '.' , $ baseName ) ; $ language = $ components [ 1 ] ; $ data = require ( $ file ) ; $ this -> add ( $ data , $ language ) ; }
Add translation file content

@param string $file

@return void
Add translation file content