I want set two language for my web but idont know.i have read document but i don’t know. Please help me ! Thanks All
I want set two language for my web but idont know.i have read document but i don’t know. Please help me ! Thanks All
Hello
Add on main.php
‘language’ => ‘pl_pl’,
add file under messages\pl_pl\translation.php
– Above file code –
<?php
return array (
‘This is just a test’ => ‘Este é apenas um teste’,
);
?>
–
Add on view <?php echo Yii::t("translation", "This is just a test");?>
Thanks
thank you very much!
Can do you said more details!Example:(main.php,controller, model or view),
Once more time i very thanks!
The main.php is the one in /protected/config/main.php.