diff --git a/cms/templates/js/course-outline.underscore b/cms/templates/js/course-outline.underscore index b9507426a2..97fe255516 100644 --- a/cms/templates/js/course-outline.underscore +++ b/cms/templates/js/course-outline.underscore @@ -44,7 +44,10 @@ if (xblockInfo.get('graded')) {
<%= gettext("You haven't added any content to this course yet.") %> + title="<%= interpolate( + gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true + ) %>" + > <%= addChildLabel %>
@@ -174,7 +180,10 @@ if (xblockInfo.get('graded')) { diff --git a/cms/templates/js/list.underscore b/cms/templates/js/list.underscore index 9bf7550aa7..6ee461c6da 100644 --- a/cms/templates/js/list.underscore +++ b/cms/templates/js/list.underscore @@ -2,14 +2,20 @@<%- emptyMessage %> - <%= interpolate(gettext("Add your first %(item_type)s"), {item_type: itemCategoryDisplayName}, true) %> + + <%= interpolate( + gettext("Add your first %(item_type)s"), {item_type: itemCategoryDisplayName}, true + ) %>
<%= gettext("You haven't added any content to this course yet.") %> + title="<%= interpolate( + gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true + ) %>" + > <%= addChildLabel %>
@@ -67,7 +73,10 @@ diff --git a/lms/templates/courseware_search/search_list.underscore b/lms/templates/courseware_search/search_list.underscore index 6366b3893b..56f283fe26 100644 --- a/lms/templates/courseware_search/search_list.underscore +++ b/lms/templates/courseware_search/search_list.underscore @@ -9,7 +9,11 @@ <% if (hasMoreResults) { %> - <%= interpolate(gettext("Load next %s results"), [pageSize]) %> + <%= interpolate( + ngettext("Load next %(num_items) result", "Load next %(num_items) results", pageSize), + { num_items: pageSize }, + true + ) %> <% } %>