[Extension] mail - internationalization bug

Hi,

I just installed the mail extension (http://www.yiiframework.com/extension/mail ) and I am using views to manage the content of emails. However, the internationalization does not work. I fixed the error by replacing


$viewPath = Yii::getPathOfAlias(Yii::app()->mail->viewPath.'.'.$this->view).'.php';

with


$viewPath = Yii::app()->findLocalizedFile(Yii::getPathOfAlias(Yii::app()->mail->viewPath.'.'.$this->view).'.php');

in "public function setBody" in YiiMailMessage.php.

I wanted to leave a comment at the specific extension but it wouldn’t let me as I am “too new” :)

(Hope it’s ok to post it here)

Old topic but stumbled upon it as i had the same situation.

Solved with


$viewPath = Yii::app()->findLocalizedFile(Yii::getPathOfAlias(Yii::app()->mail->viewPath.'.'.$this->view).'.php');

on line 143 in YiiMailMessage.php