PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.4.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.4.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | assets/js/admin.js +12 -6 2.3.0 → 2.4.0 View file →
@@ -90,15 +90,15 @@
90 90 var action2 = jQuery('[name="action2"]').val();
91 91 var selectedAction = action && action !== "-1" ? action : action2;
92 92
93 93 if (!selectedAction || selectedAction === "-1") {
94 - alert("Please select a bulk action.");
94 + alert(wp.i18n.__("Please select a bulk action.", "subscription"));
95 95 return false;
96 96 }
97 97
98 98 var checkedBoxes = jQuery('input[name="subscription_ids[]"]:checked');
99 99 if (checkedBoxes.length === 0) {
100 - alert("Please select at least one subscription.");
100 + alert(wp.i18n.__("Please select at least one subscription.", "subscription"));
101 101 return false;
102 102 }
103 103
104 104 // Handle bulk action via AJAX (confirm already handled by adv-select data-confirm)
@@ -114,9 +114,9 @@
114 114
115 115 // Show loading state
116 116 var submitButton = jQuery('input[name="bulk_action"]:focus, input[name="bulk_action2"]:focus');
117 117 var originalText = submitButton.val();
118 - submitButton.val("Processing...").prop("disabled", true);
118 + submitButton.val(wp.i18n.__("Processing…", "subscription")).prop("disabled", true);
119 119
120 120 // Make AJAX request
121 121 jQuery.ajax({
122 122 url: wp_subscription_ajax.ajaxurl,
@@ -136,13 +136,16 @@
136 136 window.location.reload();
137 137 }, 1000);
138 138 } else {
139 139 // Show error message
140 - showAdminNotice(response.data.message || "An error occurred while processing the bulk action.", "error");
140 + showAdminNotice(
141 + response.data.message || wp.i18n.__("An error occurred while processing the bulk action.", "subscription"),
142 + "error",
143 + );
141 144 }
142 145 },
143 146 error: function () {
144 - showAdminNotice("An error occurred while processing the bulk action.", "error");
147 + showAdminNotice(wp.i18n.__("An error occurred while processing the bulk action.", "subscription"), "error");
145 148 },
146 149 complete: function () {
147 150 // Reset button state
148 151 submitButton.val(originalText).prop("disabled", false);
@@ -184,9 +187,12 @@
184 187 "simple" !== subscrpt_product_type.val() &&
185 188 "variable" !== subscrpt_product_type.val()
186 189 ) {
187 190 const confirmTypeChange = confirm(
188 - "Are you sure to change the product type ? If product type changed then You'll lose related subscriptions beacuse of they can't be renewed !",
191 + wp.i18n.__(
192 + "Are you sure you want to change the product type? Its subscriptions can no longer be renewed.",
193 + "subscription",
194 + ),
189 195 );
190 196 if (confirmTypeChange) {
191 197 latest_value_of_subscrpt_product_type = subscrpt_product_type.val();
192 198 } else {