diff --git a/app/design/adminhtml/default/default/template/catalog/product/edit.phtml b/app/design/adminhtml/default/default/template/catalog/product/edit.phtml index d118f0c4cd3..897c516b53e 100644 --- a/app/design/adminhtml/default/default/template/catalog/product/edit.phtml +++ b/app/design/adminhtml/default/default/template/catalog/product/edit.phtml @@ -92,9 +92,8 @@ return 1; } - function openDuplicateDialog(keepImagesUrl,skipImagesUrl) { - var html = '

__('Do you want to use the same images on the duplicate product?'); ?>

'; - html += '

__('You can disable this message on'); ?>:
__('System'); ?> > __('Configuration'); ?> > __('Catalog Images'); ?> > __('Product Image'); ?>


'; + function openDuplicateDialog(keepImagesUrl, skipImagesUrl) { + var html = '

__('This product has images. Do you want to create a duplicate product that includes them?'); ?>

'; function duplicateKeepImages(dialogWindow) { dialogWindow.close(); @@ -106,22 +105,35 @@ } Dialog.confirm(html, { - width: 450, - height: 120, - draggable:true, - closable:true, - className:"magento", - windowClassName:"popup-window", - title:'__('Current product has images') ?>', - recenterAuto:false, - hideEffect:Element.hide, - showEffect:Element.show, - id:"duplicate-product", - buttonClass:"form-button", - okLabel:"__('Duplicate with images'); ?>", + width: 505, + height: "auto", + draggable: true, + closable: true, + className: "magento", + windowClassName: "popup-window", + title: '__('Duplicate Product') ?>', + recenterAuto: false, + hideEffect: Element.hide, + showEffect: Element.show, + id: "duplicate-product", + buttonClass: "form-button", + okLabel: "__('Duplicate with images'); ?>", ok: duplicateKeepImages.bind(this), cancelLabel: "__('Duplicate without images'); ?>", cancel: duplicateSkipImages.bind(this), + + onShow: function(dialogWindow) { + var content = document.getElementById('duplicate-product_content'); + if (content) { + content.style.paddingTop = '1.25em'; + } + if (dialogWindow && dialogWindow.element) { + var buttons = dialogWindow.element.querySelectorAll('.magento_buttons'); + buttons.forEach(function(button) { + button.style.textAlign = 'center'; + }); + } + } }); } diff --git a/app/locale/en_US/Mage_Adminhtml.csv b/app/locale/en_US/Mage_Adminhtml.csv index 945e5947641..f6d0f650c21 100644 --- a/app/locale/en_US/Mage_Adminhtml.csv +++ b/app/locale/en_US/Mage_Adminhtml.csv @@ -1312,9 +1312,8 @@ "{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure URL / Base Secure URL. It is highly recommended to change this value in your Magento configuration.","{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure URL / Base Secure URL. It is highly recommended to change this value in your Magento configuration." "Powered by OpenMage","Powered by OpenMage" "At least one currency has to be allowed.","At least one currency has to be allowed." -"Do you want to use the same images on the duplicate product?","Do you want to use the same images on the duplicate product?" -"You can disable this message on","You can disable this message on" -"Current product has images","Current product has images" +"This product has images. Do you want to create a duplicate product that includes them?","This product has images. Do you want to create a duplicate product that includes them?" +"Duplicate Product","Duplicate Product" "Duplicate with images","Duplicate with images" "Duplicate without images","Duplicate without images" "Always ask","Always ask"