diff --git a/admin-dev/themes/template/products/attachments.tpl b/admin-dev/themes/template/products/attachments.tpl index 012f8432f..623ac8a0f 100644 --- a/admin-dev/themes/template/products/attachments.tpl +++ b/admin-dev/themes/template/products/attachments.tpl @@ -49,6 +49,7 @@ {/foreach}  * +

{l s='Maximum 32 characters.'}

 
@@ -63,7 +64,7 @@

-

{l s='Upload file from your computer'}

+

{l s='Upload file from your computer'} ({$PS_ATTACHMENT_MAXIMUM_SIZE} {l s='Mo maximum'})

 
diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index d93d7ad10..32a7e465a 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3043,7 +3043,8 @@ class AdminProductsControllerCore extends AdminController 'attach2' => Attachment::getAttachments($this->context->language->id, $obj->id, false), 'default_form_language' => $default_language, 'attachment_name' => $attachment_name, - 'attachment_description' => $attachment_description + 'attachment_description' => $attachment_description, + 'PS_ATTACHMENT_MAXIMUM_SIZE' => Configuration::get('PS_ATTACHMENT_MAXIMUM_SIZE') )); } else diff --git a/translations/fr/admin.php b/translations/fr/admin.php index f490d7cbc..3aa2733c1 100644 --- a/translations/fr/admin.php +++ b/translations/fr/admin.php @@ -3420,9 +3420,11 @@ $_LANGADM['AdminProducts4cf86e65aa090f9e3acbfaba9f6af9a4'] = 'Vous êtes sur le $_LANGADM['AdminProducts686e697538050e4664636337cc3b834f'] = 'Créer'; $_LANGADM['AdminProductse9cb217697088a98b1937d111d936281'] = 'Document joint'; $_LANGADM['AdminProducts6492d670e42151cc37574d99f4071f85'] = 'Nom du fichier'; +$_LANGADM['AdminProducts4faaa9989034c771a314b2f2c0c9ede6'] = 'Maximum 32 caractères.'; $_LANGADM['AdminProductsd0042a700e9bdf79689d63ee6846dc0e'] = 'Description :'; $_LANGADM['AdminProducts0b27918290ff5323bea1e3b78a9cf04e'] = 'Fichier'; $_LANGADM['AdminProductsab335fe79ef8a5e26c0dbc23332a7148'] = 'Chargez un fichier depuis votre poste de travail'; +$_LANGADM['AdminProductse3ff314e531b5c6bd338f04126b6f471'] = 'mégaoctets maximum'; $_LANGADM['AdminProducts92b69747c04b60634ec738b2e0d01abc'] = 'Ajouter un nouveau document joint'; $_LANGADM['AdminProducts19f823c6453c2b1ffd09cb715214813d'] = 'Champs requis'; $_LANGADM['AdminProducts9d38722749ec2101e437414ac2a743f9'] = 'Documents joints pour ce produit';