Skip to content

Commit

Permalink
Add extension name and id to uninstall message
Browse files Browse the repository at this point in the history
Co-authored-by: ReLater
  • Loading branch information
richard67 committed May 4, 2020
1 parent f02c9cc commit fe21b71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function remove($eid = array())
// Do not allow to uninstall locked extensions.
if ((int) $row->locked === 1)
{
$msgs[] = Text::_('COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION');
$msgs[] = Text::sprintf('COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION', $row->name, $id);

continue;
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/com_installer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ COM_INSTALLER_TYPE_TYPE_TEMPLATE="template"
COM_INSTALLER_UNABLE_TO_FIND_INSTALL_PACKAGE="Unable to find install package"
COM_INSTALLER_UNABLE_TO_INSTALL_JOOMLA_PACKAGE="The Joomla package cannot be installed through the Extension Manager. Please use the <a href='%s'>Joomla! Update</a> component to update Joomla."
COM_INSTALLER_UNINSTALL_ERROR="Error uninstalling %s."
COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="Locked extensions cannot be uninstalled."
COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION="The extension \"%1s\" (ID %2s) is locked and cannot be uninstalled."
COM_INSTALLER_UNINSTALL_SUCCESS="Uninstalling the %s was successful."
COM_INSTALLER_UPDATE_FILTER_SEARCH_DESC="Search in extension name. Prefix with ID:, UID: or EID: to search for an update ID, update site ID or extension ID."
COM_INSTALLER_UPDATE_FILTER_SEARCH_LABEL="Search Extensions with Updates"
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Console/ExtensionRemoveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function doExecute(InputInterface $input, OutputInterface $output): in
// Do not allow to uninstall locked extensions.
if ((int) $row->locked === 1)
{
$this->ioStyle->error(Text::_('COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION'));
$this->ioStyle->error(Text::sprintf('COM_INSTALLER_UNINSTALL_ERROR_LOCKED_EXTENSION', $row->name, $extensionId));

return self::REMOVE_LOCKED;
}
Expand Down

0 comments on commit fe21b71

Please sign in to comment.