diff --git a/xmodule/templates/item_bank/author_view.html b/xmodule/templates/item_bank/author_view.html index 40b27272ba4d..e331e6c19f11 100644 --- a/xmodule/templates/item_bank/author_view.html +++ b/xmodule/templates/item_bank/author_view.html @@ -1,14 +1,39 @@ +{% load i18n %}
{% if block_count > 0 %} -

Learners will see {{ max_count }} of the {{ block_count }} selected components:

+ {% if max_count == -1 %} +

+ {% blocktrans count num_selected=block_count %} + Learners will see the selected component: + {% plural %} + Learners will see all of the {{ num_selected }} selected components, in random order: + {% endblocktrans %} +

+ {% else %} +

+ {% blocktrans with max_count=max_count count num_selected=block_count %} + Learners will see the selected component: + {% plural %} + Learners will see {{ max_count }} of the {{ num_selected }} selected components: + {% endblocktrans %} +

+ {% endif %}
    {% for block in blocks %}
  1. {{ block.display_name }}
  2. {% endfor %}
-

Press View to preview, sync/update, and/or remove the selected components.

-

Press Edit to configure how many will be shown and other settings.

+

+ {% blocktrans with prefix="/container/" item_bank_id=item_bank_id %} + Press View to preview, sync/update, and/or remove the selected components. + {% endblocktrans %} +

+

+ {% blocktrans with link='role="button" href="#" class="edit-button action-button"'|safe %} + Press Edit to configure how many will be shown and other settings. + {% endblocktrans %} +

{% else %} -

You have not selected any components yet.

+

{% trans "You have not selected any components yet." %}

{% endif %}
\ No newline at end of file diff --git a/xmodule/templates/item_bank/author_view_add.html b/xmodule/templates/item_bank/author_view_add.html index 512c77289cfb..40d0221dedd8 100644 --- a/xmodule/templates/item_bank/author_view_add.html +++ b/xmodule/templates/item_bank/author_view_add.html @@ -1,12 +1,16 @@ +{% load i18n %}
{% comment %} - How does this button work? An event handler in cms/static/js/views/pages/container.js + How this button works: An event handler in cms/static/js/views/pages/container.js will watch for clicks and then display the SelectV2LibraryContent modal and process the list of selected blocks returned from the modal. {% endcomment %} from a content library to this problem bank. -
\ No newline at end of file + {# Translators: This is the button label that appears before the separate "from a content library to this problem bank." message. #} + {% trans "Add components" %} + + {# Translators: This text appears immediately after the "Add components" button. If it's difficult to translate directly, replace this with an empty string to hide it. #} + {% trans "from a content library to this problem bank." %} +