diff --git a/cms/static/js/views/utils/create_course_utils.js b/cms/static/js/views/utils/create_course_utils.js index 14f0327cfd..77799da1df 100644 --- a/cms/static/js/views/utils/create_course_utils.js +++ b/cms/static/js/views/utils/create_course_utils.js @@ -5,7 +5,8 @@ define(['jquery', 'gettext', 'common/js/components/utils/view_utils', 'js/views/ function($, gettext, ViewUtils, CreateUtilsFactory) { 'use strict'; return function(selectors, classes) { - var keyLengthViolationMessage = gettext('The combined length of the organization, course number, and course run fields cannot be more than <%=limit%> characters.'); + var keyLengthViolationMessage = gettext('The combined length of the organization, course number, ' + + 'and course run fields cannot be more than <%- limit %> characters.'); var keyFieldSelectors = [selectors.org, selectors.number, selectors.run]; var nonEmptyCheckFieldSelectors = [selectors.name, selectors.org, selectors.number, selectors.run]; diff --git a/cms/static/js/views/utils/create_library_utils.js b/cms/static/js/views/utils/create_library_utils.js index f024580b42..11f17dbc03 100644 --- a/cms/static/js/views/utils/create_library_utils.js +++ b/cms/static/js/views/utils/create_library_utils.js @@ -5,7 +5,8 @@ define(['jquery', 'gettext', 'common/js/components/utils/view_utils', 'js/views/ function($, gettext, ViewUtils, CreateUtilsFactory) { 'use strict'; return function(selectors, classes) { - var keyLengthViolationMessage = gettext('The combined length of the organization and library code fields cannot be more than <%=limit%> characters.'); + var keyLengthViolationMessage = gettext('The combined length of the organization and library code fields' + + ' cannot be more than <%- limit %> characters.'); var keyFieldSelectors = [selectors.org, selectors.number]; var nonEmptyCheckFieldSelectors = [selectors.name, selectors.org, selectors.number]; diff --git a/lms/templates/commerce/provider.underscore b/lms/templates/commerce/provider.underscore index 7f40e192ea..d86955eb39 100644 --- a/lms/templates/commerce/provider.underscore +++ b/lms/templates/commerce/provider.underscore @@ -1,27 +1,32 @@
- <%= interpolate( - gettext("You still need to visit the %(display_name)s website to complete the credit process."), - { display_name: display_name }, true - ) %> + <%- edx.StringUtils.interpolate( + gettext("You still need to visit the {display_name} website to complete the credit process."), + { display_name: display_name }) + %>
- <%= interpolate( - gettext("To finalize course credit, %(display_name)s requires %(platform_name)s learners to submit a credit request."), - { display_name: display_name, platform_name: platformName }, true - ) %> + <%- edx.StringUtils.interpolate( + gettext("To finalize course credit, {display_name} requires {platform_name} learners to submit a credit request."), + { display_name: display_name, platform_name: platformName }) + %>
- <%= fulfillment_instructions %> + <%- fulfillment_instructions %>
- <%= interpolate('', [id, course_key, username, - gettext( "Get Credit")]) %> + <%= edx.HtmlUtils.interpolateHtml( + edx.HtmlUtils.HTML(''), + {id:id, courseKey:course_key, userName:username, credit:gettext( "Get Credit")}) + %>
diff --git a/lms/templates/commerce/receipt.underscore b/lms/templates/commerce/receipt.underscore index 9e676007d8..9a434efe60 100644 --- a/lms/templates/commerce/receipt.underscore +++ b/lms/templates/commerce/receipt.underscore @@ -1,11 +1,13 @@

- <%= interpolate( - gettext( "Thank you %(full_name)s! We have received your payment for %(course_name)s."), - { course_name: "", - full_name: ""}, true - ) %> + <%= edx.HtmlUtils.interpolateHtml( + gettext( "Thank you {full_name}! We have received your payment for {course_name}."), + { + course_name: edx.HtmlUtils.HTML(""), + full_name: edx.HtmlUtils.HTML("") + }) + %>

<% if ( receipt ) { %> diff --git a/lms/templates/components/header/header.underscore b/lms/templates/components/header/header.underscore index 1a400baad4..2bc93788f3 100644 --- a/lms/templates/components/header/header.underscore +++ b/lms/templates/components/header/header.underscore @@ -4,7 +4,7 @@ <% if (breadcrumbs !== null && breadcrumbs.length > 0) { %>