12 class PhpMessageSource extends CPhpMessageSource
31 protected function getMessageFile($category, $language)
33 $file = realpath(parent::getMessageFile($category, $language));
34 if ($this->customI18n) {
35 $customSection = realpath(Yii::getPathOfAlias('site.custom'));
36 $commonSection = realpath(Yii::getPathOfAlias('site.common'));
37 $frontendSection = realpath(Yii::getPathOfAlias('site.frontend'));
38 $customFile = str_replace(array($commonSection, $frontendSection), $customSection, $file);
39 if (file_exists($customFile)) {