Commit ac1ac2d9 by Adam Palay

i18n template fixes

syntax fix
parent cc6ca29b
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
contact_email=settings.CONTACT_EMAIL, contact_email=settings.CONTACT_EMAIL,
faq_link_start='<a href="{url}">'.format(url=reverse('faq_edx')), faq_link_start='<a href="{url}">'.format(url=reverse('faq_edx')),
faq_link_end='</a>', faq_link_end='</a>',
fb_link_start='<a href="http://www.facebook.com/EdxOnline">'. fb_link_start='<a href="http://www.facebook.com/EdxOnline">',
fb_link_end='</a>' fb_link_end='</a>'
)}</p> )}</p>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
)}</p> )}</p>
<h2>${_("Universities")}</h2> <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>', platform_name="edX")}</p> <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>', platform_name="edX")}</p>
</div> </div>
</section> </section>
</section> </section>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<section id="help-modal" class="modal"> <section id="help-modal" class="modal">
<div class="inner-wrapper" id="help_wrapper"> <div class="inner-wrapper" id="help_wrapper">
<header> <header>
<h2>${_('{span_start}{platform_name}{span_end} Help').format(span_start='<span class="edx">', span_end='</span>').format(platform_name=settings.PLATFORM_NAME)}</h2> <h2>${_('{span_start}{platform_name}{span_end} Help').format(span_start='<span class="edx">', span_end='</span>', platform_name=settings.PLATFORM_NAME)}</h2>
<hr> <hr>
</header> </header>
......
...@@ -8,7 +8,7 @@ function name_confirm(id) { ...@@ -8,7 +8,7 @@ function name_confirm(id) {
if(data.success){ if(data.success){
$("#div"+id).html(${_("Accepted")}); $("#div"+id).html(${_("Accepted")});
} else { } else {
alert(${_('Error')); alert(${_('Error')});
} } } }
}); });
} }
...@@ -19,7 +19,7 @@ function name_deny(id) { ...@@ -19,7 +19,7 @@ function name_deny(id) {
if(data.success){ if(data.success){
$("#div"+id).html(${_("Rejected")}); $("#div"+id).html(${_("Rejected")});
} else { } else {
alert(${_('Error')); alert(${_('Error')});
} } } }
}); });
} }
......
...@@ -476,7 +476,7 @@ ...@@ -476,7 +476,7 @@
<div class="details details-contact"> <div class="details details-contact">
<h4>${_('Questions')}</h4> <h4>${_('Questions')}</h4>
<p>${_('If you have a specific question pertaining to your registration, you may {contact_link_start}contact edX at exam-help@edx.org{contact_link_end}.').format(contact_link_start='<a class="contact-link" href="{}"'.format(exam_help_href), contact_link_end='</a>')</p> <p>${_('If you have a specific question pertaining to your registration, you may {contact_link_start}contact edX at exam-help@edx.org{contact_link_end}.').format(contact_link_start='<a class="contact-link" href="{}"'.format(exam_help_href), contact_link_end='</a>')}</p>
</div> </div>
</aside> </aside>
</section> </section>
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