// BugFix - PSTEST-51 - Ajout dans un pack - Message d'erreur avec faute d'orthographe

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11399 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte committed 2011-12-20 10:19:58 +00:00
1 parent 121a314ef1
commit 5af57107f9
2 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -26,8 +26,8 @@
<script type="text/javascript"> <script type="text/javascript">
var msg_select_one = '{l s='Thanks to select at least one product.'}'; var msg_select_one = '{l s='Thanks to select at least one product.' js=1}';
var msg_set_quantity = '{l s='Thanks to set a quantity to add a product.'}'; var msg_set_quantity = '{l s='Thanks to set a quantity to add a product.' js=1}';
$(document).ready(function() { $(document).ready(function() {
+9 -9
View File
@@ -31,7 +31,7 @@ function smartyTranslate($params, &$smarty)
{ {
global $_LANG, $_MODULES, $cookie, $_MODULE, $_LANGPDF; global $_LANG, $_MODULES, $cookie, $_MODULE, $_LANGPDF;
if (!isset($params['js'])) $params['js'] = 0; if (!isset($params['js'])) $params['js'] = 0;
if (!isset($params['pdf'])) $params['pdf'] = false; if (!isset($params['pdf'])) $params['pdf'] = false;
if (!isset($params['mod'])) $params['mod'] = false; if (!isset($params['mod'])) $params['mod'] = false;
$string = str_replace('\'', '\\\'', $params['s']); $string = str_replace('\'', '\\\'', $params['s']);
@@ -60,17 +60,17 @@ function smartyTranslate($params, &$smarty)
$_MODULES = array_merge($_MODULES, $_MODULE); $_MODULES = array_merge($_MODULES, $_MODULE);
$lang_array = $_MODULES; $lang_array = $_MODULES;
} }
else if ($params['pdf']) else if ($params['pdf'])
{ {
$iso = Language::getIsoById($cookie->id_lang); $iso = Language::getIsoById($cookie->id_lang);
$translationsFile = _PS_THEME_DIR_.'pdf/lang/'.$iso.'.php'; $translationsFile = _PS_THEME_DIR_.'pdf/lang/'.$iso.'.php';
if (Tools::file_exists_cache($translationsFile)) if (Tools::file_exists_cache($translationsFile))
@include_once($translationsFile); @include_once($translationsFile);
$key = 'PDF'.md5($string); $key = 'PDF'.md5($string);
$lang_array = $_LANGPDF; $lang_array = $_LANGPDF;
} }
if (is_array($lang_array) AND key_exists($key, $lang_array)) if (is_array($lang_array) AND key_exists($key, $lang_array))
$msg = $lang_array[$key]; $msg = $lang_array[$key];