From 0609174a14569ab35b95778552aac0b50f37edf5 Mon Sep 17 00:00:00 2001
From: Francisco Roldan
Date: Thu, 26 May 2022 09:43:11 -0300
Subject: [PATCH] fix: translations
---
.../multiple_testimonials/multiple_testimonials.html | 4 ++--
lms/lms/widgets/BreadCrumb.html | 2 +-
lms/lms/widgets/HelloWorld.html | 2 +-
lms/lms/widgets/RequestInvite.html | 3 +--
lms/templates/assignment.html | 4 ++--
lms/templates/emails/lms_course_interest.html | 2 +-
.../emails/lms_invite_request_approved.html | 2 +-
lms/templates/emails/lms_message.html | 4 ++--
.../emails/mentor_request_creation_email.html | 10 +++++-----
.../emails/mentor_request_status_update_email.html | 8 ++++----
lms/templates/livecode/extension_footer.html | 4 ++--
lms/www/batch/join.html | 12 ++++++------
12 files changed, 28 insertions(+), 29 deletions(-)
diff --git a/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html
index d8424fc9..f0d8fb3f 100644
--- a/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html
+++ b/lms/lms/web_template/multiple_testimonials/multiple_testimonials.html
@@ -30,7 +30,7 @@
{% endif %}
diff --git a/lms/lms/widgets/BreadCrumb.html b/lms/lms/widgets/BreadCrumb.html
index ca7a4747..9bad598b 100644
--- a/lms/lms/widgets/BreadCrumb.html
+++ b/lms/lms/widgets/BreadCrumb.html
@@ -1,6 +1,6 @@
{% if course %}
-
All Courses
+
{{ _("All Courses") }}

{% if lesson %}
{{ course.title }}
diff --git a/lms/lms/widgets/HelloWorld.html b/lms/lms/widgets/HelloWorld.html
index a8e09c01..cfae833e 100644
--- a/lms/lms/widgets/HelloWorld.html
+++ b/lms/lms/widgets/HelloWorld.html
@@ -10,5 +10,5 @@
#}
- Hello, {{ name }}!
+ {{ _("Hello"), {{ name }}!
diff --git a/lms/lms/widgets/RequestInvite.html b/lms/lms/widgets/RequestInvite.html
index 3da5c6f2..c3897885 100644
--- a/lms/lms/widgets/RequestInvite.html
+++ b/lms/lms/widgets/RequestInvite.html
@@ -4,8 +4,7 @@
diff --git a/lms/templates/assignment.html b/lms/templates/assignment.html
index ff543469..2bf14e41 100644
--- a/lms/templates/assignment.html
+++ b/lms/templates/assignment.html
@@ -1,10 +1,10 @@
diff --git a/lms/templates/emails/lms_course_interest.html b/lms/templates/emails/lms_course_interest.html
index 1658b3e6..3dded006 100644
--- a/lms/templates/emails/lms_course_interest.html
+++ b/lms/templates/emails/lms_course_interest.html
@@ -14,6 +14,6 @@
{{ site_url }}{{ course_link }}
- Thanks and Regards,
+ {{ _("Thanks and Regards") }},
{{ app_name }}
diff --git a/lms/templates/emails/lms_invite_request_approved.html b/lms/templates/emails/lms_invite_request_approved.html
index dcda70f3..1d72009f 100644
--- a/lms/templates/emails/lms_invite_request_approved.html
+++ b/lms/templates/emails/lms_invite_request_approved.html
@@ -12,6 +12,6 @@
{{ site_url }}{{ signup_form_link }}
- Thanks and Regards,
+ {{ _("Thanks and Regards") }},
{{site_name}}
diff --git a/lms/templates/emails/lms_message.html b/lms/templates/emails/lms_message.html
index 4cfad56f..e762379a 100644
--- a/lms/templates/emails/lms_message.html
+++ b/lms/templates/emails/lms_message.html
@@ -8,6 +8,6 @@
-->
{{ message }}
-By {{author}}
+{{ _("By") }} {{author}}
{{ creation }}
-Open Course
+{{ _("Open Course") }}
diff --git a/lms/templates/emails/mentor_request_creation_email.html b/lms/templates/emails/mentor_request_creation_email.html
index 20e51403..2d43ace6 100644
--- a/lms/templates/emails/mentor_request_creation_email.html
+++ b/lms/templates/emails/mentor_request_creation_email.html
@@ -1,9 +1,9 @@
-
Dear {{ member_name }},
+
{{ _("Dear") }} {{ member_name }},
-
You've applied to become a mentor for this course. Your request is currently under review.
-
If you are not any more interested to mentor the course {{ course }}, you can cancel your application.
+
{{ _("You've applied to become a mentor for this course. Your request is currently under review.") }}
+
{{ _("If you are not any more interested to mentor the course") }} {{ course }}, {{ _("you can") }} {{ _("cancel your application") }}.
-
Thanks and Regards,
-
Team School.
+
{{ _("Thanks and Regards") }},
+
{{ _("Team School") }}.
diff --git a/lms/templates/emails/mentor_request_status_update_email.html b/lms/templates/emails/mentor_request_status_update_email.html
index db3ba35a..cb1eaf41 100644
--- a/lms/templates/emails/mentor_request_status_update_email.html
+++ b/lms/templates/emails/mentor_request_status_update_email.html
@@ -1,8 +1,8 @@
-
Dear {{ member_name }},
+
{{ _("Dear") }} {{ member_name }},
-
Your request to join us as a mentor for the course {{ course }} has been {{ status }}.
+
{{ _("Your request to join us as a mentor for the course") }} {{ course }} {{ _("has been") }} {{ status }}.
-
Thanks and Regards,
-
Team School.
+
{{ _("Thanks and Regards") }},
+
{{ _("Team School") }}.
diff --git a/lms/templates/livecode/extension_footer.html b/lms/templates/livecode/extension_footer.html
index 10ec0e0f..cc141598 100644
--- a/lms/templates/livecode/extension_footer.html
+++ b/lms/templates/livecode/extension_footer.html
@@ -18,11 +18,11 @@
-
+
-
+
diff --git a/lms/www/batch/join.html b/lms/www/batch/join.html
index 0a839709..ce46d291 100644
--- a/lms/www/batch/join.html
+++ b/lms/www/batch/join.html
@@ -11,9 +11,9 @@
- Login Required
+ {{ _("Login Required") }}
-
Please log in to confirm joining the course {{ batch.course_title }}.
+
{{ _("Please log in to confirm joining the course" )}} {{ batch.course_title }}.
{{_("Login")}}
@@ -22,9 +22,9 @@
- Already a member
+ {{ _("Already a member") }}
-
You are already a member of the batch {{ batch.title }} for the course {{ batch.course_title }}.
+
{{ _("You are already a member of the batch") }} {{ batch.title }} {{ _("for the course") }} {{ batch.course_title }}.
{{_("Go to Batch Home")}}
@@ -33,9 +33,9 @@
- Confirm your membership
+ {{ _("Confirm your membership") }}
-
Please provide your confirmation to be a part of the batch {{ batch.title }} for the course
+
{{ _("Please provide your confirmation to be a part of the batch") }} {{ batch.title }} {{ _("for the course") }}
{{ batch.course_title }}.
{{_("Confirm")}}