Skip to content
Snippets Groups Projects
Unverified Commit 6d522c55 authored by Ned Batchelder's avatar Ned Batchelder Committed by GitHub
Browse files

Merge pull request #21440 from appsembler/omar/document-prev-next

Allow correct gender translations for course unit prev/next buttons
parents 2b0d281e de0964db
No related merge requests found
<%page expression_filter="h"/>
<%! from django.utils.translation import ugettext as _ %>
<%! from django.utils.translation import pgettext, ugettext as _ %>
<div id="sequence_${element_id}" class="sequence" data-id="${item_id}"
data-position="${position}" data-ajax-url="${ajax_url}"
......@@ -22,10 +22,12 @@
<div class="sequence-nav">
<button class="sequence-nav-button button-previous">
<span class="icon fa fa-chevron-prev" aria-hidden="true"></span>
<span class="sequence-nav-button-label">${_('Previous')}</span>
## Translators: A button for showing the Previous Unit
<span class="sequence-nav-button-label">${pgettext('unit', 'Previous')}</span>
</button>
<button class="sequence-nav-button button-next">
<span class="sequence-nav-button-label">${_('Next')}</span>
## Translators: A button for showing the Next Unit
<span class="sequence-nav-button-label">${pgettext('unit', 'Next')}</span>
<span class="icon fa fa-chevron-next" aria-hidden="true"></span>
</button>
<nav class="sequence-list-wrapper" aria-label="${_('Sequence')}">
......@@ -88,10 +90,12 @@
<nav class="sequence-bottom" aria-label="${_('Section')}">
<button class="sequence-nav-button button-previous">
<span class="icon fa fa-chevron-prev" aria-hidden="true"></span>
<span>${_('Previous')}</span>
## Translators: A button for showing the Previous Unit
<span>${pgettext('unit', 'Previous')}</span>
</button>
<button class="sequence-nav-button button-next">
<span>${_('Next')}</span>
## Translators: A button for showing the Next Unit
<span>${pgettext('unit', 'Next')}</span>
<span class="icon fa fa-chevron-next" aria-hidden="true"></span>
</button>
</nav>
......
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