From c89a1c6fcb11537166231ce9c85829e9774410c7 Mon Sep 17 00:00:00 2001 From: gine Date: Tue, 24 Jul 2018 17:41:45 +0200 Subject: [PATCH 1/2] confirm localization --- angelleye-includes/angelleye-utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angelleye-includes/angelleye-utility.php b/angelleye-includes/angelleye-utility.php index 266336bb2..ecf7ac1e7 100644 --- a/angelleye-includes/angelleye-utility.php +++ b/angelleye-includes/angelleye-utility.php @@ -1069,7 +1069,7 @@ public function angelleye_paypal_for_woocommerce_order_action_callback($post) { $('#angelleye_payment_submit_button').on('click', function (event) { if( $('#is_submited').val() == 'no') { $('#is_submited').val('yes'); - var r = confirm('Are you sure?'); + var r = confirm(); if (r == true) { jQuery("#angelleye-pw-order-action").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}); return r; From 28202a3955590cea19ffad268dfdc37c972a5edf Mon Sep 17 00:00:00 2001 From: gine Date: Tue, 24 Jul 2018 17:45:11 +0200 Subject: [PATCH 2/2] template for confirm translation --- i18n/languages/paypal-for-woocommerce.pot | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/i18n/languages/paypal-for-woocommerce.pot b/i18n/languages/paypal-for-woocommerce.pot index 68f3f472c..7ee18e051 100644 --- a/i18n/languages/paypal-for-woocommerce.pot +++ b/i18n/languages/paypal-for-woocommerce.pot @@ -460,6 +460,10 @@ msgstr "" msgid "PayPal Transaction History" msgstr "" +#: angelleye-includes/angelleye-utility.php:1072 +msgid "Are you sure?" +msgstr "" + #: angelleye-includes/angelleye-utility.php:1099 msgid "Order Total:" msgstr ""