From 50bb50b8bfffd749b27613ee0fc57892f6d045f9 Mon Sep 17 00:00:00 2001 From: Andras Date: Tue, 8 Oct 2024 14:56:25 +0200 Subject: [PATCH 01/10] Add a separate tab for the labels --- src/Settings.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/Settings.php b/src/Settings.php index 67ed89b..8aad3fc 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -36,10 +36,34 @@ public function __construct( $options_prefix ) { $this->set_options_prefix( $options_prefix ); + add_action( 'tec_events_settings_tab_display', [ $this, 'add_settings_tab' ] ); + // Add settings specific to OSM add_action( 'admin_init', [ $this, 'add_settings' ] ); } + /** + * Add a tab to the display settings. + * + * @since 1.2.0 + * + * @param \Tribe__Settings_Tab $display_tab Object containing the data for the settings tab. + * + * @return void + */ + public function add_settings_tab( $display_tab ) { + $labels_tab = new \Tribe__Settings_Tab( + 'mytab', + esc_html__( 'Labels', 'the-events-calendar' ), + [ + 'priority' => 20, + 'fields' => [], + ] + ); + + $display_tab->add_child( $labels_tab ); + } + /** * Allow access to set the Settings Helper property. * From 034ecc5480564dda7ef5250a9525824f953f7f3b Mon Sep 17 00:00:00 2001 From: Andras Date: Tue, 8 Oct 2024 15:11:11 +0200 Subject: [PATCH 02/10] Add settings in new way. --- src/Settings.php | 141 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 140 insertions(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index 8aad3fc..051c460 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -3,6 +3,11 @@ namespace Tribe\Extensions\Relabeler; use Tribe__Settings_Manager; +use TEC\Common\Admin\Entities\Div; +use TEC\Common\Admin\Entities\Heading; +use TEC\Common\Admin\Entities\Paragraph; +use TEC\Common\Admin\Entities\Plain_Text; +use Tribe\Utils\Element_Classes as Classes; if ( ! class_exists( Settings::class ) ) { /** @@ -57,13 +62,145 @@ public function add_settings_tab( $display_tab ) { esc_html__( 'Labels', 'the-events-calendar' ), [ 'priority' => 20, - 'fields' => [], + 'fields' => $this->add_settings_2(), ] ); $display_tab->add_child( $labels_tab ); } + /** + * Add the settings to the settings tab. + * + * @since 1.2.0 + * + * @return array + */ + public function add_settings_2( ) { + $settings = [ + 'tec-settings-form__header-block' => ( new Div( new Classes( [ 'tec-settings-form__header-block', 'tec-settings-form__header-block--horizontal' ] ) ) )->add_children( + [ + new Heading( + _x( 'Labels', 'Labels settings header', 'tribe-ext-relabeler' ), + 2, + new Classes( [ 'tec-settings-form__section-header' ] ) + ), + ( new Paragraph( new Classes( [ 'tec-settings-form__section-description' ] ) ) )->add_child( + new Plain_Text( + __( + "The following fields allow you to change the default labels. Inputting something other than the default will change that word everywhere it appears.", + 'tribe-ext-relabeler' + ) + ) + ), + ] + ), + ]; + + $fields = [ + 'labels_heading' => [ + 'type' => 'html', + 'html' => '

' . esc_html__( 'Labels', 'tribe-ext-relabeler' ) . '

', + ], + 'label_event_single' => [ + 'type' => 'text', + 'label' => esc_html__( 'Event', 'the-events-calendar' ), + 'default' => esc_attr__( 'Event', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Singular label for Events.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_event_single_lowercase' => [ + 'type' => 'text', + 'label' => esc_html__( 'event', 'the-events-calendar' ), + 'default' => esc_attr__( 'event', 'the-events-calendar' ), + 'tooltip' => sprintf( + esc_html__( 'Lowercase singular label for Events. You might wish to also modify the "Events URL Slug" found in the %s events settings tab.', 'tribe-ext-relabeler' ), + $this->general_settings_tab_link() + ), + 'validation_type' => 'html', + ], + 'label_event_plural' => [ + 'type' => 'text', + 'label' => esc_html__( 'Events', 'the-events-calendar' ), + 'default' => esc_attr__( 'Events', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Plural label for Events.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_event_plural_lowercase' => [ + 'type' => 'text', + 'label' => esc_html__( 'events', 'the-events-calendar' ), + 'default' => esc_attr__( 'events', 'the-events-calendar' ), + 'tooltip' => sprintf( + esc_html__( 'Lowercase plural label for Events. You might wish to also modify the "Single Event URL Slug" found in the %s events settings tab.', 'tribe-ext-relabeler' ), + $this->general_settings_tab_link() + ), + 'validation_type' => 'html', + ], + 'label_venue_single' => [ + 'type' => 'text', + 'label' => esc_html__( 'Venue', 'the-events-calendar' ), + 'default' => esc_attr__( 'Venue', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Singular label for Venues.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_venue_single_lowercase' => [ + 'type' => 'text', + 'label' => esc_html__( 'venue', 'the-events-calendar' ), + 'default' => esc_attr__( 'venue', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Lowercase singular label for Venues.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_venue_plural' => [ + 'type' => 'text', + 'label' => esc_html__( 'Venues', 'the-events-calendar' ), + 'default' => esc_attr__( 'Venues', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Plural label for Venues.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_venue_plural_lowercase' => [ + 'type' => 'text', + 'label' => esc_html__( 'venues', 'the-events-calendar' ), + 'default' => esc_attr__( 'venues', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Lowercase plural label for Venues.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_organizer_single' => [ + 'type' => 'text', + 'label' => esc_html__( 'Organizer', 'the-events-calendar' ), + 'default' => esc_attr__( 'Organizer', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Singular label for Organizers.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_organizer_single_lowercase' => [ + 'type' => 'text', + 'label' => esc_html__( 'organizer', 'the-events-calendar' ), + 'default' => esc_attr__( 'organizer', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Lowercase singular label for Organizers.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_organizer_plural' => [ + 'type' => 'text', + 'label' => esc_html__( 'Organizers', 'the-events-calendar' ), + 'default' => esc_attr__( 'Organizers', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Plural label for Organizers.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + 'label_organizer_plural_lowercase' => [ + 'type' => 'text', + 'label' => esc_html__( 'organizers', 'the-events-calendar' ), + 'default' => esc_attr__( 'organizers', 'the-events-calendar' ), + 'tooltip' => esc_html__( 'Lowercase plural label for Organizers.', 'tribe-ext-relabeler' ), + 'validation_type' => 'html', + ], + ]; + + $fields = tribe( 'settings' )->wrap_section_content( 'tec-events-settings-calendar-template', $fields ); + + $settings += $fields; + + return $settings; + } + /** * Allow access to set the Settings Helper property. * @@ -318,6 +455,8 @@ public function add_settings() { ], ]; + return $fields; + $this->settings_helper->add_fields( $this->prefix_settings_field_keys( $fields ), 'display', From fd719d19bf8b695523c50671e1e0fe6076abef12 Mon Sep 17 00:00:00 2001 From: Andras Date: Tue, 8 Oct 2024 15:27:57 +0200 Subject: [PATCH 03/10] Fix settings names --- src/Settings.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index 051c460..d62e309 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -97,7 +97,7 @@ public function add_settings_2( ) { ), ]; - $fields = [ + $fields_setup = [ 'labels_heading' => [ 'type' => 'html', 'html' => '

' . esc_html__( 'Labels', 'tribe-ext-relabeler' ) . '

', @@ -194,6 +194,11 @@ public function add_settings_2( ) { ], ]; + $fields = []; + foreach( $fields_setup as $key => $value ) { + $fields[ $this->get_options_prefix() . $key ] = $value; + } + $fields = tribe( 'settings' )->wrap_section_content( 'tec-events-settings-calendar-template', $fields ); $settings += $fields; From 17150f98c202fd7664bf91ceff7bd7122212cd8c Mon Sep 17 00:00:00 2001 From: Andras Date: Tue, 8 Oct 2024 15:28:52 +0200 Subject: [PATCH 04/10] Remove old settings --- src/Settings.php | 117 ----------------------------------------------- 1 file changed, 117 deletions(-) diff --git a/src/Settings.php b/src/Settings.php index d62e309..f721771 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -353,123 +353,6 @@ public function delete_option( $key = '' ) { return Tribe__Settings_Manager::set_options( $options ); } - /** - * Adds a new section of fields to Events > Settings > Display tab, appearing after the "Basic Template" section - * and before the "Date Format Settings" section. - */ - public function add_settings() { - - $fields = [ - 'labels_heading' => [ - 'type' => 'html', - 'html' => '

' . esc_html__( 'Labels', 'tribe-ext-relabeler' ) . '

', - ], - 'labels_helper_text' => [ - 'type' => 'html', - 'html' => '

' . esc_html__( 'The following fields allow you to change the default labels. Inputting something other than the default will change that word everywhere it appears.', 'tribe-ext-relabeler' ) . '

', - ], - 'label_event_single' => [ - 'type' => 'text', - 'label' => esc_html__( 'Event', 'the-events-calendar' ), - 'default' => esc_attr__( 'Event', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Singular label for Events.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_event_single_lowercase' => [ - 'type' => 'text', - 'label' => esc_html__( 'event', 'the-events-calendar' ), - 'default' => esc_attr__( 'event', 'the-events-calendar' ), - 'tooltip' => sprintf( - esc_html__( 'Lowercase singular label for Events. You might wish to also modify the "Events URL Slug" found in the %s events settings tab.', 'tribe-ext-relabeler' ), - $this->general_settings_tab_link() - ), - 'validation_type' => 'html', - ], - 'label_event_plural' => [ - 'type' => 'text', - 'label' => esc_html__( 'Events', 'the-events-calendar' ), - 'default' => esc_attr__( 'Events', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Plural label for Events.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_event_plural_lowercase' => [ - 'type' => 'text', - 'label' => esc_html__( 'events', 'the-events-calendar' ), - 'default' => esc_attr__( 'events', 'the-events-calendar' ), - 'tooltip' => sprintf( - esc_html__( 'Lowercase plural label for Events. You might wish to also modify the "Single Event URL Slug" found in the %s events settings tab.', 'tribe-ext-relabeler' ), - $this->general_settings_tab_link() - ), - 'validation_type' => 'html', - ], - 'label_venue_single' => [ - 'type' => 'text', - 'label' => esc_html__( 'Venue', 'the-events-calendar' ), - 'default' => esc_attr__( 'Venue', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Singular label for Venues.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_venue_single_lowercase' => [ - 'type' => 'text', - 'label' => esc_html__( 'venue', 'the-events-calendar' ), - 'default' => esc_attr__( 'venue', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Lowercase singular label for Venues.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_venue_plural' => [ - 'type' => 'text', - 'label' => esc_html__( 'Venues', 'the-events-calendar' ), - 'default' => esc_attr__( 'Venues', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Plural label for Venues.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_venue_plural_lowercase' => [ - 'type' => 'text', - 'label' => esc_html__( 'venues', 'the-events-calendar' ), - 'default' => esc_attr__( 'venues', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Lowercase plural label for Venues.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_organizer_single' => [ - 'type' => 'text', - 'label' => esc_html__( 'Organizer', 'the-events-calendar' ), - 'default' => esc_attr__( 'Organizer', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Singular label for Organizers.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_organizer_single_lowercase' => [ - 'type' => 'text', - 'label' => esc_html__( 'organizer', 'the-events-calendar' ), - 'default' => esc_attr__( 'organizer', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Lowercase singular label for Organizers.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_organizer_plural' => [ - 'type' => 'text', - 'label' => esc_html__( 'Organizers', 'the-events-calendar' ), - 'default' => esc_attr__( 'Organizers', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Plural label for Organizers.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - 'label_organizer_plural_lowercase' => [ - 'type' => 'text', - 'label' => esc_html__( 'organizers', 'the-events-calendar' ), - 'default' => esc_attr__( 'organizers', 'the-events-calendar' ), - 'tooltip' => esc_html__( 'Lowercase plural label for Organizers.', 'tribe-ext-relabeler' ), - 'validation_type' => 'html', - ], - ]; - - return $fields; - - $this->settings_helper->add_fields( - $this->prefix_settings_field_keys( $fields ), - 'display', - 'tribeEventsDateFormatSettingsTitle', - true - ); - } - /** * Add the options prefix to each of the array keys. * From 29dfccfc9082588df4bd4b94e8d09e999425fe3b Mon Sep 17 00:00:00 2001 From: Andras Date: Tue, 8 Oct 2024 15:36:32 +0200 Subject: [PATCH 05/10] Small fixes --- src/Settings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Settings.php b/src/Settings.php index f721771..51e559e 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -48,7 +48,7 @@ public function __construct( $options_prefix ) { } /** - * Add a tab to the display settings. + * Add a tab to the Display settings. * * @since 1.2.0 * @@ -59,10 +59,10 @@ public function __construct( $options_prefix ) { public function add_settings_tab( $display_tab ) { $labels_tab = new \Tribe__Settings_Tab( 'mytab', - esc_html__( 'Labels', 'the-events-calendar' ), + esc_html_x( 'Labels', 'Settings tab label', 'tribe-ext-relabeler' ), [ 'priority' => 20, - 'fields' => $this->add_settings_2(), + 'fields' => $this->add_settings(), ] ); @@ -76,7 +76,7 @@ public function add_settings_tab( $display_tab ) { * * @return array */ - public function add_settings_2( ) { + public function add_settings() { $settings = [ 'tec-settings-form__header-block' => ( new Div( new Classes( [ 'tec-settings-form__header-block', 'tec-settings-form__header-block--horizontal' ] ) ) )->add_children( [ From 14ac5fb9c427dfca1f35c4a84ac09b71b6c423e6 Mon Sep 17 00:00:00 2001 From: Andras Date: Tue, 8 Oct 2024 23:51:42 +0200 Subject: [PATCH 06/10] Fix how the settings tab URL is retrieved --- src/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.php b/src/Settings.php index 51e559e..4605a3a 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -379,7 +379,7 @@ function ( $key ) { * @return string HTML link element to the general settings tab */ protected function general_settings_tab_link() { - $url = \Tribe__Settings::instance()->get_url( [ 'tab' => 'general' ] ); + $url = tribe( 'settings' )->get_tab_url( 'general-viewing-tab' ); return sprintf( '%1$s', From 7cf68c3ef0190aa1aba8524433d27441b2789b49 Mon Sep 17 00:00:00 2001 From: Andras Date: Wed, 9 Oct 2024 00:18:55 +0200 Subject: [PATCH 07/10] Small fixes' --- src/Settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Settings.php b/src/Settings.php index 4605a3a..e638087 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -58,7 +58,7 @@ public function __construct( $options_prefix ) { */ public function add_settings_tab( $display_tab ) { $labels_tab = new \Tribe__Settings_Tab( - 'mytab', + 'display-labels-tab', esc_html_x( 'Labels', 'Settings tab label', 'tribe-ext-relabeler' ), [ 'priority' => 20, @@ -260,7 +260,7 @@ public function get_options_prefix() { /** * Given an option key, get this extension's option value. * - * This automatically prepends this extension's option prefix so you can just do `$this->get_option( 'a_setting' )`. + * This automatically prepends this extension's option prefix, so you can just do `$this->get_option( 'a_setting' )`. * * @see tribe_get_option() * @@ -337,7 +337,7 @@ public function get_all_raw_options() { /** * Given an option key, delete this extension's option value. * - * This automatically prepends this extension's option prefix so you can just do `$this->delete_option( 'a_setting' )`. + * This automatically prepends this extension's option prefix, so you can just do `$this->delete_option( 'a_setting' )`. * * @param string $key * From 4c894021c1162d8cbad7cde339dab06386c4be28 Mon Sep 17 00:00:00 2001 From: Andras Date: Wed, 9 Oct 2024 00:29:44 +0200 Subject: [PATCH 08/10] Update readme and changelog, incl. version number --- readme.txt | 17 +++++++++++------ tribe-ext-relabeler.php | 8 ++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/readme.txt b/readme.txt index 9467c3b..757397a 100644 --- a/readme.txt +++ b/readme.txt @@ -1,11 +1,11 @@ === The Events Calendar Extension: Relabeler === -Contributors: ModernTribe -Donate link: http://m.tri.be/29 +Contributors: theeventscalendar, aguseo +Donate link: https://evnt.is/29 Tags: events, calendar -Requires at least: 4.9 -Tested up to: 5.3.2 -Requires PHP: 5.6 -Stable tag: 1.1.0 +Requires at least: 6.3 +Tested up to: 6.6.2 +Requires PHP: 7.4 +Stable tag: 1.2.0 License: GPL version 3 or any later version License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -36,6 +36,11 @@ We're always interested in your feedback and our [premium forums](https://theeve == Changelog == += [1.2.0] 2024-10-09 = + +* Fix - Make sure the settings are visible and work with the new TEC admin interface. [TECEXT-334] +* Tweak - Move settings to their separate sub-tab under Events > Settings > Display > Labels. + = [1.1.0] 2020-05-01 = * Tweak - Rework the extension based on the new template for better compatibility. diff --git a/tribe-ext-relabeler.php b/tribe-ext-relabeler.php index 0f89a08..af48dc9 100644 --- a/tribe-ext-relabeler.php +++ b/tribe-ext-relabeler.php @@ -1,13 +1,13 @@ Events > Display for altering labels. For example, you can change the word "Events" to a different word such as "Gigs". + * Description: Adds the Labels settings tab to WP Admin > Events > Settings > Display for altering labels. For example, you can change the word "Events" to a different word such as "Gigs". * Plugin URI: https://theeventscalendar.com/extensions/change-labels-events-venues-organizers/ * GitHub Plugin URI: https://github.com/mt-support/tribe-ext-relabeler - * Version: 1.1.0 + * Version: 1.2.0 * Extension Class: Tribe\Extensions\Relabeler\Main - * Author: Modern Tribe, Inc. - * Author URI: http://m.tri.be/1971 + * Author: The Events Calendar + * Author URI: https://evnt.is/1971 * License: GPLv3 or later * License URI: https://www.gnu.org/licenses/gpl-3.0.html * Text Domain: tribe-ext-relabeler From e27c52395fb3109b661abdb1abafc750bf66764b Mon Sep 17 00:00:00 2001 From: Andras Date: Wed, 9 Oct 2024 00:31:45 +0200 Subject: [PATCH 09/10] Small fixes --- tribe-ext-relabeler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tribe-ext-relabeler.php b/tribe-ext-relabeler.php index af48dc9..2dad154 100644 --- a/tribe-ext-relabeler.php +++ b/tribe-ext-relabeler.php @@ -42,7 +42,7 @@ class Main extends Tribe__Extension { protected $label_cache = []; /** - * Setup the Extension's properties. + * Set up the Extension's properties. * * This always executes even if the required plugins are not present. */ @@ -55,7 +55,7 @@ public function construct() { * * Settings_Helper will append a trailing underscore before each option. * - * @see \Tribe\Extensions\Example\Settings::set_options_prefix() + * @see Settings::set_options_prefix * * @return string */ @@ -118,7 +118,7 @@ public function init() { * @return bool */ private function php_version_check() { - $php_required_version = '5.6'; + $php_required_version = '7.4'; if ( version_compare( PHP_VERSION, $php_required_version, '<' ) ) { if ( From 7741fee47940d3944904cce12e05a21a24e24fc2 Mon Sep 17 00:00:00 2001 From: Andras Date: Fri, 11 Oct 2024 15:22:39 +0200 Subject: [PATCH 10/10] Added reminder text to the heading --- src/Settings.php | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/src/Settings.php b/src/Settings.php index e638087..4ec704c 100644 --- a/src/Settings.php +++ b/src/Settings.php @@ -4,6 +4,7 @@ use Tribe__Settings_Manager; use TEC\Common\Admin\Entities\Div; +use TEC\Common\Admin\Entities\Link; use TEC\Common\Admin\Entities\Heading; use TEC\Common\Admin\Entities\Paragraph; use TEC\Common\Admin\Entities\Plain_Text; @@ -85,13 +86,28 @@ public function add_settings() { 2, new Classes( [ 'tec-settings-form__section-header' ] ) ), - ( new Paragraph( new Classes( [ 'tec-settings-form__section-description' ] ) ) )->add_child( - new Plain_Text( - __( - "The following fields allow you to change the default labels. Inputting something other than the default will change that word everywhere it appears.", - 'tribe-ext-relabeler' - ) - ) + ( new Paragraph( new Classes( [ 'tec-settings-form__section-description' ] ) ) )->add_children( + [ + new Plain_Text( + __( + "The following fields allow you to change the default labels. Inputting something other than the default will change that word everywhere it appears. ", + 'tribe-ext-relabeler' + ) + ), + new Plain_Text( + // Translators: Beginning of the sentence "Remember to resave the permalinks after doing any changes. + __( 'Remember to ', 'tribe-ext-relabeler' ), + ), + new Link( + admin_url( 'options-permalink.php' ), + // Translators: Middle of the sentence "Remember to resave the permalinks after doing any changes. + __( 'resave the permalinks', 'tribe-ext-relabeler' ), + ), + new Plain_Text( + // Translators: End of the sentence "Remember to resave the permalinks after doing any changes. + __( ' after doing any changes.', 'tribe-ext-relabeler' ), + ), + ] ), ] ),