First of all in your moduleName.php file you need to import the message folder like this
class ModuleName extends CWebModule
{
public function init()
{
$this->setImport(array(
'smsLog.messages.*',
));
}
}
Now create a folder in your smsLog with name messages and then create a folder en_us. SO the structure would be something like
smsLog/messages/en_us/app.php
In your app.php write this
<?php
return array(
'your message'=>' I am translated',
);
Then in your controllers inside your module you can use the languange you want to like
Yii::t('smsLogModule.app','your message');
Hope this helps :)
Update
You need to use
Yii::t('smsLogModule.app','your message');
i.e You need to prepend first argument of your Yii::t with the name of your module with the word Module.