Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

GridFieldPaginator localization

  • Loading branch information...
commit 023721aaca788534e298d206d3607a462be04e17 1 parent c7fd9a6
@chillu chillu authored
Showing with 14 additions and 2 deletions.
  1. +14 −2 templates/Includes/GridFieldPaginator_Row.ss
View
16 templates/Includes/GridFieldPaginator_Row.ss
@@ -3,9 +3,21 @@
<% if $OnlyOnePage %>
<% else %>
<div class="datagrid-pagination">
- $FirstPage $PreviousPage <span class="pagination-page-number">Page <input class="text" value="$CurrentPageNum" data-skip-autofocus="true" /> of $NumPages</span> $NextPage $LastPage
+ $FirstPage $PreviousPage
+ <span class="pagination-page-number">
+ <% _t('Pagination.Page', 'Page') %>
+ <input class="text" value="$CurrentPageNum" data-skip-autofocus="true" />
+ <% _t('TableListField_PageControls.ss.OF', 'of', 'Example: View 1 of 2') %>
+ $NumPages
+ </span>
+ $NextPage $LastPage
</div>
<% end_if %>
- <span class="pagination-records-number">View $FirstShownRecord - $LastShownRecord of $NumRecords</span>
+ <span class="pagination-records-number">
+ <% _t('Pagination.View', 'View', 'Verb. Example: View 1 of 2') %>
+ $FirstShownRecord - $LastShownRecord
+ <% _t('TableListField_PageControls.ss.OF', 'of', 'Example: View 1 of 2') %>
+ $NumRecords
+ </span>
</td>
</tr>
Please sign in to comment.
Something went wrong with that request. Please try again.