Skip to content

Commit

Permalink
Merge pull request #3121 from louyihua/translation-fix-cms
Browse files Browse the repository at this point in the history
Translation fix in studio: For better translation in unit.html
  • Loading branch information
andy-armstrong committed Mar 31, 2014
2 parents 5235328 + 5829717 commit 2086d09
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions cms/templates/unit.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,21 @@ <h4 class="header">${_("Unit Settings")}</h4>
<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 class="row status">
<p>${_("This unit is scheduled to be released to <strong>students</strong>")}
% if release_date is not None:
${_(u"on {date}").format(date=u"<strong>{}</strong>".format(release_date))}
% endif
${_("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='</a>',
)}
<p>
% if release_date is not None:
${_("This unit is scheduled to be released to <strong>students</strong> on <strong>{date}</strong> with the subsection {link_start}{name}{link_end}").format(
date=release_date,
name=subsection.display_name_with_default,
link_start=u'<a href="{url}">'.format(url=subsection_url),
link_end=u'</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>
</div>
<div class="row unit-actions">
Expand Down

0 comments on commit 2086d09

Please sign in to comment.