Skip to content

Commit b29ecd0

Browse files
committed
Filter Ravi's name
1 parent 945fc85 commit b29ecd0

3 files changed

Lines changed: 24 additions & 5 deletions

File tree

classes/suggested-tasks/providers/class-email-sending.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ public function init() {
125125
$this->email_subject = \esc_html__( 'Your Progress Planner test message!', 'progress-planner' );
126126
$this->email_content = \sprintf(
127127
// translators: %1$s the admin URL.
128-
\__( 'You just used Progress Planner to verify if sending email works on your website. <br><br> The good news; it does! <a href="%1$s" target="_self">Click here to mark Ravi\'s Recommendation as completed</a>.', 'progress-planner' ),
129-
\admin_url( 'admin.php?page=progress-planner&prpl_complete_task=' . $this->get_task_id() )
128+
\__( 'You just used Progress Planner to verify if sending email works on your website. <br><br> The good news; it does! <a href="%1$s" target="_self">Click here to mark %2$s\'s Recommendation as completed</a>.', 'progress-planner' ),
129+
\admin_url( 'admin.php?page=progress-planner&prpl_complete_task=' . $this->get_task_id() ),
130+
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )
130131
);
131132
}
132133

views/dashboard-widgets/score.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@
4747

4848
<hr style="margin: 1rem 0">
4949

50-
<h3><?php \esc_html_e( 'Ravi\'s Recommendations', 'progress-planner' ); ?></h3>
50+
<h3>
51+
<?php
52+
printf(
53+
/* translators: %s: Ravi's name. */
54+
\esc_html__( '%s\'s Recommendations', 'progress-planner' ),
55+
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )
56+
);
57+
?>
58+
</h3>
5159
<ul style="display:none"></ul>
5260
<p class="prpl-suggested-tasks-loading">
5361
<?php \esc_html_e( 'Loading tasks...', 'progress-planner' ); ?>

views/page-widgets/suggested-tasks.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,22 @@
1515
<?php
1616
echo \progress_planner()->get_ui__branding()->get_widget_title( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1717
'suggested-tasks',
18-
\esc_html__( 'Ravi\'s Recommendations', 'progress-planner' )
18+
sprintf(
19+
/* translators: %s: Ravi's name. */
20+
\esc_html__( '%s\'s Recommendations', 'progress-planner' ),
21+
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )
22+
)
1923
);
2024
?>
2125
</h2>
2226
<p class="prpl-suggested-tasks-widget-description">
23-
<?php \esc_html_e( 'Complete a task from Ravi’s Recommendations to improve your site and earn points toward this month’s badge!', 'progress-planner' ); ?>
27+
<?php
28+
printf(
29+
/* translators: %s: Ravi's name. */
30+
\esc_html__( 'Complete a task from %s’s Recommendations to improve your site and earn points toward this month’s badge!', 'progress-planner' ),
31+
\esc_html( \progress_planner()->get_ui__branding()->get_ravi_name() )
32+
);
33+
?>
2434
</p>
2535

2636
<ul style="display:none"></ul>

0 commit comments

Comments
 (0)