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/integration_settings.js +5 -3 2.3.0 → 2.4.0 View file →
@@ -25,9 +25,9 @@
25 25 var originalCursor = btn.style.cursor;
26 26
27 27 btn.disabled = true;
28 28 btn.style.cursor = "wait";
29 - btn.innerHTML = SUBSCRPT_SPINNER_SVG + (btn.dataset.busyLabel || "Installing…");
29 + btn.innerHTML = SUBSCRPT_SPINNER_SVG + (btn.dataset.busyLabel || wp.i18n.__("Installing…", "subscription"));
30 30
31 31 var data = new FormData();
32 32 data.append("action", "subscrpt_install_integration_plugin");
33 33 data.append("plugin_slug", slug);
@@ -46,9 +46,11 @@
46 46 btn.disabled = false;
47 47 btn.style.cursor = originalCursor;
48 48 btn.innerHTML = originalHTML;
49 49 // eslint-disable-next-line no-alert
50 - window.alert((result.data && result.data.message) || "Installation failed. Please try again.");
50 + window.alert(
51 + (result.data && result.data.message) || wp.i18n.__("Installation failed. Please try again.", "subscription"),
52 + );
51 53 }
52 54 })
53 55 .catch(function () {
54 56 btn.disabled = false;
@@ -54,9 +56,9 @@
54 56 btn.disabled = false;
55 57 btn.style.cursor = originalCursor;
56 58 btn.innerHTML = originalHTML;
57 59 // eslint-disable-next-line no-alert
58 - window.alert("Installation failed. Please try again.");
60 + window.alert(wp.i18n.__("Installation failed. Please try again.", "subscription"));
59 61 });
60 62 }
61 63
62 64 /**