Hi all,
I’m looking to internationalize my website, thought the use of the CDbMessageSource class. I’ve created the 2 tables “sourceMessages” and “translatedMessages”.
I’ve updated the database connection information in “protected/config/main.php” file.
This is my view’s code:
<?php
$this->pageTitle=Yii::app()->name . ' - Chants';
$this->breadcrumbs=array(
'Chants',
);
echo "<h1>Chants</h1>";
echo Yii::t('Menu','J’aime mieux avoir Christ que l’or fabuleux, J’aime mieux avoir Christ qu’un palais somptueux, J’aime mieux avoir Christ que la renommée, J’aime mieux qu’il me guide par sa main percée');
?>
But I don’t get the expected translation.
I’ve read this and that.
but I think I’m missing something.