diff --git a/framework/yii/i18n/I18N.php b/framework/yii/i18n/I18N.php index cf8243e..b2b99b5 100644 --- a/framework/yii/i18n/I18N.php +++ b/framework/yii/i18n/I18N.php @@ -45,14 +45,14 @@ class I18N extends Component parent::init(); if (!isset($this->translations['yii'])) { $this->translations['yii'] = [ - 'class' => PhpMessageSource::className(), + 'class' => 'yii\i18n\PhpMessageSource', 'sourceLanguage' => 'en_US', 'basePath' => '@yii/messages', ]; } if (!isset($this->translations['app'])) { $this->translations['app'] = [ - 'class' => PhpMessageSource::className(), + 'class' => 'yii\i18n\PhpMessageSource', 'sourceLanguage' => 'en_US', 'basePath' => '@app/messages', ];