Translating labels

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/

http://www.yiiframework.com/forum/index.php?/topic/7610-multiple-message-source-for-i18n/page__hl__CDbMessageSource__fromsearch__1

Hope it helps :)

Thanks guys. I got it now!