Internalization

Hi All,

I need to convert the whole portal to desired language.Configuration are completed and internalization are working fine.I need a suggestion how to convert the list of values(dropdown values are fetched from model files using custom function) into desired language?

Note:We are using database for translation.

Thanks,

Hema

I hope you are using messages folder for internalization…

In resoursebundle

messages/english.php

return array(

‘Gut’=>‘Good’

);

In controller

yii::t(‘english’,‘Gut’) --> Good

In controller

after fetching the dropdown items from databases…

just pass that value to yii::t(‘english’,array value) and store the value in another array …problem solved