Open demogorgorn opened 10 years ago
Hi, this error happens when Yii can't find the specified translation file. The solution i've found for this is telling where to look for those files.
'components' => [
/* Other components configurations */
'i18n'=>array(
'translations' => array(
'sweelix'=>array(
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => "@app/messages",
'sourceLanguage' => 'YOUR_LANGUAGE',
'fileMap' => array(
'sweelix'=>'sweelix.php'
)
)
)
),
],
Then, you go to your's web dir and create a file under the following folder structure: Create messages folder and it's subfolder based on your current language settings if they don't exist.
@webroot/messages/YOUR_LANGUAGE/sweelix.php
where would i get the sweelix.php
from that i would place it inside the @webroot/messages/YOUR_LANGUAGE/
folder structure, i am using yii2-advanced-app .
I've tried to install again on clean project to test previous bug and received new error exception message.
Here is the error log (Sorry for big text but maybe it will be useful):
= Html::encode($this->title) ?>
= $this->render('_form', [ 'model' => $model, ]) ?>