AA-454 and AA-470: Update language and bug fix for highlights

Since Course Highlights aren't necessarily weekly (self-paced courses),
update the language to be more generic. And then includes a bug fix to
not send highlights to learners after they have unenrolled from a course.
This commit is contained in:
Dillon Dumesnil
2020-12-04 13:24:26 +00:00
parent ef5832bc74
commit 9e2eab506f
6 changed files with 26 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<div class="course-highlights-setting">
<h2 id="highlights-enabled-label" class="status-highlights-enabled-label">
<%- gettext('Weekly Highlight Emails') %>
<%- gettext('Course Highlight Emails') %>
</h2>
<br>
<% if (highlights_enabled_for_messaging) { %>

View File

@@ -1,7 +1,7 @@
<p>
<%- gettext(
'When you enable weekly highlight emails, learners ' +
'automatically receive weekly email messages for each section that ' +
'When you enable course highlight emails, learners ' +
'automatically receive email messages for each section that ' +
'has highlights. You cannot disable highlights after you start ' +
'sending them.'
) %>
@@ -10,7 +10,7 @@
<% // xss-lint: disable=underscore-not-escaped %>
<%= edx.HtmlUtils.interpolateHtml(
gettext(
'Are you sure you want to enable weekly highlight emails? '
'Are you sure you want to enable course highlight emails? '
+ '{linkStart}Learn more.{linkEnd}'
),
{