From 9963d47f1682fa38fd79979e2a575ee7e0652bd3 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 24 Oct 2013 07:20:10 -0400 Subject: [PATCH] revert back the change about message class so that the class can be lazily loaded. --- framework/yii/i18n/I18N.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', ];