feat: Enabled translation on html files in LMS [Proposal] (#21582)
* :fix: translation fix for html files in LMS
* fix: typo in translation
* Update content.html
* Update content.html
* Update profile.html
Co-authored-by: Shivam Mishra <scmmishra@users.noreply.github.com>
Co-authored-by: Marica <maricadsouza221197@gmail.com>
diff --git a/erpnext/www/lms/topic.html b/erpnext/www/lms/topic.html
index 1f0d187..cd24616 100644
--- a/erpnext/www/lms/topic.html
+++ b/erpnext/www/lms/topic.html
@@ -23,13 +23,13 @@
{% if has_access %}
<div class='card-footer'>
{% if content.content_type == 'Quiz' %}
- {% if content.result == 'Fail' %} <span class="indicator red">Fail <span class="text-muted">({{ content.score }}/100)</span></span>
- {% elif content.result == 'Pass' %} <span class="indicator green">Pass <span class="text-muted">({{ content.score }}/100)</span>
- {% else %} <span class="indicator blue">Start</span>
+ {% if content.result == 'Fail' %} <span class="indicator red">{{_('Fail')}} <span class="text-muted">({{ content.score }}/100)</span></span>
+ {% elif content.result == 'Pass' %} <span class="indicator green">{{_('Pass')}} <span class="text-muted">({{ content.score }}/100)</span>
+ {% else %} <span class="indicator blue">{{_('Start')}}</span>
{% endif %}
{% else %}
- {% if content.completed %} <span class="indicator green">Completed</span>
- {% else %} <span class="indicator blue">Start</span>
+ {% if content.completed %} <span class="indicator green">{{_('Completed')}}</span>
+ {% else %} <span class="indicator blue">{{_('Start')}}</span>
{% endif %}
{% endif %}
</div>