diff --git a/common/lib/xmodule/xmodule/capa_base.py b/common/lib/xmodule/xmodule/capa_base.py index 7a7235756c..93860a4cdd 100644 --- a/common/lib/xmodule/xmodule/capa_base.py +++ b/common/lib/xmodule/xmodule/capa_base.py @@ -193,12 +193,12 @@ class CapaFields(object): scope=Scope.settings ) matlab_api_key = String( - display_name="Matlab API key", - help="Enter the API key provided by MathWorks for accessing the MATLAB Hosted Service. " - "This key is granted for exclusive use by this course for the specified duration. " - "Please do not share the API key with other courses and notify MathWorks immediately " - "if you believe the key is exposed or compromised. To obtain a key for your course, " - "or to report an issue, please contact moocsupport@mathworks.com", + display_name=_("Matlab API key"), + help=_("Enter the API key provided by MathWorks for accessing the MATLAB Hosted Service. " + "This key is granted for exclusive use by this course for the specified duration. " + "Please do not share the API key with other courses and notify MathWorks immediately " + "if you believe the key is exposed or compromised. To obtain a key for your course, " + "or to report an issue, please contact moocsupport@mathworks.com"), scope=Scope.settings ) diff --git a/common/lib/xmodule/xmodule/video_module/video_xfields.py b/common/lib/xmodule/xmodule/video_module/video_xfields.py index a10434d785..b40b0fd2cf 100644 --- a/common/lib/xmodule/xmodule/video_module/video_xfields.py +++ b/common/lib/xmodule/xmodule/video_module/video_xfields.py @@ -163,7 +163,7 @@ class VideoFields(object): "Specify whether access to this video is limited to browsers only, or if it can be " "accessed from other applications including mobile apps." ), - display_name="Video Available on Web Only", + display_name=_("Video Available on Web Only"), scope=Scope.settings, default=False ) diff --git a/common/static/common/templates/discussion/discussion-home.underscore b/common/static/common/templates/discussion/discussion-home.underscore index d06a4205fc..a2769a1400 100644 --- a/common/static/common/templates/discussion/discussion-home.underscore +++ b/common/static/common/templates/discussion/discussion-home.underscore @@ -8,7 +8,10 @@ <% if (window.ENABLE_DISCUSSION_HOME_PANEL) { %> - <%- interpolate(gettext("How to use %(platform_name)s discussions"), {platform_name: window.PLATFORM_NAME}, true) %> + <%- interpolate( + gettext("How to use %(platform_name)s discussions"), + {platform_name: window.PLATFORM_NAME}, true + ) %> diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index 4df084efc1..6ac0544c49 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -583,7 +583,7 @@ def _section_analytics(course, access): insights_message = _("For analytics about your course, go to {analytics_dashboard_name}.") insights_message = insights_message.format( - analytics_dashboard_name='{0}{1}'.format(link_start, settings.ANALYTICS_DASHBOARD_NAME) + analytics_dashboard_name=u'{0}{1}'.format(link_start, settings.ANALYTICS_DASHBOARD_NAME) ) section_data = { 'section_key': 'instructor_analytics', diff --git a/lms/templates/commerce/provider.underscore b/lms/templates/commerce/provider.underscore index a79108f6b4..63151b6172 100644 --- a/lms/templates/commerce/provider.underscore +++ b/lms/templates/commerce/provider.underscore @@ -1,9 +1,15 @@
- <%= interpolate(gettext("You still need to visit the %s website to complete the credit process."), [display_name]) %> + <%= interpolate( + gettext("You still need to visit the %(display_name)s website to complete the credit process."), + { display_name: displayname }, true + ) %>
- <%= interpolate(gettext("To finalize course credit, %s requires %s learners to submit a credit request."), [provider_id.toUpperCase(), platformName]) %> + <%= interpolate( + gettext("To finalize course credit, %(provider_id)s requires %(platform_name)s learners to submit a credit request."), + { provider_id: provider_id.toUpperCase(), platform_name: platformName }, true + ) %>
<%= fulfillment_instructions %> diff --git a/lms/templates/commerce/receipt.underscore b/lms/templates/commerce/receipt.underscore index fdc186f1b7..70d3e5f8f1 100644 --- a/lms/templates/commerce/receipt.underscore +++ b/lms/templates/commerce/receipt.underscore @@ -1,7 +1,10 @@

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

<% if ( receipt ) { %> diff --git a/lms/templates/discovery/course_card.underscore b/lms/templates/discovery/course_card.underscore index 61a5b295d8..03f6486b36 100644 --- a/lms/templates/discovery/course_card.underscore +++ b/lms/templates/discovery/course_card.underscore @@ -12,7 +12,12 @@ <%= content.number %> <%= content.display_name %> - +
    diff --git a/lms/templates/instructor/instructor_dashboard_2/cohort-form.underscore b/lms/templates/instructor/instructor_dashboard_2/cohort-form.underscore index 600156ac7e..d206de5b7b 100644 --- a/lms/templates/instructor/instructor_dashboard_2/cohort-form.underscore +++ b/lms/templates/instructor/instructor_dashboard_2/cohort-form.underscore @@ -95,7 +95,7 @@ <%= interpolate( // Translators: Any text between %(screen_reader_start)s and %(screen_reader_end)s is only read by screen readers and never shown in the browser. - '%(screen_reader_start)sWarning:%(screen_reader_end)s The previously selected content group was deleted. Select another content group.', + gettext('%(screen_reader_start)sWarning:%(screen_reader_end)s The previously selected content group was deleted. Select another content group.'), { screen_reader_start: '', screen_reader_end: '' @@ -115,7 +115,7 @@ <%= interpolate( // Translators: Any text between %(screen_reader_start)s and %(screen_reader_end)s is only read by screen readers and never shown in the browser. - '%(screen_reader_start)sWarning:%(screen_reader_end)s No content groups exist.', + gettext('%(screen_reader_start)sWarning:%(screen_reader_end)s No content groups exist.'), { screen_reader_start: '', screen_reader_end: ''