xref: /webtrees/resources/views/lists/datatables-attributes.phtml (revision 2342bacd006740235a2ce44445bc7c1b16f38a39)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
310e06497SGreg Roachdeclare(strict_types=1);
410e06497SGreg Roach
5d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
6d70512abSGreg Roach
7d70512abSGreg Roach?>
871d313c5SGreg Roach
9b4139381SGreg Roachdata-auto-width="false"
10*2342bacdSGreg Roachdata-layout="<?= e(json_encode(['topStart' => 'paging', 'topEnd' => 'search', 'bottomStart' => 'info', 'bottomEnd' => 'pageLength'], JSON_THROW_ON_ERROR)) ?>"
1171d313c5SGreg Roachdata-state-save="true"
12728c8c27SGreg Roachdata-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')]], JSON_THROW_ON_ERROR)) ?>"
1371d313c5SGreg Roachdata-language="<?= e(json_encode([
1471d313c5SGreg Roach        'paginate'       => [
1571d313c5SGreg Roach            /* I18N: A button label, first page */
1671d313c5SGreg Roach            'first'    => I18N::translate('first'),
1771d313c5SGreg Roach            /* I18N: A button label, last page */
1871d313c5SGreg Roach            'last'     => I18N::translate('last'),
1971d313c5SGreg Roach            /* I18N: A button label, next page */
2071d313c5SGreg Roach            'next'     => I18N::translate('next'),
2171d313c5SGreg Roach            /* I18N: A button label, previous page */
2271d313c5SGreg Roach            'previous' => I18N::translate('previous'),
2371d313c5SGreg Roach        ],
2471d313c5SGreg Roach        'emptyTable'     => I18N::translate('No records to display'),
2571d313c5SGreg Roach        /* I18N: %s are placeholders for numbers */
2671d313c5SGreg Roach        'info'           => I18N::translate('Showing %1$s to %2$s of %3$s', '_START_', '_END_', '_TOTAL_'),
2771d313c5SGreg Roach        'infoEmpty'      => I18N::translate('Showing %1$s to %2$s of %3$s', I18N::number(0), I18N::number(0), I18N::number(0)),
2871d313c5SGreg Roach        /* I18N: %s is a number */
2971d313c5SGreg Roach        'infoFiltered'   => I18N::translate('(filtered from %s total entries)', '_MAX_'),
3071d313c5SGreg Roach        /* I18N: %s is a number of records per page */
3171d313c5SGreg Roach        'lengthMenu'     => I18N::translate('Display %s', '_MENU_'),
3271d313c5SGreg Roach        'loadingRecords' => I18N::translate('Loading…'),
3371d313c5SGreg Roach        'processing'     => I18N::translate('Calculating…'),
3471d313c5SGreg Roach        'search'         => I18N::translate('Filter'),
3571d313c5SGreg Roach        'zeroRecords'    => I18N::translate('No records to display'),
36728c8c27SGreg Roach    ], JSON_THROW_ON_ERROR)) ?>"
37