diff --git a/lms/templates/admin_dashboard.html b/lms/templates/admin_dashboard.html index b9676faa16..5314881233 100644 --- a/lms/templates/admin_dashboard.html +++ b/lms/templates/admin_dashboard.html @@ -8,7 +8,7 @@
-

${_("edX-wide Summary")}

+

${_("{platform_name}-wide Summary").format(platform_name=settings.PLATFORM_NAME)}

% for key in results["scalars"]: diff --git a/lms/templates/combinedopenended/openended/open_ended.html b/lms/templates/combinedopenended/openended/open_ended.html index d4e622d4bd..15b3be1303 100644 --- a/lms/templates/combinedopenended/openended/open_ended.html +++ b/lms/templates/combinedopenended/openended/open_ended.html @@ -10,7 +10,7 @@
% if state == 'initial': - ${_(Unanswered)} + ${_("Unanswered")} % elif state == 'assessing': ${_("Submitted for grading.")} % if eta_message is not None: diff --git a/lms/templates/contact.html b/lms/templates/contact.html index ba6f8cc720..cb35aca359 100644 --- a/lms/templates/contact.html +++ b/lms/templates/contact.html @@ -21,8 +21,9 @@

${_("We are always seeking feedback to improve our courses. If you are an enrolled student and have any questions, feedback, suggestions, or any other issues specific to a particular class, please post on the discussion forums of that class.")}

${_("General Inquiries and Feedback")}

-

${_('If you have a general question about edX please email {email}. To see if your question has already been answered, visit our {faq_link_start}FAQ page{faq_link_end}. You can also join the 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( - email='info@edx.org', +

${_('If you have a general question about {platform_name} please email {contact_email}. To see if your question has already been answered, visit our {faq_link_start}FAQ page{faq_link_end}. You can also join the 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=settings.CONTACT_EMAIL, faq_link_start=''.format(url=reverse('faq_edx')), faq_link_end='', fb_link_start=''. @@ -30,9 +31,10 @@ )}

${_("Technical Inquiries and Feedback")}

-

${_('If you have suggestions/feedback about the overall edX platform, or are facing general technical issues with the platform (e.g., issues with email addresses and passwords), you can reach us at {tech_email}. For technical questions, 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: {bug_email}.').format( - tech_email='technical@edx.org', - bug_email='bugs@edx.org' +

${_('If you have suggestions/feedback about the overall {platform_name} platform, or are facing general technical issues with the platform (e.g., issues with email addresses and passwords), you can reach us at {tech_email}. For technical questions, 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=settings.TECH_SUPPORT_EMAIL, + bug_email=settings.BUGS_EMAIL, + platform_name=settings.PLATFORM_NAME )}

${_("Media")}

@@ -43,7 +45,7 @@ )}

${_("Universities")}

-

${_('If you are a university wishing to Collaborate or with questions about edX, please email {email}.'.format(email='university@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', platform_name="edX")}

diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index b086c8f2d9..b1bc715e9a 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -66,7 +66,7 @@ -<%block name="title">${_("About {course_number}").format(course_number=course.number)} +<%block name="title">${_("About {course.number}").format(course=course)}
@@ -87,13 +87,13 @@ %if show_courseware_link: %endif - ${_("You are registered for this course {course_number}").format(course_number=course.number)} + ${_("You are registered for this course {course.number}").format(course=course)} %if show_courseware_link: ${_("View Courseware")} %endif %else: - ${_("Register for {course_number}").format(course_number=course.number)} + ${_("Register for {course.number}").format(course=course)}
%endif diff --git a/lms/templates/courseware/courses.html b/lms/templates/courseware/courses.html index 0b20634d19..1f1d96a0df 100644 --- a/lms/templates/courseware/courses.html +++ b/lms/templates/courseware/courses.html @@ -17,7 +17,7 @@ % endif % if self.stanford_theme_enabled(): -

${_("Explore free courses from Stanford University.")}

+

${_("Explore free courses from {university_name}.").format(university_name="Stanford University")}

% else:

${_("Explore free courses from leading universities.")}

% endif diff --git a/lms/templates/courseware/courseware-error.html b/lms/templates/courseware/courseware-error.html index 3c61afd5d9..f0f7969026 100644 --- a/lms/templates/courseware/courseware-error.html +++ b/lms/templates/courseware/courseware-error.html @@ -2,8 +2,8 @@ <%inherit file="/main.html" /> <%namespace name='static' file='../static_content.html'/> <%block name="bodyclass">courseware -## "edX" should *not* be translated -<%block name="title">${_("Courseware")} - edX +## Translators: "edX" should *not* be translated +<%block name="title">${_("Courseware")} - ${settings.PLATFORM_NAME} <%block name="headextra"> <%static:css group='course'/> @@ -13,7 +13,7 @@
-

${_('There has been an error on the {span_start}edX{span_end} servers').format(span_start='', span_end='')}

-

${_("We're sorry, this module is temporarily unavailable. Our staff is working to fix it as soon as possible. Please email us at {email} to report any problems or downtime.").format(email='technical@edx.org')}

+

${_('There has been an error on the {span_start}{platform_name}{span_end} servers').format(platform_name=settings.PLATFORM_NAME, span_start='', span_end='')}

+

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

diff --git a/lms/templates/courseware/info.html b/lms/templates/courseware/info.html index 62eae827c7..4bb961428e 100644 --- a/lms/templates/courseware/info.html +++ b/lms/templates/courseware/info.html @@ -7,7 +7,7 @@ <%static:css group='course'/> -<%block name="title">${course.number} ${_("Course Info")} +<%block name="title">${_("{course.number} Course Info").format(course=course)} <%include file="/courseware/course_navigation.html" args="active_page='info'" /> <%! diff --git a/lms/templates/courseware/instructor_dashboard.html b/lms/templates/courseware/instructor_dashboard.html index e09e4e3350..b71f9a95ce 100644 --- a/lms/templates/courseware/instructor_dashboard.html +++ b/lms/templates/courseware/instructor_dashboard.html @@ -227,12 +227,12 @@ function goto( mode)

${_("Student-specific grade inspection and adjustment")}

- ${_("Specify the edX email address or username of a student here:")} + ${_("Specify the {platform_name} email address or username of a student here:").format(platform_name=settings.PLATFORM_NAME)}

${_("Click this, and a link to student's progress page will appear below:")} - +

${_("Specify a particular problem in the course here by its url:")} @@ -247,9 +247,9 @@ function goto( mode)

${_("Then select an action:")} - + %if settings.MITX_FEATURES.get('ENABLE_INSTRUCTOR_BACKGROUND_TASKS'): - + %endif

diff --git a/lms/templates/courseware/syllabus.html b/lms/templates/courseware/syllabus.html index c908b65661..f9b5455273 100644 --- a/lms/templates/courseware/syllabus.html +++ b/lms/templates/courseware/syllabus.html @@ -6,7 +6,7 @@ <%static:css group='course'/> -<%block name="title">${_("{course_number} Course Info").format(course_number=course.number)} +<%block name="title">${_("{course.number} Course Info").format(course=course)} <%include file="/courseware/course_navigation.html" args="active_page='syllabus'" /> <%! @@ -16,7 +16,7 @@
-

${_("Syllabus ")}

+

${_("Syllabus")}

% if user.is_authenticated(): ${get_course_syllabus_section(course, 'syllabus')} % else: diff --git a/lms/templates/courseware/welcome-back.html b/lms/templates/courseware/welcome-back.html index f7a34cb421..a622fe3c57 100644 --- a/lms/templates/courseware/welcome-back.html +++ b/lms/templates/courseware/welcome-back.html @@ -1,9 +1,9 @@ <%! from django.utils.translation import ugettext as _ %>

${chapter_module.display_name_with_default}

-

${_("You were most recently in {section_link}. If you're done with that, choose another section on the left.").format( - section_link='{section_name}'.format( - url=prev_section_url - section_name=prev_section.display_name_with_default, - ) - )}

+

${_("You were most recently in {section_link}. If you\'re done with that, choose another section on the left.").format( + section_link='{section_name}'.format( + url=prev_section_url, + section_name=prev_section.display_name_with_default, + ) + )}

diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 3faef44a75..6356b64209 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -50,15 +50,11 @@ {"new_email" : new_email, "password" : new_password}, function(data) { if (data.success) { -<<<<<<< HEAD - $("#change_email_title").html("${_('Please verify your new email')}")); - $("#change_email_form").html("

${_('You'll receive a confirmation in your in-box. Please click the link in the email to confirm the email change.')}

"); -======= $("#change_email_title").html("Please verify your new email"); $("#change_email_form").html("

You'll receive a confirmation in your " + "in-box. Please click the link in the " + "email to confirm the email change.

"); ->>>>>>> a187bc7... fix registration + $("#change_email_form").html("

${_('You\'ll receive a confirmation in your in-box. Please click the link in the email to confirm the email change.')}

"); } else { $("#change_email_error").html(data.error).stop().css("display", "block"); } @@ -144,11 +140,11 @@ % if course.id in show_courseware_links_for: - ${_( + ${_('{course_number} {course_name} Cover Image').format(course_number='${course.number}', course_name='${course.display_name_with_default}')} % else:
- ${_( + ${_('{course_number} {course_name} Cover Image').format(course_number='${course.number}', course_name='${course.display_name_with_default}')}
% endif @@ -205,7 +201,7 @@ ${_("Your registration for the Pearson exam has been rejected. Please {link_start}see your registration status details{link_end}.").format( link_start=''.format(url=testcenter_register_target), link_end='')} - ${_("Otherwise {link_start}contact edX at {email}{link_end} for further help.').format( + ${_("Otherwise {link_start}contact edX at {email}{link_end} for further help.").format( link_start=''.format(email="exam-help@edx.org", about=get_course_about_section(course, 'university'), number=course.number), link_end='', email="exam-help@edx.org", @@ -405,7 +401,7 @@
-

${_("To uphold the credibility of {platform} certificates, all name changes will be logged and recorded.".format(platform=settings.PLATFORM_NAME)}

+

${_("To uphold the credibility of {platform} certificates, all name changes will be logged and recorded.").format(platform=settings.PLATFORM_NAME)}


diff --git a/lms/templates/discussion/_single_thread.html b/lms/templates/discussion/_single_thread.html index 11763b1803..6c7e52d4d6 100644 --- a/lms/templates/discussion/_single_thread.html +++ b/lms/templates/discussion/_single_thread.html @@ -8,7 +8,7 @@
%if thread['group_id']: -
${_("This post visible only to group %s.") % cohort_dictionary[thread['group_id']]}
+
${_("This post visible only to group {group}.").format(group=cohort_dictionary[thread['group_id']])}
%endif + ${thread['votes']['up_count']} diff --git a/lms/templates/footer.html b/lms/templates/footer.html index 80772ed9f3..9c94e5751e 100644 --- a/lms/templates/footer.html +++ b/lms/templates/footer.html @@ -39,7 +39,7 @@
-

${_("EdX is a non-profit created by founding partners Harvard and MIT whose mission is to bring the best of higher education to students of all ages anywhere in the world, wherever there is Internet access. EdX's free online MOOCs are interactive and subjects include computer science, public health, and artificial intelligence.")}

+

${_("{platform_name} is a non-profit created by founding partners {Harvard} and {MIT} whose mission is to bring the best of higher education to students of all ages anywhere in the world, wherever there is Internet access. {platform_name}'s free online MOOCs are interactive and subjects include computer science, public health, and artificial intelligence.").format(platform_name="EdX", Harvard="Harvard", MIT="MIT")}

@@ -74,7 +74,7 @@ - +
- % endfor
${s['new_name']|h} ${s['email']|h} ${s['rationale']|h}${_("[Confirm]")} + [${_("Confirm")}] ${_("[Reject]")}
diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html index 74166b528e..589d12666d 100644 --- a/lms/templates/navigation.html +++ b/lms/templates/navigation.html @@ -44,7 +44,7 @@ site_status_msg = get_site_status_msg(course_id)

<%block name="navigation_logo"> - ${_('edX home')} + ${_('{settings.PLATFORM_NAME} home')}

@@ -70,7 +70,7 @@ site_status_msg = get_site_status_msg(course_id)
  • - ${_("More options dropdown")} + ${_("More options dropdown")}