[4.4] Untranslated string for warning message in update:extensions:check CLI (#43208)

* Untranslated string for warning message in update:extensions:check CLI

* Move language load to command.

---------
This commit is contained in:
Chris Davenport 2024-04-26 16:44:52 +01:00 committed by GitHub
parent bd6ca75b4e
commit 7b48c5b7a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,8 @@ class CheckUpdatesCommand extends AbstractCommand
$symfonyStyle->title('Fetching Extension Updates');
$this->getApplication()->getLanguage()->load('lib_joomla');
// Find all updates
$ret = Updater::getInstance()->findUpdates();

View File

@ -277,7 +277,10 @@ abstract class UpdateAdapter extends AdapterInstance
// Log the exact update site name and URL which could not be loaded
Log::add('Error opening url: ' . $url . ' for update site: ' . $this->updateSiteName, Log::WARNING, 'updater');
$app = Factory::getApplication();
$app->enqueueMessage(Text::sprintf('JLIB_UPDATER_ERROR_OPEN_UPDATE_SITE', $this->updateSiteId, $this->updateSiteName, $url), 'warning');
$app->enqueueMessage(
html_entity_decode(Text::sprintf('JLIB_UPDATER_ERROR_OPEN_UPDATE_SITE', $this->updateSiteId, $this->updateSiteName, $url)),
'warning'
);
return false;
}