From c0806524feecb006cce3938384a868b91afa181f Mon Sep 17 00:00:00 2001 From: lLefevre Date: Mon, 4 Jun 2012 07:22:02 +0000 Subject: [PATCH] [-] BO : #PSCFV-2661 : Fix translation when use parent::displayError() in modules git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15798 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/themeinstallator/themeinstallator.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/themeinstallator/themeinstallator.php b/modules/themeinstallator/themeinstallator.php index c46a9cf40..223290c07 100644 --- a/modules/themeinstallator/themeinstallator.php +++ b/modules/themeinstallator/themeinstallator.php @@ -963,7 +963,10 @@ class ThemeInstallator extends Module if ($this->error === false && class_exists('ZipArchive', false) && ($zip = new ZipArchive())) { if (!($zip->open(_EXPORT_FOLDER_.'archive.zip', ZipArchive::OVERWRITE) === true) || !$zip->addEmptyDir('test') === true) - $this->_html .= parent::displayError('Permission denied. Please set permisssion to 666 on this folder: '._EXPORT_FOLDER_); + $this->_html .= parent::displayError(sprintf( + $this->l('Permission denied. Please set permisssion to 666 on this folder: %s'), + EXPORT_FOLDER_ + )); $zip->close(); if ($this->error === false) $this->_html .= parent::displayConfirmation(