Commit 2086d09f by Andy Armstrong

Merge pull request #3121 from louyihua/translation-fix-cms

Translation fix in studio: For better translation in unit.html
parents 52353289 58297175
...@@ -168,15 +168,21 @@ require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit" ...@@ -168,15 +168,21 @@ require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit"
<p class="publish-draft-message">${_('This is a draft of the published unit. To update the live version, you must {link_start}replace it with this draft{link_end}.').format(link_start='<a href="#" class="publish-draft">', link_end='</a>')}</p> <p class="publish-draft-message">${_('This is a draft of the published unit. To update the live version, you must {link_start}replace it with this draft{link_end}.').format(link_start='<a href="#" class="publish-draft">', link_end='</a>')}</p>
</div> </div>
<div class="row status"> <div class="row status">
<p>${_("This unit is scheduled to be released to <strong>students</strong>")} <p>
% if release_date is not None: % if release_date is not None:
${_(u"on {date}").format(date=u"<strong>{}</strong>".format(release_date))} ${_("This unit is scheduled to be released to <strong>students</strong> on <strong>{date}</strong> with the subsection {link_start}{name}{link_end}").format(
% endif date=release_date,
${_("with the subsection {link_start}{name}{link_end}").format( name=subsection.display_name_with_default,
name=subsection.display_name_with_default, link_start=u'<a href="{url}">'.format(url=subsection_url),
link_start=u'<a href="{url}">'.format(url=subsection_url), link_end=u'</a>',
link_end='</a>', )}
)} % else:
${_("This unit is scheduled to be released to <strong>students</strong> with the subsection {link_start}{name}{link_end}").format(
name=subsection.display_name_with_default,
link_start=u'<a href="{url}">'.format(url=subsection_url),
link_end=u'</a>',
)}
% endif
</p> </p>
</div> </div>
<div class="row unit-actions"> <div class="row unit-actions">
......
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