I want to have translations of my website but I can't figure out how to tell Yii to use the database as the message source.
I have read the documentation as best I can:
http://www.yiiframew...ide/topics.i18n
http://www.yiiframew...DbMessageSource
I have created the tables in the database. I have a sample string in the category 'UI' and a translation to language 'es'. I have edited config/main.php with:
<?php 'sourceLanguage' => 'en', 'language' => 'es',
I have a view with a sample string to translate: <?= Yii::t('UI', 'foo') ?>
But I can't figure out how to tell Yii to use the database (CDbMessageSource) instead of the default CPhpMessageSource.
Can anyone help me?
Any help would be really appreciated.

Help












