Commit c1f3f558 by Sarina Canelake

Merge pull request #7524 from louyihua/underscore_extraction

Fix string extraction error in underscore files
parents 8bfc948b 46342a3f
...@@ -44,7 +44,10 @@ if (xblockInfo.get('graded')) { ...@@ -44,7 +44,10 @@ if (xblockInfo.get('graded')) {
<div class="<%= xblockType %>-header"> <div class="<%= xblockType %>-header">
<% if (includesChildren) { %> <% if (includesChildren) { %>
<h3 class="<%= xblockType %>-header-details expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %> ui-toggle-expansion" <h3 class="<%= xblockType %>-header-details expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %> ui-toggle-expansion"
title="<%= interpolate(gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true) %>"> title="<%= interpolate(
gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true
) %>"
>
<i class="icon fa fa-caret-down"></i> <i class="icon fa fa-caret-down"></i>
<% } else { %> <% } else { %>
<h3 class="<%= xblockType %>-header-details"> <h3 class="<%= xblockType %>-header-details">
...@@ -156,7 +159,10 @@ if (xblockInfo.get('graded')) { ...@@ -156,7 +159,10 @@ if (xblockInfo.get('graded')) {
<p><%= gettext("You haven't added any content to this course yet.") %> <p><%= gettext("You haven't added any content to this course yet.") %>
<a href="#" class="button button-new" data-category="<%= childCategory %>" <a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>" data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" > title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %> <i class="icon fa fa-plus"></i><%= addChildLabel %>
</a> </a>
</p> </p>
...@@ -174,7 +180,10 @@ if (xblockInfo.get('graded')) { ...@@ -174,7 +180,10 @@ if (xblockInfo.get('graded')) {
<div class="add-<%= childType %> add-item"> <div class="add-<%= childType %> add-item">
<a href="#" class="button button-new" data-category="<%= childCategory %>" <a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>" data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" > title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %> <i class="icon fa fa-plus"></i><%= addChildLabel %>
</a> </a>
</div> </div>
......
...@@ -2,14 +2,20 @@ ...@@ -2,14 +2,20 @@
<div class="no-content"> <div class="no-content">
<p> <p>
<%- emptyMessage %> <%- emptyMessage %>
<a href="#" class="button new-button"><i class="icon fa fa-plus"></i> <%= interpolate(gettext("Add your first %(item_type)s"), {item_type: itemCategoryDisplayName}, true) %></a> <a href="#" class="button new-button"><i class="icon fa fa-plus"></i>
<%= interpolate(
gettext("Add your first %(item_type)s"), {item_type: itemCategoryDisplayName}, true
) %></a>
</p> </p>
</div> </div>
<% } else { %> <% } else { %>
<div class="list-items"></div> <div class="list-items"></div>
<% if (!isEditing) { %> <% if (!isEditing) { %>
<button class="action action-add"> <button class="action action-add">
<i class="icon fa fa-plus"></i><%- interpolate(gettext('New %(item_type)s'), {item_type: itemCategoryDisplayName}, true) %> <i class="icon fa fa-plus"></i>
<%- interpolate(
gettext('New %(item_type)s'), {item_type: itemCategoryDisplayName}, true
) %>
</button> </button>
<% } %> <% } %>
<% } %> <% } %>
...@@ -48,7 +48,9 @@ var visibleToStaffOnly = visibilityState === 'staff_only'; ...@@ -48,7 +48,9 @@ var visibleToStaffOnly = visibilityState === 'staff_only';
<% if (releaseDate) { %> <% if (releaseDate) { %>
<span class="release-date"><%= releaseDate %></span> <span class="release-date"><%= releaseDate %></span>
<span class="release-with"> <span class="release-with">
<%= interpolate(gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true) %> <%= interpolate(
gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true
) %>
</span> </span>
<% } else { %> <% } else { %>
...@@ -70,7 +72,9 @@ var visibleToStaffOnly = visibilityState === 'staff_only'; ...@@ -70,7 +72,9 @@ var visibleToStaffOnly = visibilityState === 'staff_only';
<%= gettext("Staff Only") %> <%= gettext("Staff Only") %>
<% if (!hasExplicitStaffLock) { %> <% if (!hasExplicitStaffLock) { %>
<span class="inherited-from"> <span class="inherited-from">
<%= interpolate(gettext("with %(section_or_subsection)s"),{ section_or_subsection: staffLockFrom }, true) %> <%= interpolate(
gettext("with %(section_or_subsection)s"),{ section_or_subsection: staffLockFrom }, true
) %>
</span> </span>
<% } %> <% } %>
</p> </p>
......
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
<div class="wrapper-xblock-header-primary"> <div class="wrapper-xblock-header-primary">
<% if (includesChildren) { %> <% if (includesChildren) { %>
<h3 class="xblock-title expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %>" <h3 class="xblock-title expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %>"
title="<%= interpolate(gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true) %>"> title="<%= interpolate(
gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true
) %>"
>
<i class="icon fa fa-caret-down ui-toggle-expansion"></i> <i class="icon fa fa-caret-down ui-toggle-expansion"></i>
<% } else { %> <% } else { %>
<h3 class="xblock-title"> <h3 class="xblock-title">
...@@ -54,7 +57,10 @@ ...@@ -54,7 +57,10 @@
<p><%= gettext("You haven't added any content to this course yet.") %> <p><%= gettext("You haven't added any content to this course yet.") %>
<a href="#" class="button button-new" data-category="<%= childCategory %>" <a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>" data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" > title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %> <i class="icon fa fa-plus"></i><%= addChildLabel %>
</a> </a>
</p> </p>
...@@ -67,7 +73,10 @@ ...@@ -67,7 +73,10 @@
<div class="add-xblock-component"> <div class="add-xblock-component">
<a href="#" class="button button-new" data-category="<%= childCategory %>" <a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>" data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" > title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %> <i class="icon fa fa-plus"></i><%= addChildLabel %>
</a> </a>
</div> </div>
......
...@@ -9,7 +9,11 @@ ...@@ -9,7 +9,11 @@
<% if (hasMoreResults) { %> <% if (hasMoreResults) { %>
<a class="search-load-next" href="javascript:void(0);"> <a class="search-load-next" href="javascript:void(0);">
<%= interpolate(gettext("Load next %s results"), [pageSize]) %> <%= interpolate(
ngettext("Load next %(num_items) result", "Load next %(num_items) results", pageSize),
{ num_items: pageSize },
true
) %>
<i class="icon fa-spinner fa-spin"></i> <i class="icon fa-spinner fa-spin"></i>
</a> </a>
<% } %> <% } %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment