diff --git a/school/lms/md.py b/school/lms/md.py
index 5acb6322..ce410d81 100644
--- a/school/lms/md.py
+++ b/school/lms/md.py
@@ -99,7 +99,7 @@ class MacroInlineProcessor(InlineProcessor):
return e, m.start(0), m.end(0)
def sanitize_html(html, macro):
- """Sanotize the html using BeautifulSoup.
+ """Sanitize the html using BeautifulSoup.
The markdown processor request the correct markup and crashes on
any broken tags. This makes sures that all those things are fixed
diff --git a/school/www/batch/learn.html b/school/www/batch/learn.html
index 34a5bd52..0e07aa39 100644
--- a/school/www/batch/learn.html
+++ b/school/www/batch/learn.html
@@ -25,9 +25,9 @@
{% if membership %}
{{ pagination(prev_url, next_url) }}
{% endif %}
+ {{ Discussions() }}
- {{ Discussions() }}
{% endblock %}
@@ -41,7 +41,7 @@
{% if membership %} is-member {% endif %}
{% if membership or is_instructor %} eligible-for-submission {% endif %}" data-lesson="{{ lesson.name }}"
data-course="{{ course.name }}">{{ lesson.title }}
- COMPLETED
+ {{ _("COMPLETED") }}
@@ -62,7 +62,7 @@
{% if ins_len == 1 %}
{{ instructors[0].full_name }}
{% else %}
- {% set suffix = "other" if ins_len - 1 == 1 else "others" %}
+ {% set suffix = _("other") if ins_len - 1 == 1 else _("others") %}
{{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }}
{% endif %}
@@ -70,22 +70,21 @@
{{ frappe.utils.format_date(lesson.creation, "medium") }}
-
- {% if membership or lesson.include_in_preview or is_instructor %}
- {% if is_instructor and not lesson.include_in_preview %}
-
- This lesson is not available for preview. As you are the Instructor of the course only you can see it.
-
×
-
- {% endif %}
- {{ render_html(lesson.body) }}
- {% else %}
-
-
Start Learning
-
This lesson is not available for preview. Please join the course to access it.
-
- {% endif %}
+ {% if membership or lesson.include_in_preview or is_instructor %}
+ {% if is_instructor and not lesson.include_in_preview %}
+
+ {{ _("This lesson is not available for preview. As you are the Instructor of the course only you can see it.") }}
+
×
+
+ {% endif %}
+ {{ render_html(lesson.body) }}
+ {% else %}
+
+ {% endif %}
@@ -98,7 +97,7 @@
{% if prev_url %}