src/bulletproof.php
public function setLanguage($lang)
    {
      if (isset($this->commonUploadErrors[$lang])) {
        $this->language = $lang;
      } else {
        $this->error = $this->commonUploadErrors[$this->language]['ERROR_09'];
      }

      return $this;
    }
public function setLanguage($lang)
    {
      if (isset($this->commonUploadErrors[$lang])) {
        $this->language = $lang;
      } else {
        $this->error = $this->commonUploadErrors[$this->language]['ERROR_09'];
      }

      return $this;
    }
public function setLanguage ( $ lang ) { if ( isset ( $ this -> commonUploadErrors [ $ lang ] ) ) { $ this -> language = $ lang ; } else { $ this -> error = $ this -> commonUploadErrors [ $ this -> language ] [ 'ERROR_09' ] ; } return $ this ; }
Define a language

@param $lang string language code

@return $this
Define a language