Skip to content

Commit

Permalink
FIX Step navigation buttons are not translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Sep 3, 2018
1 parent 76540d8 commit 6e3eea2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lang/en.yml
Expand Up @@ -148,6 +148,8 @@ en:
one: 'A Page Break'
other: '{count} Page Breaks'
SINGULARNAME: 'Page Break'
STEP_NEXT: Next
STEP_PREV: Prev
STEP_TITLE: 'Page {page}'
TITLE_FIRST: 'First Page'
SilverStripe\UserForms\Model\EditableFormField\EditableLiteralField:
Expand Down
Expand Up @@ -5,10 +5,14 @@
so the 'prev' and 'next' button are not used. These buttons are made visible via JavaScript.
--%>
<li class="step-button-wrapper" aria-hidden="true" style="display:none;">
<button class="step-button-prev">Prev</button>
<button class="step-button-prev">
<%t SilverStripe\\UserForms\\Model\\EditableFormField\\EditableFormStep.STEP_PREV "Prev" %>
</button>
</li>
<li class="step-button-wrapper" aria-hidden="true" style="display:none;">
<button class="step-button-next">Next</button>
<button class="step-button-next">
<%t SilverStripe\\UserForms\\Model\\EditableFormField\\EditableFormStep.STEP_NEXT "Next" %>
</button>
</li>

<% if $Actions %>
Expand All @@ -20,4 +24,4 @@
<% end_if %>

</ul>
</nav>
</nav>

0 comments on commit 6e3eea2

Please sign in to comment.