Yii2 translation is not working anymore -


i have tried 2 days make i18n working again on small project on yii2 basic template. set i18n based on database , used module language picker lajax pick language on webapp. translation working fine until decided add module translate manager extract translation messages. after trying make work without success because of yii2 translate manager doesn't work, decided remove (translate manager). after going old config, translation not working anymore , running until maximum execution time. have increase maximum execution time same problem. clear browser cache , translation still not working anymore.

my old translation config working before below:

$config = [ 'id' => 'basic', 'basepath' => dirname(__dir__), 'bootstrap' => ['log'], 'bootstrap' => ['languagepicker'],  'language' => 'en', 'sourcelanguage' => 'en',  'components' => [      ...      'languagepicker' => [         'class' => 'lajax\languagepicker\component',                 'languages' => ['en', 'fr']     ],      'i18n' => [         'translations' => [             'app*' => [                 'class' => 'yii\i18n\dbmessagesource',                 'sourcelanguage' => 'en',             ],         ],     ],      'cache' => [         'class' => 'yii\caching\filecache',     ],      ...     ]     ] 

i have used below on translatable strings:

<?= yii::t('app','test') ?> 

i don t know if there way clear cache data in project.


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -