Skip to content

Commit 628ba65

Browse files
authored
Merge pull request #753 from ProgressPlanner/filip/localize-sidebar-name
Apply branding to Editor sidebar name
2 parents ba8e407 + 445224d commit 628ba65

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

classes/admin/class-enqueue.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,11 @@ public function get_localized_strings() {
371371
'nextBtnText' => \esc_html__( 'Next →', 'progress-planner' ),
372372
'prevBtnText' => \esc_html__( '← Previous', 'progress-planner' ),
373373
'pageType' => \esc_html__( 'Page type', 'progress-planner' ),
374-
'progressPlannerSidebar' => \esc_html__( 'Progress Planner Sidebar', 'progress-planner' ),
374+
'progressPlannerSidebar' => \sprintf(
375+
/* translators: %s: The plugin name. */
376+
\esc_html__( '%s Sidebar', 'progress-planner' ),
377+
\progress_planner()->get_ui__branding()->get_admin_menu_name()
378+
),
375379
'progressText' => \sprintf(
376380
/* translators: %1$s: The current step number. %2$s: The total number of steps. */
377381
\esc_html__( 'Step %1$s of %2$s', 'progress-planner' ),

0 commit comments

Comments
 (0)