Hello all,
I searched on the forum, documentation but didn't find anything related to set multiple labels with multiple language in attributeLabels function.
Is there a way to do that?
Hello all,
I searched on the forum, documentation but didn't find anything related to set multiple labels with multiple language in attributeLabels function.
Is there a way to do that?
Use Yii::t() in attributeLabels().
Didn't try that.
Thank you very much Qiang.
Last question, when I'am trying to call Yii::t() in the portlet (blog demo ->tag portlet) it doesn't work, how can I translate the title in portlet class?
Thanks!
Did you set your application's language property? Do you have translated message? How are you using Yii::t()?