Browse Source

revert back the change about message class so that the class can be lazily loaded.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
9963d47f16
  1. 4
      framework/yii/i18n/I18N.php

4
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',
];

Loading…
Cancel
Save