I didn’t figure out how to translate labels on forms. How can I do it?
I didn’t figure out how to translate labels on forms. How can I do it?
If you are using the form with a model, then in your model, you would do something like:
public function attributeLabels()
{
return array(
'username' =>Yii::t('default','Username')
);
}
Check this article about quick start internationalization
or some other useful article.
http://www.yiiframework.com/doc/cookbook/26/
http://www.yiiframework.com/doc/cookbook/59/
Hope it helps
Thanks guys. I got it now!