From d9432041994f34065d734a2efef99e5b2c3dd690 Mon Sep 17 00:00:00 2001 From: Ben McMorran Date: Wed, 20 Aug 2014 11:57:59 -0400 Subject: [PATCH] Fix i18n on course outline and show error message for long names --- cms/static/js/views/utils/create_course_utils.js | 4 ++-- cms/templates/course_outline.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/static/js/views/utils/create_course_utils.js b/cms/static/js/views/utils/create_course_utils.js index c712e649d2..2c0c3493ac 100644 --- a/cms/static/js/views/utils/create_course_utils.js +++ b/cms/static/js/views/utils/create_course_utils.js @@ -39,12 +39,12 @@ define(["jquery", "underscore", "gettext", "js/views/utils/view_utils"], }, 0 ); if (totalLength > 65) { - $(selectors.errorWrapper).addClass(classes.shown); + $(selectors.errorWrapper).addClass(classes.shown).removeClass(classes.hiding); $(selectors.errorMessage).html('

' + gettext('The combined length of the organization, course number, and course run fields cannot be more than 65 characters.') + '

'); $(selectors.save).addClass(classes.disabled); } else { - $(selectors.errorWrapper).removeClass(classes.shown); + $(selectors.errorWrapper).removeClass(classes.shown).addClass(classes.hiding); } }; diff --git a/cms/templates/course_outline.html b/cms/templates/course_outline.html index 2fd4867b64..3e7629e770 100644 --- a/cms/templates/course_outline.html +++ b/cms/templates/course_outline.html @@ -43,9 +43,9 @@ from contentstore.utils import reverse_usage_url
-

This course was created as a re-run. Some manual configuration is needed.

+

${_("This course was created as a re-run. Some manual configuration is needed.")}

-

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.

+

${_("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.")}