Skip to content

Commit

Permalink
Merge pull request #486 from edly-io/alisalman/fix-translation-strings
Browse files Browse the repository at this point in the history
fix: translation strings
  • Loading branch information
Ali-Salman29 authored Jan 9, 2024
2 parents 5b3f8f0 + 515c5f6 commit 7174b64
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<li>
<a class="btn btn-primary" href="${cert_status['cert_web_view_url']}" rel="noopener" target="_blank"
title="${_('This link will open the certificate web view')}">
${_("View my {cert_name_short}").format(cert_name_short=cert_name_short)}
${_("View my certificate")}
</a>
</li>
% endif
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p class="certificate-status col-12 md-col-8">
<span class="card-msg"><%- gettext('Certificate Status:') %></span>
<span class="fa fa-check-circle" aria-hidden="true"></span>
<span class="certificate-status-msg"><%- gettext('Certificate Purchased') %></span>
<span class="certificate-status-msg"><%- gettext('Certificate Issued') %></span>
</p>
15 changes: 9 additions & 6 deletions lms/templates/learner_dashboard/program_details_view.underscore
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
<% if (completedCount === totalCount) { %>
<h3 class="program-heading-title"><%- gettext('Congratulations!') %></h3>
<div class="program-heading-message">
<div><%- interpolate(gettext(
'You have successfully completed all the requirements for the %(title)s %(type)s.'),
{ title: title, type: type }, true) %>
<div>
<%- StringUtils.interpolate(gettext('You have successfully completed all the requirements for the {title} {type}.'),
{ title: title, type: type }
)
%>
</div>
</div>
<% } else { %>
<h3 class="program-heading-title"><%- gettext('Your Program Journey') %></h3>
<div class="program-heading-message">
<div>
<%- 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 }
)
%>
</div>
</div>
<% } %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<h2 class="hd-1 program-title"><%- programData.title %></h2>
</div>
<div class='authoring-organizations'>
<h2 class="heading">Institutions</h2>
<h2 class="heading"><%- gettext('Institutions') %></h2>
<% if (programData.authoring_organizations.length) { %>
<div class="orgs">
<% _.each(programData.authoring_organizations, function(org) { %>
Expand Down

0 comments on commit 7174b64

Please sign in to comment.