Skip to content

Commit

Permalink
Merge pull request #1181 from gine/fix-confirm-translation
Browse files Browse the repository at this point in the history
Fix confirm translation
  • Loading branch information
Andrew Angell committed Aug 2, 2018
2 parents 7a55d72 + 28202a3 commit 7efd13c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(<?php echo __( 'Are you sure?', 'paypal-for-woocommerce' ) ?>);
if (r == true) {
jQuery("#angelleye-pw-order-action").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});
return r;
Expand Down
4 changes: 4 additions & 0 deletions i18n/languages/paypal-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 7efd13c

Please sign in to comment.