diff --git a/lms/templates/library-block-author-preview-header.html b/lms/templates/library-block-author-preview-header.html index ad76623deb..b4de62d8a0 100644 --- a/lms/templates/library-block-author-preview-header.html +++ b/lms/templates/library-block-author-preview-header.html @@ -1,9 +1,13 @@ -<%! from django.utils.translation import ugettext as _ %> +<%! from django.utils.translation import ungettext %>

- ${_('Showing all matching content eligible to be added into {display_name}. Each student will be assigned {max_count} component[s] drawn randomly from this list.').format(max_count=max_count, display_name=display_name)} + ${ungettext( + 'Showing all matching content eligible to be added into {display_name}. Each student will be assigned {max_count} component drawn randomly from this list.', + 'Showing all matching content eligible to be added into {display_name}. Each student will be assigned {max_count} components drawn randomly from this list.', + max_count + ).format(max_count=max_count, display_name=display_name)}

diff --git a/lms/templates/library-block-author-view.html b/lms/templates/library-block-author-view.html index 46202aa2a9..ade6f8dc11 100644 --- a/lms/templates/library-block-author-view.html +++ b/lms/templates/library-block-author-view.html @@ -1,6 +1,10 @@ <%! -from django.utils.translation import ugettext as _ +from django.utils.translation import ungettext %>
-

${_('This component will be replaced by {max_count} component[s] randomly chosen from the {num_children} matching components in {lib_names}.').format(mode=mode, max_count=max_count, num_children=num_children, lib_names=', '.join(library_names))}

+

${ungettext( + 'This component will be replaced by {max_count} component randomly chosen from the {num_children} matching components in {lib_names}.', + 'This component will be replaced by {max_count} components randomly chosen from the {num_children} matching components in {lib_names}.', + max_count + ).format(max_count=max_count, num_children=num_children, lib_names=', '.join(library_names))}