mirror of https://github.com/joomla/joomla-cms.git
[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:
parent
bd6ca75b4e
commit
7b48c5b7a2
|
@ -51,6 +51,8 @@ class CheckUpdatesCommand extends AbstractCommand
|
||||||
|
|
||||||
$symfonyStyle->title('Fetching Extension Updates');
|
$symfonyStyle->title('Fetching Extension Updates');
|
||||||
|
|
||||||
|
$this->getApplication()->getLanguage()->load('lib_joomla');
|
||||||
|
|
||||||
// Find all updates
|
// Find all updates
|
||||||
$ret = Updater::getInstance()->findUpdates();
|
$ret = Updater::getInstance()->findUpdates();
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,10 @@ abstract class UpdateAdapter extends AdapterInstance
|
||||||
// Log the exact update site name and URL which could not be loaded
|
// 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');
|
Log::add('Error opening url: ' . $url . ' for update site: ' . $this->updateSiteName, Log::WARNING, 'updater');
|
||||||
$app = Factory::getApplication();
|
$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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue