parseMsg(); } public function parseMsg(){ if(!empty($this->message)) { foreach ($this->message as $key => $value) { if(is_array($value)) { $this->message[$key] = get_lang($value[0], $value[1]); } } } } }