// Fix the display of errors on adding localization pack
This commit is contained in:
@@ -295,7 +295,6 @@ class LocalizationPackCore
|
||||
// if we are not in an installation context or if the pack is not available in the local directory
|
||||
if (Language::getIdByIso($attributes['iso_code']) && !$install_mode)
|
||||
continue;
|
||||
|
||||
$errors = Language::downloadAndInstallLanguagePack($attributes['iso_code'], $attributes['version']);
|
||||
if ($errors !== true && is_array($errors))
|
||||
$this->_errors = array_merge($this->_errors, $errors);
|
||||
@@ -304,7 +303,7 @@ class LocalizationPackCore
|
||||
if (!count($this->_errors) && $install_mode && isset($attributes['iso_code']) && count($xml->languages->language) == 1)
|
||||
$this->iso_code_lang = $attributes['iso_code'];
|
||||
|
||||
return true;
|
||||
return !count($this->_errors);
|
||||
}
|
||||
|
||||
protected function _installUnits($xml)
|
||||
|
||||
Reference in New Issue
Block a user