xref: /webtrees/resources/views/lists/datatables-attributes.phtml (revision 2ebb07b4bd8cf7010946ea4d75bb6160666157f6)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3data-dom="<&quot;d-flex justify-content-between&quot;prf><t><&quot;d-flex justify-content-between&quot;il>"
4data-state-save="true"
5data-state-duration="3600"
6data-length-menu="<?= e(json_encode([[10, 20, 50, 100, 500, 1000, -1], [I18N::number(10), I18N::number(20), I18N::number(50), I18N::number(100), I18N::number(500), I18N::number(1000), I18N::translate('All')]])) ?>"
7data-language="<?= e(json_encode([
8    'paginate'       => [
9        /* I18N: A button label, first page */
10        'first'    => I18N::translate('first'),
11        /* I18N: A button label, last page */
12        'last'     => I18N::translate('last'),
13        /* I18N: A button label, next page */
14        'next'     => I18N::translate('next'),
15        /* I18N: A button label, previous page */
16        'previous' => I18N::translate('previous'),
17    ],
18    'emptyTable'     => I18N::translate('No records to display'),
19    /* I18N: %s are placeholders for numbers */
20    'info'           => I18N::translate('Showing %1$s to %2$s of %3$s', '_START_', '_END_', '_TOTAL_'),
21    'infoEmpty'      => I18N::translate('Showing %1$s to %2$s of %3$s', I18N::number(0), I18N::number(0), I18N::number(0)),
22    /* I18N: %s is a number */
23    'infoFiltered'   => I18N::translate('(filtered from %s total entries)', '_MAX_'),
24    /* I18N: %s is a number of records per page */
25    'lengthMenu'     => I18N::translate('Display %s', '_MENU_'),
26    'loadingRecords' => I18N::translate('Loading…'),
27    'processing'     => I18N::translate('Calculating…'),
28    'search'         => I18N::translate('Filter'),
29    'zeroRecords'    => I18N::translate('No records to display'),
30])) ?>"
31