Translate components (CHtml::activeLabelEx())

Hi, is there a possibility to translate also the active labels?

Cheers,

Alex

This can be done in attributeLabels() in your model class (e.g. 'title'=>Yii::t('cms', 'title'))

Alright, thank you very much.

Also, one might considering holding entire translation in a views by using the following:


echo CHtml::activeLabel($model, 'Attribute', array('label' => Yii:t('category', 'Field Name')));

Of course, this is less convenient than overriding attributeLabels();