@@ -74,12 +78,12 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
...
@@ -74,12 +78,12 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
<ul>
<ul>
% if is_unit_page:
% if is_unit_page:
<liclass="action-item action-view nav-item">
<liclass="action-item action-view nav-item">
<ahref="${published_preview_link | h}"class="button button-view action-button is-disabled"aria-disabled="true"rel="external"title="${_('Open the courseware in the LMS')}">
<ahref="${published_preview_link}"class="button button-view action-button is-disabled"aria-disabled="true"rel="external"title="${_('Open the courseware in the LMS')}">
<spanclass="action-button-text">${_("View Live Version")}</span>
<spanclass="action-button-text">${_("View Live Version")}</span>
</a>
</a>
</li>
</li>
<liclass="action-item action-preview nav-item">
<liclass="action-item action-preview nav-item">
<ahref="${draft_preview_link | h}"class="button button-preview action-button"rel="external"title="${_('Preview the courseware in the LMS')}">
<ahref="${draft_preview_link}"class="button button-preview action-button"rel="external"title="${_('Preview the courseware in the LMS')}">
<p>${_("Click the {strong_start}Edit{strong_end} icon in a component to edit its content.").format(
<p>${Text(_("Click the {strong_start}Edit{strong_end} icon in a component to edit its content.")).format(
strong_start=HTML('<strong>'),
strong_start=HTML('<strong>'),
strong_end=HTML("</strong>"),
strong_end=HTML("</strong>"),
)}</p>
)}</p>
...
@@ -129,7 +133,7 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
...
@@ -129,7 +133,7 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
<p>${_("Confirm that you have properly configured content in each of your experiment groups.")}</p>
<p>${_("Confirm that you have properly configured content in each of your experiment groups.")}</p>
</div>
</div>
<divclass="bit external-help">
<divclass="bit external-help">
<ahref="${get_online_help_info(online_help_token())['doc_url'] | h}"target="_blank"class="button external-help-button">${_("Learn more about component containers")}</a>
<ahref="${get_online_help_info(online_help_token())['doc_url']}"target="_blank"class="button external-help-button">${_("Learn more about component containers")}</a>
</div>
</div>
% elif is_unit_page:
% elif is_unit_page:
<divid="publish-unit"></div>
<divid="publish-unit"></div>
...
@@ -139,7 +143,7 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
...
@@ -139,7 +143,7 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
<spanclass="tip"><spanclass="sr">Tip: </span>${_("Use this ID when you create links to this unit from other course content. You enter the ID in the URL field.")}</span>
<spanclass="tip"><spanclass="sr">Tip: </span>${_("Use this ID when you create links to this unit from other course content. You enter the ID in the URL field.")}</span>
## Translators: This is an example for the name of the organization sponsoring a course, seen when filling out the form to create a new course. The organization name cannot contain spaces.
## Translators: This is an example for the name of the organization sponsoring a course, seen when filling out the form to create a new course. The organization name cannot contain spaces.
## Translators: "e.g. UniversityX or OrganizationX" is a placeholder displayed when user put no data into this field.
## Translators: "e.g. UniversityX or OrganizationX" is a placeholder displayed when user put no data into this field.
<inputclass="new-course-org"id="new-course-org"type="text"name="new-course-org"requiredplaceholder="${_('e.g. UniversityX or OrganizationX')}"aria-describedby="tip-new-course-org tip-error-new-course-org"/>
<inputclass="new-course-org"id="new-course-org"type="text"name="new-course-org"requiredplaceholder="${_('e.g. UniversityX or OrganizationX')}"aria-describedby="tip-new-course-org tip-error-new-course-org"/>
<spanclass="tip"id="tip-new-course-org">${_("The name of the organization sponsoring the course. {strong_start}Note: The organization name is part of the course URL.{strong_end} This cannot be changed, but you can set a different display name in Advanced Settings later.").format(
<spanclass="tip"id="tip-new-course-org">${Text(_("The name of the organization sponsoring the course. {strong_start}Note: The organization name is part of the course URL.{strong_end} This cannot be changed, but you can set a different display name in Advanced Settings later.")).format(
strong_start=HTML('<strong>'),
strong_start=HTML('<strong>'),
strong_end=HTML('</strong>'),
strong_end=HTML('</strong>'),
)}</span>
)}</span>
...
@@ -93,7 +97,7 @@
...
@@ -93,7 +97,7 @@
## seen when filling out the form to create a new course. The number here is
## seen when filling out the form to create a new course. The number here is
## short for "Computer Science 101". It can contain letters but cannot contain spaces.
## short for "Computer Science 101". It can contain letters but cannot contain spaces.
<spanclass="tip"id="tip-new-course-number">${_("The unique number that identifies your course within your organization. {strong_start}Note: This is part of your course URL, so no spaces or special characters are allowed and it cannot be changed.{strong_end}").format(
<spanclass="tip"id="tip-new-course-number">${Text(_("The unique number that identifies your course within your organization. {strong_start}Note: This is part of your course URL, so no spaces or special characters are allowed and it cannot be changed.{strong_end}")).format(
strong_start=HTML('<strong>'),
strong_start=HTML('<strong>'),
strong_end=HTML('</strong>'),
strong_end=HTML('</strong>'),
)}</span>
)}</span>
...
@@ -105,7 +109,7 @@
...
@@ -105,7 +109,7 @@
## Translators: This is an example for the "run" used to identify different
## Translators: This is an example for the "run" used to identify different
## instances of a course, seen when filling out the form to create a new course.
## instances of a course, seen when filling out the form to create a new course.
<spanclass="tip"id="tip-new-course-run">${_("The term in which your course will run. {strong_start}Note: This is part of your course URL, so no spaces or special characters are allowed and it cannot be changed.{strong_end}").format(
<spanclass="tip"id="tip-new-course-run">${Text(_("The term in which your course will run. {strong_start}Note: This is part of your course URL, so no spaces or special characters are allowed and it cannot be changed.{strong_end}")).format(
strong_start=HTML('<strong>'),
strong_start=HTML('<strong>'),
strong_end=HTML('</strong>'),
strong_end=HTML('</strong>'),
)}</span>
)}</span>
...
@@ -165,7 +169,7 @@
...
@@ -165,7 +169,7 @@
## for "Computer Science Problems". The example number may contain letters
## for "Computer Science Problems". The example number may contain letters
<spanclass="tip"id="tip-new-library-number">${_("The unique code that identifies this library. {strong_start}Note: This is part of your library URL, so no spaces or special characters are allowed.{strong_end} This cannot be changed.").format(
<spanclass="tip"id="tip-new-library-number">${Text(_("The unique code that identifies this library. {strong_start}Note: This is part of your library URL, so no spaces or special characters are allowed.{strong_end} This cannot be changed.")).format(
strong_start=HTML('<strong>'),
strong_start=HTML('<strong>'),
strong_end=HTML('</strong>'),
strong_end=HTML('</strong>'),
)}</span>
)}</span>
...
@@ -228,7 +232,7 @@
...
@@ -228,7 +232,7 @@
</div>
</div>
<divclass="status-message">
<divclass="status-message">
<pclass="copy">${_('The new course will be added to your course list in 5-10 minutes. Return to this page or {link_start}refresh it{link_end} to update the course list. The new course will need some manual configuration.').format(
<pclass="copy">${Text(_('The new course will be added to your course list in 5-10 minutes. Return to this page or {link_start}refresh it{link_end} to update the course list. The new course will need some manual configuration.')).format(
% if course_creator_status=='disallowed_for_this_site' and settings.FEATURES.get('STUDIO_REQUEST_EMAIL',''):
% if course_creator_status=='disallowed_for_this_site' and settings.FEATURES.get('STUDIO_REQUEST_EMAIL',''):
<divclass="bit">
<divclass="bit">
<h3class="title title-3">${_("Can I create courses in {studio_name}?").format(studio_name=settings.STUDIO_NAME)}</h3>
<h3class="title title-3">${_("Can I create courses in {studio_name}?").format(studio_name=settings.STUDIO_NAME)}</h3>
<p>${_("In order to create courses in {studio_name}, you must {link_start}contact {platform_name} staff to help you create a course{link_end}.").format(
<p>${Text(_("In order to create courses in {studio_name}, you must {link_start}contact {platform_name} staff to help you create a course{link_end}.")).format(
<h3class="title title-3">${_("Can I create courses in {studio_name}?").format(studio_name=settings.STUDIO_NAME)}</h3>
<h3class="title title-3">${_("Can I create courses in {studio_name}?").format(studio_name=settings.STUDIO_NAME)}</h3>
<p>${_("Your request to author courses in {studio_name} has been denied. Please {link_start}contact {platform_name} Staff with further questions{link_end}.").format(
<p>${Text(_("Your request to author courses in {studio_name} has been denied. Please {link_start}contact {platform_name} Staff with further questions{link_end}.")).format(
@@ -54,8 +57,8 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
...
@@ -54,8 +57,8 @@ from openedx.core.djangolib.markup import HTML, ugettext as _
<sectionclass="container">
<sectionclass="container">
<divclass="home">
<divclass="home">
<divclass="page-header-main">
<divclass="page-header-main">
<h1class="page-title">${_("Welcome to {org}'s {course_name}!").format(org=course.display_org_with_default, course_name=course.display_number_with_default) | h}</h1>
<h1class="page-title">${_("Welcome to {org}'s {course_name}!").format(org=course.display_org_with_default, course_name=course.display_number_with_default)}</h1>