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 | includes/Admin/Menu.php +15 -8 2.0.0 → 2.4.0 View file →
@@ -78,9 +78,9 @@
78 78 // Enqueue admin JavaScript for subscription list functionality
79 79 wp_enqueue_script(
80 80 'sdevs_subscription_admin',
81 81 SUBSCRPT_ASSETS . '/js/admin.js',
82 - array( 'jquery' ),
82 + array( 'jquery', 'wp-i18n' ),
83 83 SUBSCRPT_VERSION,
84 84 true
85 85 );
86 86
@@ -96,12 +96,13 @@
96 96 // admin components so the cadence picker (adv-select) is ready.
97 97 wp_enqueue_script(
98 98 'subscrpt-onboarding-wizard',
99 99 SUBSCRPT_ASSETS . '/js/admin/onboarding-wizard.js',
100 - array( 'jquery', 'subscrpt_admin_components' ),
100 + array( 'jquery', 'subscrpt_admin_components', 'wp-i18n' ),
101 101 SUBSCRPT_VERSION,
102 102 true
103 103 );
104 + wp_set_script_translations( 'subscrpt-onboarding-wizard', 'subscription', SUBSCRPT_PATH . '/languages' );
104 105 $subscrpt_wizard_has_products = (bool) wc_get_products(
105 106 array(
106 107 'status' => array( 'publish', 'draft', 'pending', 'private' ),
107 108 'limit' => 1,
@@ -350,13 +351,16 @@
350 351 */
351 352 public function render_admin_footer() {
352 353 ?>
353 354 <div style="text-align:center;margin:38px 0 0 0;font-size:14px;color:#888;">
354 - Made with <span style="color:#e25555;font-size:1.1em;">♥</span> by the WPSubscription Team
355 + <?php
356 + /* translators: %s: a heart symbol. */
357 + printf( esc_html__( 'Made with %s by the WPSubscription Team', 'subscription' ), '<span style="color:#e25555;font-size:1.1em;">♥</span>' );
358 + ?>
355 359 <div style="margin-top:6px;">
356 - <a href="https://wpsubscription.co/contact?utm_source=plugin&utm_medium=admin&utm_campaign=support" target="_blank" style="color:#2563eb;text-decoration:none;">Support</a>
360 + <a href="https://wpsubscription.co/contact?utm_source=plugin&utm_medium=admin&utm_campaign=support" target="_blank" style="color:#2563eb;text-decoration:none;"><?php esc_html_e( 'Support', 'subscription' ); ?></a>
357 361 &nbsp;/&nbsp;
358 - <a href="https://docs.wpsubscription.co/en?utm_source=plugin&utm_medium=admin&utm_campaign=docs" target="_blank" style="color:#2563eb;text-decoration:none;">Docs</a>
362 + <a href="https://docs.wpsubscription.co/en?utm_source=plugin&utm_medium=admin&utm_campaign=docs" target="_blank" style="color:#2563eb;text-decoration:none;"><?php esc_html_e( 'Docs', 'subscription' ); ?></a>
359 363 </div>
360 364 </div>
361 365 <?php
362 366 }
@@ -722,13 +726,16 @@
722 726
723 727 include __DIR__ . '/views/subscription-list.php';
724 728 ?>
725 729 <div style="text-align:center;margin:38px 0 0 0;font-size:14px;color:#888;">
726 - Made with <span style="color:#e25555;font-size:1.1em;">♥</span> by the WPSubscription Team
730 + <?php
731 + /* translators: %s: a heart symbol. */
732 + printf( esc_html__( 'Made with %s by the WPSubscription Team', 'subscription' ), '<span style="color:#e25555;font-size:1.1em;">♥</span>' );
733 + ?>
727 734 <div style="margin-top:6px;">
728 - <a href="https://wpsubscription.co/contact?utm_source=plugin&utm_medium=admin&utm_campaign=support" target="_blank" style="color:#2563eb;text-decoration:none;">Support</a>
735 + <a href="https://wpsubscription.co/contact?utm_source=plugin&utm_medium=admin&utm_campaign=support" target="_blank" style="color:#2563eb;text-decoration:none;"><?php esc_html_e( 'Support', 'subscription' ); ?></a>
729 736 &nbsp;/&nbsp;
730 - <a href="https://docs.wpsubscription.co/en?utm_source=plugin&utm_medium=admin&utm_campaign=docs" target="_blank" style="color:#2563eb;text-decoration:none;">Docs</a>
737 + <a href="https://docs.wpsubscription.co/en?utm_source=plugin&utm_medium=admin&utm_campaign=docs" target="_blank" style="color:#2563eb;text-decoration:none;"><?php esc_html_e( 'Docs', 'subscription' ); ?></a>
731 738 </div>
732 739 </div>
733 740 <?php
734 741 }