// BugFix - PSTEST-51 - Ajout dans un pack - Message d'erreur avec faute d'orthographe
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user