// 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
2011-12-20 10:19:58 +00:00
parent 121a314ef1
commit 5af57107f9
2 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -26,8 +26,8 @@
<script type="text/javascript">
var msg_select_one = '{l s='Thanks to select at least one product.'}';
var msg_set_quantity = '{l s='Thanks to set a quantity to add a 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.' js=1}';
$(document).ready(function() {
+11 -11
View File
@@ -31,7 +31,7 @@ function smartyTranslate($params, &$smarty)
{
global $_LANG, $_MODULES, $cookie, $_MODULE, $_LANGPDF;
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;
$string = str_replace('\'', '\\\'', $params['s']);
@@ -59,18 +59,18 @@ function smartyTranslate($params, &$smarty)
if(is_array($_MODULE))
$_MODULES = array_merge($_MODULES, $_MODULE);
$lang_array = $_MODULES;
}
else if ($params['pdf'])
{
}
else if ($params['pdf'])
{
$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))
@include_once($translationsFile);
$key = 'PDF'.md5($string);
$lang_array = $_LANGPDF;
}
if (Tools::file_exists_cache($translationsFile))
@include_once($translationsFile);
$key = 'PDF'.md5($string);
$lang_array = $_LANGPDF;
}
if (is_array($lang_array) AND key_exists($key, $lang_array))
$msg = $lang_array[$key];