[-] BO : #PSTEST-22 : Orthographe à revoir dans combinaisons de la fiche produit
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11607 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -184,7 +184,7 @@
|
||||
<p class="block">
|
||||
{if !$product->productDownload->checkFile()}
|
||||
<div style="padding:5px;width:50%;float:left;margin-right:20px;border-right:1px solid #CCCCCC">
|
||||
<p>{l s='Your server\'s maximum upload file size is'}: {$upload_max_filesize}</p>
|
||||
<p>{l s='Your server\'s maximum upload file size is'}: {$upload_max_filesize} {l s='Mo'}</p>
|
||||
{if $show_file_input}
|
||||
<label id="virtual_product_file_label" for="virtual_product_file" class="t">{l s='Upload a file'}</label>
|
||||
<p><input type="file" id="virtual_product_file" name="virtual_product_file" onchange="uploadFile();" maxlength="{$upload_max_filesize}" /></p>
|
||||
|
||||
+18
-7
@@ -2000,16 +2000,27 @@ FileETag INode MTime Size
|
||||
{
|
||||
$memory_limit = @ini_get('memory_limit');
|
||||
|
||||
if (preg_match('/[0-9]+k/i', $memory_limit))
|
||||
return 1024 * (int)$memory_limit;
|
||||
return self::getOctets($memory_limit);
|
||||
}
|
||||
|
||||
if (preg_match('/[0-9]+m/i', $memory_limit))
|
||||
return 1024 * 1024 * (int)$memory_limit;
|
||||
/**
|
||||
* getOctet allow to gets the value of a configuration option in octet
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @return int the value of a configuration option in octet
|
||||
*/
|
||||
public static function getOctets($option)
|
||||
{
|
||||
if (preg_match('/[0-9]+k/i', $option))
|
||||
return 1024 * (int)$option;
|
||||
|
||||
if (preg_match('/[0-9]+g/i', $memory_limit))
|
||||
return 1024 * 1024 * 1024 * (int)$memory_limit;
|
||||
if (preg_match('/[0-9]+m/i', $option))
|
||||
return 1024 * 1024 * (int)$option;
|
||||
|
||||
return $memory_limit;
|
||||
if (preg_match('/[0-9]+g/i', $option))
|
||||
return 1024 * 1024 * 1024 * (int)$option;
|
||||
|
||||
return $option;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2116,7 +2116,13 @@ class AdminProductsControllerCore extends AdminController
|
||||
$this->tpl_form_vars['form_action'] = $this->context->link->getAdminLink('AdminProducts').'&id_product='.$id_product;
|
||||
$this->tpl_form_vars['id_product'] = $id_product;
|
||||
|
||||
$this->tpl_form_vars['upload_max_filesize'] = ini_get('upload_max_filesize');
|
||||
// Transform configuration option 'upload_max_filesize' in octets
|
||||
$upload_max_filesize = Tools::getOctets(ini_get('upload_max_filesize'));
|
||||
|
||||
// Transform configuration option 'upload_max_filesize' in MegaOctets
|
||||
$upload_max_filesize = ($upload_max_filesize / 1024) / 1024;
|
||||
|
||||
$this->tpl_form_vars['upload_max_filesize'] = $upload_max_filesize;
|
||||
$this->tpl_form_vars['country_display_tax_label'] = $this->context->country->display_tax_label;
|
||||
|
||||
// let's calculate this once for all
|
||||
|
||||
@@ -2071,7 +2071,6 @@ $_LANGADM['AdminWarehouses3f1323a2645bd9428817846b6307efba'] = 'Dernier Entre, P
|
||||
$_LANGADM['AdminWarehousesc717e284ad698ebcb62ec4b4d4f5f0e1'] = 'Méthode de valorisation des stocks';
|
||||
$_LANGADM['AdminWarehouses0b2d4aa7969d42e67024699d6412331a'] = 'Devise de valorisation du stock';
|
||||
$_LANGADM['AdminWarehouses38fb7d24e0d60a048f540ecb18e13376'] = 'Enregistrer';
|
||||
$_LANGADM['AdminWarehouses091eb00ec964f313b11a7ed6eec53e57'] = 'Il n\'est pas possible de supprimer un entrepôt lorsqu\'il a du stock.';
|
||||
$_LANGADM['AdminWarehouses16884d14c85c93e7af0bd926f180b1c0'] = 'Il n\'est pas possible de supprimer un entrepôt s\'il y a des commandes fournisseurs le concernant en cours.';
|
||||
$_LANGADM['AdminWarehouses16c05f4ad48b2ec0b1b5fdfbd47a5153'] = 'Cette interface vous permet d\'afficher des informations détaillées sur vos entrepôts.';
|
||||
$_LANGADM['AdminWarehouses3c4553c80a6de049526f83f0ec59f6ee'] = 'Informations générales';
|
||||
@@ -4051,6 +4050,7 @@ $_LANGADM['AdminProducts6006a8509fdf7c46885562ae6cd70d7f'] = 'a été uploadé a
|
||||
$_LANGADM['AdminProducts6624493bea28e951b0e89cb12a324bcf'] = 'Est-ce un produit virtuel?';
|
||||
$_LANGADM['AdminProductsf8d71f7aaec730f4f1620506a158728a'] = 'Ce produit a un fichier associé ?';
|
||||
$_LANGADM['AdminProducts63b28593e2858476903ac94ca8697341'] = 'Votre répertoire de dépôt de fichier n\'a pas les permissions suffisantes en écriture';
|
||||
$_LANGADM['AdminProductsc08df9bb5fb44242a6291b1eee5d09ad'] = 'Mégaoctets';
|
||||
$_LANGADM['AdminProducts9c4cae7cfe29fcbd5a5b5d866593f294'] = 'Vous avez utilisé des déclinaisons, pour cette raison vous ne pouvez pas éditer votre fichier ici, mais dans l\'onglet \"Déclinaisons\"';
|
||||
$_LANGADM['AdminProducts37cfa6b25252ad29f15194e30147f02b'] = 'Position dans l\'entrepôt';
|
||||
$_LANGADM['AdminProductsf5a47e822b7e7006f2b547d97f10aa28'] = 'Cette interface vous permet de choisir les entrepôts dans lesquels le produit est stocké.';
|
||||
|
||||
Reference in New Issue
Block a user