diff --git a/lms/static/js/Markdown.Editor.js b/lms/static/js/Markdown.Editor.js index e28c211d7b..abcd95f5a2 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 = "
" + gettext("Insert Hyperlink") + "
http://example.com/ " + gettext("\"optional title\"") + "
"; - var imageDialogText = "" + gettext("Insert Image (upload file or type url)") + "
http://example.com/images/diagram.jpg " + gettext("\"optional title\"") + "
" + gettext("Insert Hyperlink") + "
http://example.com/ " + + // Translators: Please keep the quotation marks (") around this text + gettext("\"optional title\"") + "
"; + var imageDialogText = "" + gettext("Insert Image (upload file or type url)") + "
http://example.com/images/diagram.jpg " +
+ // Translators: Please keep the quotation marks (") around this text
+ gettext("\"optional title\"") + "
${_('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=''.format(url=reverse('faq_edx')), + link_start=u''.format(url=reverse('faq_edx')), link_end='', - email='press@edx.org', + email=u'press@edx.org', )}
${_('If you are a university wishing to collaborate with or if you have questions about {platform_name}, please email {email}.').format( - email='university@edx.org', + email=u'university@edx.org', platform_name=settings.PLATFORM_NAME )}
diff --git a/lms/templates/courseware/courseware-error.html b/lms/templates/courseware/courseware-error.html index 38754aeeb4..8829ba3811 100644 --- a/lms/templates/courseware/courseware-error.html +++ b/lms/templates/courseware/courseware-error.html @@ -15,13 +15,13 @@${_("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='{0}'.format(settings.TECH_SUPPORT_EMAIL) + tech_support_email=u'{0}'.format(settings.TECH_SUPPORT_EMAIL) )}
${_("Debug: ")}
${ debug } - - -
"foo" -
"bar" -
"biff"
diff --git a/lms/templates/help_modal.html b/lms/templates/help_modal.html
index cdbe3d2ca8..195cb9d903 100644
--- a/lms/templates/help_modal.html
+++ b/lms/templates/help_modal.html
@@ -27,7 +27,11 @@
${_("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="{0}".format(settings.TECH_SUPPORT_EMAIL)
+ tech_support_email=u"{0}".format(settings.TECH_SUPPORT_EMAIL)
)}
${_('Welcome {name}').format(name=extauth_id)} ${_('Enter a public username:')}
${_("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="{0}".format(settings.TECH_SUPPORT_EMAIL)
+ tech_support_email=u"{0}".format(settings.TECH_SUPPORT_EMAIL)
)} ${_(u'Please wait a few seconds and then reload the page. If the problem persists, please email us at {email}.').format(
+
+ ${_(u'Please wait a few seconds and then reload the page. If the problem persists, please email us at {email}.').format(
email=u'{email}'.format(
email=settings.TECH_SUPPORT_EMAIL
)
- )}${_('{platform_name} Help').format(platform_name='{}'.format(platform_name))}
+
+ ${_('{platform_name} Help').format(
+ platform_name=u'{}'.format(platform_name)
+ )}
+
${_("There has been an error on the {platform_name} servers").format(
- platform_name="{}".format(settings.PLATFORM_NAME)
+ platform_name=u"{}".format(settings.PLATFORM_NAME)
)}
${_('Sign Up for {platform_name}').format(
- platform_name='{}'.format(settings.PLATFORM_NAME)
+ platform_name=u'{}'.format(settings.PLATFORM_NAME)
)}
@@ -35,26 +35,26 @@
${_("Currently the {platform_name} servers are down").format(
- platform_name="{}".format(settings.PLATFORM_NAME)
+ platform_name=u"{}".format(settings.PLATFORM_NAME)
)}
${_(u"There has been a 500 error on the {platform_name} servers").format(
- platform_name="{}".format(platform_name=settings.PLATFORM_NAME)
- )}
-
+ ${_(u"There has been a 500 error on the {platform_name} servers").format(
+ platform_name=u"{}".format(platform_name=settings.PLATFORM_NAME)
+ )}
+
+
${_("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="{0}".format(tech_support_email=settings.TECH_SUPPORT_EMAIL) + tech_support_email=u"{0}".format(tech_support_email=settings.TECH_SUPPORT_EMAIL) )}