feat: translations

This commit is contained in:
Francisco Roldan
2022-05-25 14:24:54 -03:00
parent e1fc0d08b7
commit 9ab92165c8
4 changed files with 59 additions and 9 deletions

View File

@@ -61,7 +61,7 @@
</div>
<div class="mt-8">
<div class="bold-heading">Instructors:</div>
<div class="bold-heading">{{ _("Instructors") }}:</div>
{% for instructor in get_instructors(course.name) %}
<div class="mt-1">
{{ widgets.Avatar(member=instructor, avatar_class="avatar-small") }}
@@ -75,7 +75,7 @@
{% if membership %}
{% set progress = frappe.utils.cint(membership.progress) %}
<div class="mt-8">
<div class="progress-percent m-0">{{ progress }}% Completed</div>
<div class="progress-percent m-0">{{ progress }}% {{ _("Completed") }}</div>
<div class="progress" title="{{ progress }}% Completed">
<div class="progress-bar" role="progressbar" aria-valuenow="{{ progress }}"
aria-valuemin="0" aria-valuemax="100" style="width:{{ progress }}%">

View File

@@ -1,4 +1,5 @@
import frappe
from frappe import _
from lms.lms.doctype.lms_settings.lms_settings import check_profile_restriction
def get_context(context):
@@ -6,7 +7,7 @@ def get_context(context):
context.live_courses, context.upcoming_courses = get_courses()
context.restriction = check_profile_restriction()
context.metatags = {
"title": "All Live Courses",
"title": _("All Live Courses"),
"image": frappe.db.get_single_value("Website Settings", "banner_image"),
"description": "This page lists all the courses published on our website",
"keywords": "All Courses, Courses, Learn"