From 71931bcf0f73aeb446b16981b2e2c280739e3367 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Fri, 21 Mar 2014 09:35:54 -0400 Subject: [PATCH] i18n Inst Dash Membership tab LMS-2357 --- .../src/instructor_dashboard/membership.coffee | 7 ++++--- .../instructor_dashboard_2/membership.html | 16 +++++++++------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/lms/static/coffee/src/instructor_dashboard/membership.coffee b/lms/static/coffee/src/instructor_dashboard/membership.coffee index d66e4c5e11..a71043fccd 100644 --- a/lms/static/coffee/src/instructor_dashboard/membership.coffee +++ b/lms/static/coffee/src/instructor_dashboard/membership.coffee @@ -69,8 +69,8 @@ class AuthListWidget extends MemberListWidget super $container, title: $container.data 'display-name' info: $container.data 'info-text' - labels: ["Username", "Email", "Revoke access"] - add_placeholder: "Enter username or email" + labels: [gettext("Username"), gettext("Email"), gettext("Revoke access")] + add_placeholder: gettext("Enter username or email") add_btn_label: $container.data 'add-button-label' add_handler: (input) => @add_handler input @@ -116,7 +116,8 @@ class AuthListWidget extends MemberListWidget # if there are members, show the list # create revoke button and insert it into the row - $revoke_btn = $ '
Revoke access
', + label_trans = gettext("Revoke access") + $revoke_btn = $ _.template('
<%= label %>
', {label: label_trans}), class: 'revoke' $revoke_btn.click => @modify_member_access member.email, 'revoke', (error) => diff --git a/lms/templates/instructor/instructor_dashboard_2/membership.html b/lms/templates/instructor/instructor_dashboard_2/membership.html index 3e4002917c..17b3acd010 100644 --- a/lms/templates/instructor/instructor_dashboard_2/membership.html +++ b/lms/templates/instructor/instructor_dashboard_2/membership.html @@ -71,7 +71,7 @@ ${_("Note: Users must have an activated {platform_name} account before they can be enrolled as a beta tester.").format(platform_name=settings.PLATFORM_NAME)} - +

@@ -84,8 +84,8 @@
- - + +
@@ -95,12 +95,14 @@
+ ## Translators: an "Administration List" is a list, such as Course Staff, that users can be added to.

${_("Administration List Management")}

- + ## Translators: an "Administrator Group" is a group, such as Course Staff, that users can be added to. + @@ -150,7 +152,7 @@ "privileges.")}" data-list-endpoint="${ section_data['list_course_role_members_url'] }" data-modify-endpoint="${ section_data['modify_access_url'] }" - data-add-button-label="Add ${_("Beta Tester")}" + data-add-button-label="${_("Add Beta Tester")}" >
%endif @@ -189,7 +191,7 @@ "Their posts are marked 'Community TA'.")}" data-list-endpoint="${ section_data['list_forum_members_url'] }" data-modify-endpoint="${ section_data['update_forum_role_membership_url'] }" - data-add-button-label="Add ${_("Community TA")}" + data-add-button-label="${_("Add Community TA")}" >
%endif