/** * Retrieve translation file for module * * @param string $module * @param string $fileName * * @return string */ protected function _getModuleFilePath($module, $fileName) { if (Mage::app()->getStore()->isAdmin() == true) { return parent::_getModuleFilePath($module, $fileName); } $localeCode = $this->getLocale(); if (empty($localeCode)) { return parent::_getModuleFilePath($module, $fileName); } $filePath = $this->getLocaleOverrideFile($localeCode, $fileName); if (!empty($filePath) && file_exists($filePath)) { return $filePath; } return parent::_getModuleFilePath($module, $fileName); }