X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FExtensions.php;h=45ef29169469f64ba7855f9d91633b7c0cefb740;hb=c490a46ac4bf490d3fbb31e35d24c6b43e764f00;hp=bc539c7e0291f13162195d8500f9c08ebae2ae77;hpb=1ab5e270e6c979a7098f144cd58e1412c91aaa9f;p=civicrm-core.git diff --git a/CRM/Admin/Form/Extensions.php b/CRM/Admin/Form/Extensions.php index bc539c7e02..45ef291694 100644 --- a/CRM/Admin/Form/Extensions.php +++ b/CRM/Admin/Form/Extensions.php @@ -1,9 +1,9 @@ getMapper()->keyToInfo($this->_key); + $extInfo = CRM_Admin_Page_Extensions::createExtendedInfo($info); + $extName = $extInfo['name']; + switch ($this->_action) { case CRM_Core_Action::ADD: $buttonName = ts('Install'); - $title = ts('Install Extension'); + $title = ts('Install ' . $extName . '?'); break; case CRM_Core_Action::UPDATE: $buttonName = ts('Download and Install'); - $title = ts('Download and Install Extension'); + $title = ts('Download and Install ' . $extName . '?'); break; case CRM_Core_Action::DELETE: $buttonName = ts('Uninstall'); - $title = ts('Uninstall Extension'); + $title = ts('Uninstall ' . $extName . '?'); break; case CRM_Core_Action::ENABLE: $buttonName = ts('Enable'); - $title = ts('Enable Extension'); + $title = ts('Enable ' . $extName . '?'); break; case CRM_Core_Action::DISABLE: - $buttonName = 'Disable'; - $title = ts('Disable Extension'); + $buttonName = ts('Disable'); + $title = ts('Disable ' . $extName . '?'); break; } @@ -165,7 +169,7 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form { } /** - * Function to process the form + * Process the form submission * * @access public *