fix: translations

This commit is contained in:
Francisco Roldan
2022-05-26 09:45:56 -03:00
parent 0609174a14
commit 2be2646d95
3 changed files with 14 additions and 14 deletions

View File

@@ -3,7 +3,7 @@
{% block page_content %} {% block page_content %}
{% if cohorts %} {% if cohorts %}
<h2>Cohorts</h2> <h2>{{ _("Cohorts") }}</h2>
<div class="row"> <div class="row">
{% for cohort in cohorts %} {% for cohort in cohorts %}
<div class="col-md-6"> <div class="col-md-6">
@@ -12,8 +12,8 @@
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}
<h2>Permission Denied</h2> <h2>{{ _("Permission Denied") }}</h2>
<p>You don't have permission to manage this course.</p> <p>{{ _("You don't have permission to manage this course.") }}</p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
@@ -31,7 +31,7 @@
| {{ stats.join_requests }} join requests | {{ stats.join_requests }} join requests
</p> </p>
<a href="/courses/{{course.name}}/cohorts/{{cohort.slug}}" class="card-link">Manage</a> <a href="/courses/{{course.name}}/cohorts/{{cohort.slug}}" class="card-link">{{ _("Manage") }}</a>
</div> </div>
</div> </div>

View File

@@ -1,10 +1,10 @@
{% extends "www/cohorts/base.html" %} {% extends "www/cohorts/base.html" %}
{% block title %}Join Course{% endblock %} {% block title %}{{ _("Join Course") }}{% endblock %}
{% block page_content %} {% block page_content %}
<h2>Join Course</h2> <h2>{{ _("Join Course") }}</h2>
<p> <p>
Course: {{course.title}} Course: {{course.title}}
@@ -20,25 +20,25 @@
<div class="alert alert-warning"> <div class="alert alert-warning">
<p> <p>
Please login to be able to join the course.</p> {{ _("Please login to be able to join the course.") }}</p>
<p> <p>
If you don't already have an account, you can <a href="/login#signup">sign up for a new account</a>. {{ _("If you don't already have an account, you can") }} <a href="/login#signup">{{ _("sign up for a new account") }}</a>.
</p> </p>
<a class="btn btn-primary" href="/login">Login to continue</a> <a class="btn btn-primary" href="/login">{{ _("Login to continue") }}</a>
</div> </div>
{% elif subgroup.has_student(frappe.session.user) %} {% elif subgroup.has_student(frappe.session.user) %}
<div class="alert alert-info"> <div class="alert alert-info">
<p>You are already a student of this course.</p> <p>{{ _("You are already a student of this course.") }}</p>
<a class="btn btn-primary" href="/">Start Learning &rarr;</a> <a class="btn btn-primary" href="/">{{ _("Start Learning") }} &rarr;</a>
</div> </div>
{% elif subgroup.has_join_request(frappe.session.user) %} {% elif subgroup.has_join_request(frappe.session.user) %}
<div class="alert alert-info"> <div class="alert alert-info">
<p>We have received your request to join the course. You'll hear back from us soon.</p> <p>{{ _("We have received your request to join the course. You'll hear back from us soon.") }}</p>
</div> </div>
{% else %} {% else %}
<a class="btn btn-primary" id="join">Join the course</a> <a class="btn btn-primary" id="join">{{ _("Join the course") }}</a>
{% endif %} {% endif %}

View File

@@ -8,7 +8,7 @@
<div class="common-page-style"> <div class="common-page-style">
<div class="container"> <div class="container">
{% if restriction.restrict %} {% if restriction.restrict %}
{% set profile_link = "<a href='/edit-profile'> profile </a>" %} {% set profile_link = "<a href='/edit-profile'> {{ _("profile") }} </a>" %}
<div class="empty-state"> <div class="empty-state">
<div class="course-home-headings text-center mb-0" style="color: inherit;">{{ _("You haven't completed your profile.") }}</div> <div class="course-home-headings text-center mb-0" style="color: inherit;">{{ _("You haven't completed your profile.") }}</div>
<p class="small text-center">{{ _("Complete your {0} to access the courses.").format(profile_link) }}</p> <p class="small text-center">{{ _("Complete your {0} to access the courses.").format(profile_link) }}</p>