Merge pull request #1004 from djfm/bootstrap
// when adding a translation pack, do not install translations for modules that are not on the disk
This commit is contained in:
@@ -838,8 +838,8 @@ class LanguageCore extends ObjectModel
|
||||
if (file_exists($file))
|
||||
{
|
||||
$gz = new Archive_Tar($file, true);
|
||||
$files_list = $gz->listContent();
|
||||
if (!$gz->extract(_PS_TRANSLATIONS_DIR_.'../', false))
|
||||
$files_list = AdminTranslationsController::filterTranslationFiles($gz->listContent());
|
||||
if (!$gz->extractList(AdminTranslationsController::filesListToPaths($files_list), _PS_TRANSLATIONS_DIR_.'../'))
|
||||
$errors[] = Tools::displayError('Cannot decompress the translation file for the following language: ').(string)$iso;
|
||||
// Clear smarty modules cache
|
||||
Tools::clearCache();
|
||||
|
||||
Reference in New Issue
Block a user