/** * Get specific language help message * * @param \XLite\Model\AEntity $entity Language object * * @return string */ protected function getLanguageHelpMessage(\XLite\Model\AEntity $entity) { $message = null; if ($entity->getValidModule()) { $moduleClass = \Includes\Utils\ModulesManager::getClassNameByModuleName($entity->getModule()); $moduleName = sprintf('%s (%s)', $moduleClass::getModuleName(), $moduleClass::getAuthorName()); $message = static::t('This language is added by module and cannot be removed.', array('module' => $moduleName)); } elseif ('en' == $entity->getCode()) { $message = 'English language cannot be removed as it is primary language for all texts.'; } return $message; }