Arne-S/JsTrans — pull request #11 by cnlevy (2013-08-15 21:54:38+00:00)
Title: Use JsTrans as a component. Load messages from ANY CMessageSource instance

...ce

- Use JsTrans as a component and configure it in config/main.php :
'preload'=>array('jsTrans', ... ),
...
'components'=>array(
'jsTrans'=>array(
'class'=>'ext.JsTrans.JsTrans',
'categories'=>array('app'),
'languages'=>array('fr','es')
),
...
- Load messages from ANY CMessageSource instance, using Reflection to call protected
method loadMessages() from Yii::app()->messages component