xref: /webtrees/resources/views/edit/initialize-calendar-popup.phtml (revision f917a287a93831c16eb580f066d00d78ab1f25d9)
1<?php use Fisharebest\Webtrees\I18N; ?>
2<?php use Fisharebest\Webtrees\View; ?>
3
4<?php View::push('javascript') ?>
5<script>
6  cal_setMonthNames(
7        <?= json_encode(I18N::translateContext('NOMINATIVE', 'January')) ?>,
8        <?= json_encode(I18N::translateContext('NOMINATIVE', 'February')) ?>,
9        <?= json_encode(I18N::translateContext('NOMINATIVE', 'March')) ?>,
10        <?= json_encode(I18N::translateContext('NOMINATIVE', 'April')) ?>,
11        <?= json_encode(I18N::translateContext('NOMINATIVE', 'May')) ?>,
12        <?= json_encode(I18N::translateContext('NOMINATIVE', 'June')) ?>,
13        <?= json_encode(I18N::translateContext('NOMINATIVE', 'July')) ?>,
14        <?= json_encode(I18N::translateContext('NOMINATIVE', 'August')) ?>,
15        <?= json_encode(I18N::translateContext('NOMINATIVE', 'September')) ?>,
16        <?= json_encode(I18N::translateContext('NOMINATIVE', 'October')) ?>,
17        <?= json_encode(I18N::translateContext('NOMINATIVE', 'November')) ?>,
18        <?= json_encode(I18N::translateContext('NOMINATIVE', 'December')) ?>
19  );
20
21  cal_setDayHeaders(
22        <?= json_encode(I18N::translate('Sun')) ?>,
23        <?= json_encode(I18N::translate('Mon')) ?>,
24        <?= json_encode(I18N::translate('Tue')) ?>,
25        <?= json_encode(I18N::translate('Wed')) ?>,
26        <?= json_encode(I18N::translate('Thu')) ?>,
27        <?= json_encode(I18N::translate('Fri')) ?>,
28        <?= json_encode(I18N::translate('Sat')) ?>
29  );
30
31  cal_setWeekStart(<?= I18N::locale()->territory()->firstDay() ?>);
32</script>
33<?php View::endpush() ?>
34