CPhpMessageSource Bug (v1.10)

Edit -> It’s version 1.0.10 but I can’t edit the title

Hi,

I am using the new feature Yii:t("moduleID.source","text") to translate messages of my modules.

According to the documentation the sources should be in module/messages directory

But CPhpMessageSource never finds them.

instead of looking for the module class (moduleIDModule.php) to determine the basePath it looks for moduleID.php

I think that




<?php

protected function getMessageFile($category,$language){

 ... 

 $moduleClass=substr($category,0,$pos);

 ...

}

?>



should be




<?php

protected function getMessageFile($category,$language){

 ... 

 $moduleClass=substr($category,0,$pos)."Module";

 ...

}

?>



RESOLVED!

Hi,

I am stuck here as well. Did you manage to solve this one. I cannot force my module to read from its own messages folder.

All thoughts are welcome.

Regards,

bettor