Skip to content

Commit 697d833

Browse files
committed
edit some messages
1 parent d165234 commit 697d833

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

django_email_learning/personalised/api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def post(self, request, *args, **kwargs): # type: ignore[no-untyped-def]
9696

9797
if failed_submissions_count > 1:
9898
message = _(
99-
"You have failed the quiz twice. Unfortunatly you can not continue the course on this enrollment. But you can enroll again to retake the course."
99+
"You have failed the quiz twice. Unfortunately, you cannot continue this course with this enrollment. You can enroll again to retake the course."
100100
)
101101
logger.info(
102102
f"Learner ID {enrolment.learner.id} has failed the quiz twice for Course {enrolment.course.title}. "

django_email_learning/personalised/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,20 +103,20 @@ def get(self, request, *args, **kwargs) -> HttpResponse: # type: ignore[no-unty
103103
enrolment = delivery.enrollment
104104
if enrolment.status != EnrollmentStatus.ACTIVE:
105105
return self.error_response(
106-
message=_("Quiz is not valid anymore"),
106+
message=_("This quiz is no longer valid."),
107107
exception=ValueError("Enrolment is not active"),
108108
title=_("Invalid Quiz"),
109109
)
110110
quiz = delivery.course_content.quiz
111111
if not quiz:
112112
return self.error_response(
113-
message=_("No quiz associated with this link"),
113+
message=_("There is no quiz associated with this link."),
114114
exception=None,
115115
title=_("Invalid Quiz"),
116116
)
117117
if not delivery.course_content.is_published:
118118
return self.error_response(
119-
message=_("No valid quiz associated with this link"),
119+
message=_("There is no valid quiz associated with this link."),
120120
exception=ValueError("Quiz is not published"),
121121
title=_("Invalid Quiz"),
122122
)
@@ -376,7 +376,7 @@ def get(self, request, *args, **kwargs) -> HttpResponse: # type: ignore[no-unty
376376
else "",
377377
"qrcodeUrl": absolute_media_url,
378378
"localeMessages": {
379-
"title": _("Certificate Of Completion"),
379+
"title": _("Certificate of Completion"),
380380
"description": _(
381381
"This certifies that {name} has successfully completed the {course_title} course"
382382
).format(

django_email_learning/platform/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def get_locale_messages(self) -> Dict[str, str]:
256256
"deadline_tooltip": _("Maximum time allowed to complete the quiz"),
257257
"question_selection_strategy": _("Selection Strategy"),
258258
"question_selection_strategy_tooltip": _(
259-
"Choose how questions are selected for each quiz attempt, if total questions is less than 6, all questions will be used even if 'Random Questions' is selected"
259+
"Choose how questions are selected for each quiz attempt. If the total number of questions is fewer than 6, all questions will be used even if 'Random Questions' is selected."
260260
),
261261
"all_questions": _("All Questions"),
262262
"random_questions": _("Random Questions"),
@@ -320,7 +320,7 @@ def get_locale_messages(self) -> Dict[str, str]:
320320
"update": _("Update"),
321321
"uploaded_image_alt": _("Organization Logo"),
322322
"are_you_sure_delete_org": _(
323-
'Are you sure you want to delete the organization "ORGANIZATION_NAME"? All the courses contents and users under this organization will also be deleted.'
323+
'Are you sure you want to delete the organization "ORGANIZATION_NAME"? All course content and users in this organization will also be deleted.'
324324
),
325325
}
326326

django_email_learning/templates/emails/lesson.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ <h2 style="color: #2c3e50; margin-top: 0; text-align: center; border-bottom: 2px
1515
{{ lesson.content|safe }}
1616

1717
<p style="font-size: 0.9em; color: #7f8c8d; text-align: center; margin-top: 30px;">
18-
{% blocktranslate %}If you wish to unsubscribe from these course, please <a href="{{ unsubscribe_link }}" style="color: {{ brand_color }}; text-decoration: none;">click here</a>{% endblocktranslate %}.
18+
{% blocktranslate %}If you wish to unsubscribe from this course, please <a href="{{ unsubscribe_link }}" style="color: {{ brand_color }}; text-decoration: none;">click here</a>{% endblocktranslate %}.
1919
</p>
2020
{% endblock %}

django_email_learning/templates/emails/quiz.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ <h2>{{ quiz.title }}</h2>
1818
</div>
1919
<p>{% translate "Best of luck!" %}</p>
2020
<p style="font-size: 0.9em; color: #7f8c8d; text-align: center; margin-top: 30px;">
21-
{% blocktranslate %}If you wish to unsubscribe from these course, please <a href="{{ unsubscribe_link }}" style="color: {{ brand_color }}; text-decoration: none;">click here</a>{% endblocktranslate %}.
21+
{% blocktranslate %}If you wish to unsubscribe from this course, please <a href="{{ unsubscribe_link }}" style="color: {{ brand_color }}; text-decoration: none;">click here</a>{% endblocktranslate %}.
2222
</p>
2323
{% endblock %}

0 commit comments

Comments
 (0)