From 48530d28678a66c8a4d8fbd6c6cedee238c1a821 Mon Sep 17 00:00:00 2001 From: NamrataChangani Date: Tue, 10 Jul 2018 18:19:11 +0530 Subject: [PATCH 1/2] Added translation function for Magento_Braintree module's template file. --- .../Braintree/view/frontend/templates/paypal/button.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml b/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml index a244833051082..27a347c8c1c6b 100644 --- a/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml +++ b/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml @@ -30,6 +30,7 @@ $config = [ class="action-braintree-paypal-logo" disabled> Pay with PayPal + alt="escapeHtml(__('Pay with PayPal')) ?>" + title="escapeHtml(__('Pay with PayPal')) ?>"/> From 705dd4f60f39d1834bf7167e4d2ed83a172b7655 Mon Sep 17 00:00:00 2001 From: Stanislav Idolov Date: Tue, 17 Jul 2018 10:44:38 +0300 Subject: [PATCH 2/2] Code style issue fix --- .../Braintree/view/frontend/templates/paypal/button.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml b/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml index 27a347c8c1c6b..d52376da7fee5 100644 --- a/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml +++ b/app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml @@ -30,7 +30,7 @@ $config = [ class="action-braintree-paypal-logo" disabled> <?= $block->escapeHtml(__('Pay with PayPal')) ?> + alt="escapeHtml(__('Pay with PayPal')); ?>" + title="escapeHtml(__('Pay with PayPal')); ?>"/>