diff --git a/changelog.txt b/changelog.txt index 1f548dd..8db75a9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,8 @@ -*** WooCommerce Subscriptions Changelog *** +*** Woo Subscriptions Changelog *** + +2023-09-21 - version 5.5.0 +* Tweak - Use admin theme color in selectors. +* Tweak - Change plugin name to Woo Subscriptions. 2023-08-11 - version 5.4.0 * Add: Introduce an updated empty state screen for the WooCommerce > Subscriptions list table. diff --git a/includes/admin/class-wcs-admin-reports.php b/includes/admin/class-wcs-admin-reports.php index 5413d26..b6b1b55 100644 --- a/includes/admin/class-wcs-admin-reports.php +++ b/includes/admin/class-wcs-admin-reports.php @@ -55,7 +55,7 @@ class WCS_Admin_Reports { $admin_notice->set_html_content( sprintf( '
%s
%s
', - _x( 'WooCommerce Subscriptions - Reports Not Available', 'heading used in an admin notice', 'woocommerce-subscriptions' ), + _x( 'Woo Subscriptions - Reports Not Available', 'heading used in an admin notice', 'woocommerce-subscriptions' ), sprintf( // translators: placeholders $1 and $2 are opening tags linking to the WooCommerce documentation on HPOS and data synchronization. Placeholder $3 is a closing link () tag. __( 'Subscription reports are incompatible with the %1$sWooCommerce data storage features%3$s enabled on your store. Please enable %2$stable synchronization%3$s if you wish to use subscription reports.', 'woocommerce-subscriptions' ), diff --git a/includes/class-wc-subscriptions-dependency-manager.php b/includes/class-wc-subscriptions-dependency-manager.php index 7af2569..5a706c9 100644 --- a/includes/class-wc-subscriptions-dependency-manager.php +++ b/includes/class-wc-subscriptions-dependency-manager.php @@ -153,10 +153,10 @@ class WC_Subscriptions_Dependency_Manager { ); // translators: 1$-2$: opening and closing tags, 3$-4$: link tags, takes to woocommerce plugin on wp.org, 5$-6$: opening and closing link tags, leads to plugins.php in admin - $admin_notice_content = sprintf( esc_html__( '%1$sWooCommerce Subscriptions is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for WooCommerce Subscriptions to work. Please %5$sinstall & activate WooCommerce »%6$s', 'woocommerce-subscriptions' ), '', '', '', '', '', '' ); + $admin_notice_content = sprintf( esc_html__( '%1$sWoo Subscriptions is inactive.%2$s The %3$sWooCommerce plugin%4$s must be active for Woo Subscriptions to work. Please %5$sinstall & activate Woo »%6$s', 'woocommerce-subscriptions' ), '', '', '', '', '', '' ); } elseif ( ! $this->is_woocommerce_version_supported() ) { // translators: 1$-2$: opening and closing tags, 3$: minimum supported WooCommerce version, 4$-5$: opening and closing link tags, leads to plugin admin - $admin_notice_content = sprintf( esc_html__( '%1$sWooCommerce Subscriptions is inactive.%2$s This version of Subscriptions requires WooCommerce %3$s or newer. Please %4$supdate WooCommerce to version %3$s or newer »%5$s', 'woocommerce-subscriptions' ), '', '', $this->minimum_supported_wc_version, '', '' ); + $admin_notice_content = sprintf( esc_html__( '%1$sWoo Subscriptions is inactive.%2$s This version of Subscriptions requires WooCommerce %3$s or newer. Please %4$supdate WooCommerce to version %3$s or newer »%5$s', 'woocommerce-subscriptions' ), '', '', $this->minimum_supported_wc_version, '', '' ); } if ( $admin_notice_content ) { diff --git a/includes/class-wc-subscriptions-plugin.php b/includes/class-wc-subscriptions-plugin.php index c306bdf..7cdbb9f 100644 --- a/includes/class-wc-subscriptions-plugin.php +++ b/includes/class-wc-subscriptions-plugin.php @@ -55,7 +55,7 @@ class WC_Subscriptions_Plugin extends WC_Subscriptions_Core_Plugin { $notice = new WCS_Admin_Notice( 'error' ); // translators: 1-2: opening/closing tags, 3: Subscriptions version. - $notice->set_simple_content( sprintf( __( '%1$sWarning!%2$s We can see the %1$sWooCommerce Subscriptions Early Renewal%2$s plugin is active. Version %3$s of %1$sWooCommerce Subscriptions%2$s comes with that plugin\'s functionality packaged into the core plugin. Please deactivate WooCommerce Subscriptions Early Renewal to avoid any conflicts.', 'woocommerce-subscriptions' ), '', '', $this->get_plugin_version() ) ); // get_plugin_version() is used here to report the correct WCS version. + $notice->set_simple_content( sprintf( __( '%1$sWarning!%2$s We can see the %1$sWooCommerce Subscriptions Early Renewal%2$s plugin is active. Version %3$s of %1$sWoo Subscriptions%2$s comes with that plugin\'s functionality packaged into the core plugin. Please deactivate WooCommerce Subscriptions Early Renewal to avoid any conflicts.', 'woocommerce-subscriptions' ), '', '', $this->get_plugin_version() ) ); // get_plugin_version() is used here to report the correct WCS version. $notice->set_actions( array( array( @@ -202,7 +202,7 @@ class WC_Subscriptions_Plugin extends WC_Subscriptions_Core_Plugin { sprintf( // translators: $1-$2: opening and closing tags, $3-$4: opening and closing tags. __( - '%1$sWooCommerce Subscriptions Installed%2$s – %3$sYou\'re ready to start selling subscriptions!%4$s', + '%1$sWoo Subscriptions Installed%2$s – %3$sYou\'re ready to start selling subscriptions!%4$s', 'woocommerce-subscriptions' ), '', diff --git a/includes/class-wcs-customer-suspension-manager.php b/includes/class-wcs-customer-suspension-manager.php index 3b7b8f0..3bf4b65 100644 --- a/includes/class-wcs-customer-suspension-manager.php +++ b/includes/class-wcs-customer-suspension-manager.php @@ -35,6 +35,7 @@ class WCS_Customer_Suspension_Manager { 'css' => 'min-width:50px;', 'default' => 0, 'type' => 'select', + 'class' => 'wc-enhanced-select', 'options' => apply_filters( 'woocommerce_subscriptions_max_customer_suspension_range', array_merge( range( 0, 12 ), array( 'unlimited' => 'Unlimited' ) ) ), 'desc_tip' => __( 'Set a maximum number of times a customer can suspend their account for each billing period. For example, for a value of 3 and a subscription billed yearly, if the customer has suspended their account 3 times, they will not be presented with the option to suspend their account until the next year. Store managers will always be able to suspend an active subscription. Set this to 0 to turn off the customer suspension feature completely.', 'woocommerce-subscriptions' ), ); diff --git a/includes/class-wcs-subscriber-role-manager.php b/includes/class-wcs-subscriber-role-manager.php index 1f8c46c..f07670e 100644 --- a/includes/class-wcs-subscriber-role-manager.php +++ b/includes/class-wcs-subscriber-role-manager.php @@ -50,6 +50,7 @@ class WCS_Subscriber_Role_Manager { 'css' => 'min-width:150px;', 'default' => 'subscriber', 'type' => 'select', + 'class' => 'wc-enhanced-select', 'options' => $roles_options, 'desc_tip' => true, ), @@ -61,6 +62,7 @@ class WCS_Subscriber_Role_Manager { 'css' => 'min-width:150px;', 'default' => 'customer', 'type' => 'select', + 'class' => 'wc-enhanced-select', 'options' => $roles_options, 'desc_tip' => true, ), diff --git a/includes/class-wcs-upgrade-notice-manager.php b/includes/class-wcs-upgrade-notice-manager.php index 3c307c8..23601ab 100644 --- a/includes/class-wcs-upgrade-notice-manager.php +++ b/includes/class-wcs-upgrade-notice-manager.php @@ -102,7 +102,7 @@ class WCS_Upgrade_Notice_Manager { ); // translators: placeholder is Subscription version string ('3.1') - $notice->set_heading( sprintf( __( 'Welcome to WooCommerce Subscriptions %s!', 'woocommerce-subscriptions' ), $version ) ); + $notice->set_heading( sprintf( __( 'Welcome to Woo Subscriptions %s!', 'woocommerce-subscriptions' ), $version ) ); $notice->set_content_template( 'update-welcome-notice.php', WC_Subscriptions_Core_Plugin::instance()->get_subscriptions_core_directory() . '/includes/upgrades/templates/', array( 'version' => $version, 'features' => $features, diff --git a/includes/switching/class-wc-subscriptions-switcher.php b/includes/switching/class-wc-subscriptions-switcher.php index 5e1e029..bfe58ee 100644 --- a/includes/switching/class-wc-subscriptions-switcher.php +++ b/includes/switching/class-wc-subscriptions-switcher.php @@ -405,6 +405,7 @@ class WC_Subscriptions_Switcher { 'css' => 'min-width:150px;', 'default' => 'no', 'type' => 'select', + 'class' => 'wc-enhanced-select', 'options' => array( 'no' => _x( 'Never', 'when to allow a setting', 'woocommerce-subscriptions' ), 'virtual-upgrade' => _x( 'For Upgrades of Virtual Subscription Products Only', 'when to prorate recurring fee when switching', 'woocommerce-subscriptions' ), @@ -422,6 +423,7 @@ class WC_Subscriptions_Switcher { 'css' => 'min-width:150px;', 'default' => 'no', 'type' => 'select', + 'class' => 'wc-enhanced-select', 'options' => array( 'no' => _x( 'Never (do not charge a sign up fee)', 'when to prorate signup fee when switching', 'woocommerce-subscriptions' ), 'full' => _x( 'Never (charge the full sign up fee)', 'when to prorate signup fee when switching', 'woocommerce-subscriptions' ), @@ -437,6 +439,7 @@ class WC_Subscriptions_Switcher { 'css' => 'min-width:150px;', 'default' => 'no', 'type' => 'select', + 'class' => 'wc-enhanced-select', 'options' => array( 'no' => _x( 'Never', 'when to allow a setting', 'woocommerce-subscriptions' ), 'virtual' => _x( 'For Virtual Subscription Products Only', 'when to prorate first payment / subscription length', 'woocommerce-subscriptions' ), diff --git a/languages/woocommerce-subscriptions.pot b/languages/woocommerce-subscriptions.pot index 49fcf9f..8f24e70 100644 --- a/languages/woocommerce-subscriptions.pot +++ b/languages/woocommerce-subscriptions.pot @@ -1,22 +1,21 @@ # Copyright (C) 2023 WooCommerce -# This file is distributed under the same license as the WooCommerce Subscriptions plugin. +# This file is distributed under the same license as the Woo Subscriptions plugin. msgid "" msgstr "" -"Project-Id-Version: WooCommerce Subscriptions 5.4.0\n" +"Project-Id-Version: Woo Subscriptions 5.5.0\n" "Report-Msgid-Bugs-To: https://woocommerce.com/contact-us\n" "Last-Translator: FULL NAME