diff --git a/lms/static/js/Markdown.Editor.js b/lms/static/js/Markdown.Editor.js index e28c211d7b6cd1014aaca1bb2c077808a3fc0c59..abcd95f5a29d328ecb439e189c450ea7d998148c 100644 --- a/lms/static/js/Markdown.Editor.js +++ b/lms/static/js/Markdown.Editor.js @@ -27,8 +27,12 @@ // The text that appears on the upper part of the dialog box when // entering links. - var linkDialogText = "<p><b>" + gettext("Insert Hyperlink") + "</b></p><p>http://example.com/ " + gettext("\"optional title\"") + "</p>"; - var imageDialogText = "<p><b>" + gettext("Insert Image (upload file or type url)") + "</b></p><p>http://example.com/images/diagram.jpg " + gettext("\"optional title\"") + "<br><br></p>"; + var linkDialogText = "<p><b>" + gettext("Insert Hyperlink") + "</b></p><p>http://example.com/ " + + // Translators: Please keep the quotation marks (") around this text + gettext("\"optional title\"") + "</p>"; + var imageDialogText = "<p><b>" + gettext("Insert Image (upload file or type url)") + "</b></p><p>http://example.com/images/diagram.jpg " + + // Translators: Please keep the quotation marks (") around this text + gettext("\"optional title\"") + "<br><br></p>"; // The default text that appears in the dialog input box when entering // links. diff --git a/lms/templates/contact.html b/lms/templates/contact.html index 4b739008064d0d429b17aa5be83fec25e1110ea4..6bbfc43daa1e9dfa3ccf893e1a5cf0ac0835d4c1 100644 --- a/lms/templates/contact.html +++ b/lms/templates/contact.html @@ -28,8 +28,8 @@ 'discussion on our {fb_link_start}facebook page{fb_link_end}. Though we may ' 'not have a chance to respond to every email, we take all feedback into consideration.').format( platform_name=settings.PLATFORM_NAME, - contact_email='<a href="mailto:{0}">{0}</a>'.format(settings.CONTACT_EMAIL), - faq_link_start='<a href="{url}">'.format(url=reverse('faq_edx')), + contact_email=u'<a href="mailto:{0}">{0}</a>'.format(settings.CONTACT_EMAIL), + faq_link_start=u'<a href="{url}">'.format(url=reverse('faq_edx')), faq_link_end='</a>', fb_link_start='<a href="http://www.facebook.com/EdxOnline">', fb_link_end='</a>' @@ -44,23 +44,23 @@ 'please make sure you are using a current version of Firefox or Chrome, and include ' 'browser and version in your e-mail, as well as screenshots or other pertinent details. ' 'If you find a bug or other issues, you can reach us at the following: {bugs_email}.').format( - tech_email='<a href="mailto:{0}">{0}</a>'.format(settings.TECH_SUPPORT_EMAIL), - bug_email='<a href="mailto:{0}">{0}</a>'.format(settings.BUGS_EMAIL), + tech_email=u'<a href="mailto:{0}">{0}</a>'.format(settings.TECH_SUPPORT_EMAIL), + bug_email=u'<a href="mailto:{0}">{0}</a>'.format(settings.BUGS_EMAIL), platform_name=settings.PLATFORM_NAME )} </p> <h2>${_("Media")}</h2> <p>${_('Please visit our {link_start}media/press page{link_end} for more information. For any media or press inquiries, please email {email}.').format( - link_start='<a href="{url}">'.format(url=reverse('faq_edx')), + link_start=u'<a href="{url}">'.format(url=reverse('faq_edx')), link_end='</a>', - email='<a href="mailto:press@edx.org">press@edx.org</a>', + email=u'<a href="mailto:press@edx.org">press@edx.org</a>', )}</p> <h2>${_("Universities")}</h2> <p> ${_('If you are a university wishing to collaborate with or if you have questions about {platform_name}, please email {email}.').format( - email='<a href="mailto:university@edx.org">university@edx.org</a>', + email=u'<a href="mailto:university@edx.org">university@edx.org</a>', platform_name=settings.PLATFORM_NAME )} </p> diff --git a/lms/templates/courseware/courseware-error.html b/lms/templates/courseware/courseware-error.html index 38754aeeb4a9fe4bbe36e70956108dbe4946e0aa..8829ba3811ecd824c73855ca4068d865c60728b9 100644 --- a/lms/templates/courseware/courseware-error.html +++ b/lms/templates/courseware/courseware-error.html @@ -15,13 +15,13 @@ <section class="outside-app"> <h1> ${_('There has been an error on the {platform_name} servers').format( - platform_name='<span class="edx">{}</span>'.format(settings.PLATFORM_NAME) + platform_name=u'<span class="edx">{}</span>'.format(settings.PLATFORM_NAME) )} </h1> <p> ${_("We're sorry, this module is temporarily unavailable. Our staff is working to fix " "it as soon as possible. Please email us at {tech_support_email}' to report any problems or downtime.").format( - tech_support_email='<a href=\"mailto:{0}\">{0}</a>'.format(settings.TECH_SUPPORT_EMAIL) + tech_support_email=u'<a href=\"mailto:{0}\">{0}</a>'.format(settings.TECH_SUPPORT_EMAIL) )} </p> </section> diff --git a/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html b/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html index 8e200db4010387c7da000cc6d0c2099bae2ebdbe..c77f8d9e3f17f99199815a358d5496ee89be3c53 100644 --- a/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html +++ b/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html @@ -15,7 +15,10 @@ <ul class="reverify-list"> % for item in reverifications["must_reverify"]: <li class="item"> - ${_('{course_name}: Re-verify by {date}').format(course_name="<strong>item.course_name</strong>", date=item.date)} + ${_('{course_name}: Re-verify by {date}').format( + course_name=u"<strong>{0}</strong>".format(item.course_name), + date=item.date + )} </li> % endfor </ul> @@ -39,7 +42,10 @@ % for item in reverifications["must_reverify"]: <div class="copy"> <p class='activation-message'> - ${_('To continue in the ID Verified track in {course_name}, you need to re-verify your identity by {date}.').format(course_name="<strong>" + item.course_name + "</strong>", date=item.date)} + ${_('To continue in the ID Verified track in {course_name}, you need to re-verify your identity by {date}.').format( + course_name=u"<strong>{}</strong>".format(item.course_name), + date=item.date + )} </p> </div> </div> @@ -65,9 +71,12 @@ % if item.display: <div class="copy"> <p class='activation-message'> - ${_('Your re-verification for {course_name} failed and you are no longer eligible for a Verified Certificate. If you think this is in error, please contact us at {email}.').format(course_name="<strong>" + item.course_name+ "</strong>", email='<a class="contact-link" href="mailto:{email}">{email}</a>'.format( - email=billing_email - ))} + ${_('Your re-verification for {course_name} failed and you are no longer eligible for a Verified Certificate. If you think this is in error, please contact us at {email}.').format( + course_name=u"<strong>{}</strong>".format(item.course_name), + email=u'<a class="contact-link" href="mailto:{email}">{email}</a>'.format( + email=billing_email + ) + )} </p> </div> </div> diff --git a/lms/templates/enroll_students.html b/lms/templates/enroll_students.html index 9ffaa8c1bf33415abc3d815ecae4318f1ee3ecb9..5d3e2f798add74b4ccad33f2dd6622aa6224671e 100644 --- a/lms/templates/enroll_students.html +++ b/lms/templates/enroll_students.html @@ -24,8 +24,3 @@ ${ rejected_students } <p> ${_("Debug: ")} <p> ${ debug } - - -<p> "foo" -<p> "bar" -<p> "biff" diff --git a/lms/templates/help_modal.html b/lms/templates/help_modal.html index cdbe3d2ca8b959896a8ac7245ccd831ae17e36d9..195cb9d9032a4686af86033682435a77220da286 100644 --- a/lms/templates/help_modal.html +++ b/lms/templates/help_modal.html @@ -27,7 +27,11 @@ </button> <header> - <h2>${_('{platform_name} Help').format(platform_name='<span class="edx">{}</span>'.format(platform_name))}</h2> + <h2> + ${_('{platform_name} Help').format( + platform_name=u'<span class="edx">{}</span>'.format(platform_name) + )} + </h2> <hr> </header> diff --git a/lms/templates/module-error.html b/lms/templates/module-error.html index 4d2b2a8e95a8b9643fed590af40af60e45b8e589..45ad4e4512aa3a9d925e90f2e63fb0b764390398 100644 --- a/lms/templates/module-error.html +++ b/lms/templates/module-error.html @@ -3,14 +3,14 @@ <section class="outside-app"> <h1> ${_("There has been an error on the {platform_name} servers").format( - platform_name="<em>{}</em>".format(settings.PLATFORM_NAME) + platform_name=u"<em>{}</em>".format(settings.PLATFORM_NAME) )} </h1> <p> ${_("We're sorry, this module is temporarily unavailable. Our staff is working " "to fix it as soon as possible. Please email us at {tech_support_email} to " "report any problems or downtime.").format( - tech_support_email="<a href=\"mailto:{0}\">{0}</a>".format(settings.TECH_SUPPORT_EMAIL) + tech_support_email=u"<a href=\"mailto:{0}\">{0}</a>".format(settings.TECH_SUPPORT_EMAIL) )} </p> diff --git a/lms/templates/signup_modal.html b/lms/templates/signup_modal.html index 569f6ea722f97109df7a23806b1fc50fae6a5a42..efe2622f6fc271cec12f80ed147cfff685dd26e2 100644 --- a/lms/templates/signup_modal.html +++ b/lms/templates/signup_modal.html @@ -22,7 +22,7 @@ <header> <h2> ${_('Sign Up for {platform_name}').format( - platform_name='<span class="edx">{}</span>'.format(settings.PLATFORM_NAME) + platform_name=u'<span class="edx">{}</span>'.format(settings.PLATFORM_NAME) )} </h2> <hr> @@ -35,26 +35,26 @@ <div class="input-group"> % if has_extauth_info is UNDEFINED: - <label data-field="email" for="signup_email">${_('E-mail')} '*'</label> + <label data-field="email" for="signup_email">${_('E-mail')} + ' *'</label> <input id="signup_email" type="email" name="email" placeholder="${_('e.g. yourname@domain.com')}" required /> - <label data-field="password" for="signup_password">${_('Password')} '*'</label> + <label data-field="password" for="signup_password">${_('Password')} + ' *'</label> <input id="signup_password" type="password" name="password" placeholder="••••••••" required /> - <label data-field="username" for="signup_username">${_('Public Username')} '*'</label> + <label data-field="username" for="signup_username">${_('Public Username')} + ' *'</label> <input id="signup_username" type="text" name="username" placeholder="${_('e.g. yourname (shown on forums)')}" required /> - <label data-field="name" for="signup_fullname">${_('Full Name')} '*'</label> + <label data-field="name" for="signup_fullname">${_('Full Name')} + ' *'</label> <input id="signup_fullname" type="text" name="name" placeholder="${_('e.g. Your Name (for certificates)')}" required /> % else: <p>${_('<i>Welcome</i> {name}').format(name=extauth_id)}</p><br/> <p><i>${_('Enter a public username:')}</i></p> - <label data-field="username" for="signup_username">${_('Public Username')} '*'</label> + <label data-field="username" for="signup_username">${_('Public Username')} + ' *'</label> <input id="signup_username" type="text" name="username" value="${extauth_username}" placeholder="${_('e.g. yourname (shown on forums)')}" required /> % if ask_for_email: - <label data-field="email" for="signup_email">${_('E-mail')} '*'</label> + <label data-field="email" for="signup_email">${_('E-mail')} + ' *'</label> <input id="signup_email" type="email" name="email" placeholder="${_('e.g. yourname@domain.com')}" required /> % endif @@ -129,7 +129,7 @@ <input id="signup_tos" name="terms_of_service" type="checkbox" value="true"> ${_('I agree to the {link_start}Terms of Service{link_end}').format( link_start='<a href="{url}" target="_blank">'.format(url=reverse('tos')), - link_end='</a>') '*'} + link_end='</a>') + ' *'} </label> % if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden': @@ -137,7 +137,7 @@ <input id="signup_honor" name="honor_code" type="checkbox" value="true"> ${_('I agree to the {link_start}Honor Code{link_end}').format( link_start='<a href="{url}" target="_blank">'.format(url=reverse('honor')), - link_end='</a>') '*'} + link_end='</a>') + ' *'} </label> % endif </div> diff --git a/lms/templates/static_templates/server-down.html b/lms/templates/static_templates/server-down.html index 528e76ed9447805e27a3554a87fa71bb6c7b34bf..3ff617e00d730de5ac81d62b6df3dbd555c4add8 100644 --- a/lms/templates/static_templates/server-down.html +++ b/lms/templates/static_templates/server-down.html @@ -4,12 +4,12 @@ <section class="outside-app"> <h1> ${_("Currently the {platform_name} servers are down").format( - platform_name="<em>{}</em>".format(settings.PLATFORM_NAME) + platform_name=u"<em>{}</em>".format(settings.PLATFORM_NAME) )} </h1> <p> ${_("Our staff is currently working to get the site back up as soon as possible. " "Please email us at {tech_support_email} to report any problems or downtime.").format( - tech_support_email="<a href=\"mailto:{0}\">{0}</a>".format(settings.TECH_SUPPORT_EMAIL) + tech_support_email=u"<a href=\"mailto:{0}\">{0}</a>".format(settings.TECH_SUPPORT_EMAIL) )}</p> </section> diff --git a/lms/templates/static_templates/server-error.html b/lms/templates/static_templates/server-error.html index ee0fd2db92372c04f69d3e9910289d5ec3a38e0c..cf5d79c7ce28610b51e8691fa54a366260463fbb 100644 --- a/lms/templates/static_templates/server-error.html +++ b/lms/templates/static_templates/server-error.html @@ -2,12 +2,16 @@ <%inherit file="../main.html" /> <section class="outside-app"> - <h1>${_(u"There has been a 500 error on the {platform_name} servers").format( - platform_name="<em>{}</em>".format(platform_name=settings.PLATFORM_NAME) - )}</h1> - <p>${_(u'Please wait a few seconds and then reload the page. If the problem persists, please email us at {email}.').format( + <h1> + ${_(u"There has been a 500 error on the {platform_name} servers").format( + platform_name=u"<em>{}</em>".format(platform_name=settings.PLATFORM_NAME) + )} + </h1> + <p> + ${_(u'Please wait a few seconds and then reload the page. If the problem persists, please email us at {email}.').format( email=u'<a href="mailto:{email}">{email}</a>'.format( email=settings.TECH_SUPPORT_EMAIL ) - )}</p> + )} + </p> </section> diff --git a/lms/templates/static_templates/server-overloaded.html b/lms/templates/static_templates/server-overloaded.html index 76593ecb0f969cfe2560c6935c0d3891d4d07e38..e08317f3b46f6a3c64bd037fff7746d90eb81359 100644 --- a/lms/templates/static_templates/server-overloaded.html +++ b/lms/templates/static_templates/server-overloaded.html @@ -4,13 +4,13 @@ <section class="outside-app"> <h1> ${_("Currently the {platform_name} servers are overloaded").format( - platform_name="<em>{}</em>".format(platform_name=settings.PLATFORM_NAME) + platform_name=u"<em>{}</em>".format(platform_name=settings.PLATFORM_NAME) )} </h1> <p> ${_("Our staff is currently working to get the site back up as soon as possible. " "Please email us at {tech_support_email} to report any problems or downtime.").format( - tech_support_email="<a href=\"mailto:{0}\">{0}</a>".format(tech_support_email=settings.TECH_SUPPORT_EMAIL) + tech_support_email=u"<a href=\"mailto:{0}\">{0}</a>".format(tech_support_email=settings.TECH_SUPPORT_EMAIL) )} </p> </section>