// Fix the display of errors on adding localization pack

This commit is contained in:
Rémi Gaillard
2013-03-25 15:54:19 +01:00
parent d1b044bb83
commit 67b3978397
+1 -2
View File
@@ -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)