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