CMenu Items translation

Hello,

I am quite new to yii.What I want to do is to be able to translate the CMenu.Does anyone know how I can do that?Do you think there is a way to put the Yii::t() function in the code creation template of gii? Because I have a lot of pages to create and I would like to avoid having to edit every page.

Also, the files that are created from yii, are encoded in ANSI.Do you know how I can make it create UTF-8 encoded files?

Thank you for the help

I guess the answer to that was pretty easy.All I had to do was replace the options of the menus created by gii with Yii::t().For example


array('label'=>Yii::t('formlabels','Create ').Yii::t('formlabels','<?php echo $this->modelClass; ?>'), 'url'=>array('create')),

and that created the needed files…