From 515c5f67bca6d8c531b972e194e0bc3c680c8440 Mon Sep 17 00:00:00 2001 From: Ali Salman Date: Tue, 9 Jan 2024 13:42:00 +0500 Subject: [PATCH] fix: translation strings --- .../_dashboard_certificate_information.html | 2 +- .../certificate_status.underscore | 2 +- .../program_details_view.underscore | 15 +++++++++------ .../program_header_view.underscore | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lms/templates/dashboard/_dashboard_certificate_information.html b/lms/templates/dashboard/_dashboard_certificate_information.html index 5f3436a7f718..57a1bc6cc16b 100644 --- a/lms/templates/dashboard/_dashboard_certificate_information.html +++ b/lms/templates/dashboard/_dashboard_certificate_information.html @@ -104,7 +104,7 @@
  • - ${_("View my {cert_name_short}").format(cert_name_short=cert_name_short)} + ${_("View my certificate")}
  • % endif diff --git a/lms/templates/learner_dashboard/certificate_status.underscore b/lms/templates/learner_dashboard/certificate_status.underscore index 5921f07ff598..4371e9bd275e 100644 --- a/lms/templates/learner_dashboard/certificate_status.underscore +++ b/lms/templates/learner_dashboard/certificate_status.underscore @@ -1,5 +1,5 @@

    <%- gettext('Certificate Status:') %> - <%- gettext('Certificate Purchased') %> + <%- gettext('Certificate Issued') %>

    diff --git a/lms/templates/learner_dashboard/program_details_view.underscore b/lms/templates/learner_dashboard/program_details_view.underscore index 7cb90a980af0..ba5eb482f39a 100644 --- a/lms/templates/learner_dashboard/program_details_view.underscore +++ b/lms/templates/learner_dashboard/program_details_view.underscore @@ -7,18 +7,21 @@ <% if (completedCount === totalCount) { %>

    <%- gettext('Congratulations!') %>

    -
    <%- interpolate(gettext( - 'You have successfully completed all the requirements for the %(title)s %(type)s.'), - { title: title, type: type }, true) %> +
    + <%- StringUtils.interpolate(gettext('You have successfully completed all the requirements for the {title} {type}.'), + { title: title, type: type } + ) + %>
    <% } else { %>

    <%- gettext('Your Program Journey') %>

    - <%- interpolate(gettext( - 'Track and plan your progress through the %(count)s courses in this program. To complete the program, you must earn a verified certificate for each course.'), - { count: totalCount }, true) %> + <%- StringUtils.interpolate(gettext('Track and plan your progress through the {count} courses in this program. To complete the program, you must earn a verified certificate for each course.'), + { count: totalCount } + ) + %>
    <% } %> diff --git a/lms/templates/learner_dashboard/program_header_view.underscore b/lms/templates/learner_dashboard/program_header_view.underscore index 58b556faaa6a..e5a58487e466 100644 --- a/lms/templates/learner_dashboard/program_header_view.underscore +++ b/lms/templates/learner_dashboard/program_header_view.underscore @@ -7,7 +7,7 @@

    <%- programData.title %>

    -

    Institutions

    +

    <%- gettext('Institutions') %>

    <% if (programData.authoring_organizations.length) { %>
    <% _.each(programData.authoring_organizations, function(org) { %>