Commit d9432041 by Ben McMorran

Fix i18n on course outline and show error message for long names

parent baee2da2
...@@ -39,12 +39,12 @@ define(["jquery", "underscore", "gettext", "js/views/utils/view_utils"], ...@@ -39,12 +39,12 @@ define(["jquery", "underscore", "gettext", "js/views/utils/view_utils"],
}, 0 }, 0
); );
if (totalLength > 65) { if (totalLength > 65) {
$(selectors.errorWrapper).addClass(classes.shown); $(selectors.errorWrapper).addClass(classes.shown).removeClass(classes.hiding);
$(selectors.errorMessage).html('<p>' + gettext('The combined length of the organization, course number, and course run fields cannot be more than 65 characters.') + '</p>'); $(selectors.errorMessage).html('<p>' + gettext('The combined length of the organization, course number, and course run fields cannot be more than 65 characters.') + '</p>');
$(selectors.save).addClass(classes.disabled); $(selectors.save).addClass(classes.disabled);
} }
else { else {
$(selectors.errorWrapper).removeClass(classes.shown); $(selectors.errorWrapper).removeClass(classes.shown).addClass(classes.hiding);
} }
}; };
......
...@@ -43,9 +43,9 @@ from contentstore.utils import reverse_usage_url ...@@ -43,9 +43,9 @@ from contentstore.utils import reverse_usage_url
<i class="alert-symbol icon-bullhorn"></i> <i class="alert-symbol icon-bullhorn"></i>
<div class="copy"> <div class="copy">
<h2 class="title title-3">This course was created as a re-run. Some manual configuration is needed.</h2> <h2 class="title title-3">${_("This course was created as a re-run. Some manual configuration is needed.")}</h2>
<p>Be sure to review and reset all dates (the Course Start Date was set to January 1, 2030); set up the course team; review course updates and other assets for dated material; and seed the discussions and wiki.</p> <p>${_("Be sure to review and reset all dates (the Course Start Date was set to January 1, 2030); set up the course team; review course updates and other assets for dated material; and seed the discussions and wiki.")}</p>
</div> </div>
<ul class="nav-actions"> <ul class="nav-actions">
......
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