xref: /webtrees/resources/views/help/date.phtml (revision 0115bc1678cafd957052cd2d256563ad3e242cc1)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<p>
4    <?= I18N::translate('Dates are stored using English abbreviations and keywords. Shortcuts are available as alternatives to these abbreviations and keywords.') ?>
5</p>
6
7<table class="table table-bordered table-sm">
8    <thead>
9        <tr>
10            <th>
11                <?= I18N::translate('Date') ?>
12            </th>
13            <th>
14                <?= I18N::translate('Format') ?>
15            </th>
16            <th>
17                <?= I18N::translate('Shortcut') ?>
18            </th>
19        </tr>
20    </thead>
21    <tbody>
22        <?php foreach ($date_dates as $code => $date) : ?>
23            <tr>
24                <td>
25                    <?= $date ?>
26                </td>
27                <td>
28                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
29                </td>
30                <td>
31                    <?php foreach ($date_shortcuts[$code] as $shortcut) : ?>
32                        <kbd dir="ltr" lang="en"><?= $shortcut ?></kbd>
33                        <br>
34                    <?php endforeach ?>
35                </td>
36            </tr>
37        <?php endforeach ?>
38    </tbody>
39</table>
40
41<p>
42    <?= I18N::translate('Date ranges are used to indicate that an event, such as a birth, happened on an unknown date within a possible range.') ?>
43</p>
44
45<table class="table table-bordered table-sm">
46    <thead>
47        <tr>
48            <th>
49                <?= I18N::translate('Date range') ?>
50            </th>
51            <th>
52                <?= I18N::translate('Format') ?>
53            </th>
54            <th>
55                <?= I18N::translate('Shortcut') ?>
56            </th>
57        </tr>
58    </thead>
59    <tbody>
60        <?php foreach ($date_range_dates as $code => $date) : ?>
61            <tr>
62                <td>
63                    <?= $date ?>
64                </td>
65                <td>
66                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
67                </td>
68                <td>
69                    <?php foreach ($date_range_shortcuts[$code] as $shortcut) : ?>
70                        <kbd dir="ltr" lang="en"><?= $shortcut ?></kbd>
71                        <br>
72                    <?php endforeach ?>
73                </td>
74            </tr>
75        <?php endforeach ?>
76    </tbody>
77</table>
78
79<p>
80    <?=I18N::translate('Date periods are used to indicate that a fact, such as an occupation, continued for a period of time.') ?>
81</p>
82
83<table class="table table-bordered table-sm">
84    <thead>
85        <tr>
86            <th>
87                <?= I18N::translate('Date period') ?>
88            </th>
89            <th>
90                <?= I18N::translate('Format') ?>
91            </th>
92            <th>
93                <?= I18N::translate('Shortcut') ?>
94            </th>
95        </tr>
96    </thead>
97    <tbody>
98        <?php foreach ($date_period_dates as $code => $date) : ?>
99            <tr>
100                <td>
101                    <?= $date ?>
102                </td>
103                <td>
104                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
105                </td>
106                <td>
107                    <?php foreach ($date_period_shortcuts[$code] as $shortcut) : ?>
108                        <kbd dir="ltr" lang="en"><?= $shortcut ?></kbd>
109                        <br>
110                    <?php endforeach ?>
111                </td>
112            </tr>
113        <?php endforeach ?>
114    </tbody>
115</table>
116
117<p>
118    <?= I18N::translate('Simple dates are assumed to be in the gregorian calendar. To specify a date in another calendar, add a keyword before the date. This keyword is optional if the month or year format make the date unambiguous.') ?>
119</p>
120
121<table class="table table-bordered table-sm">
122    <thead>
123        <tr>
124            <th>
125                <?= I18N::translate('Date') ?>
126            </th>
127            <th>
128                <?= I18N::translate('Format') ?>
129            </th>
130        </tr>
131    </thead>
132    <tbody>
133        <tr>
134            <th colspan="2">
135                <?= I18N::translate('Julian') ?>
136            </th>
137        </tr>
138        <?php foreach ($julian_dates as $code => $date) : ?>
139            <tr>
140                <td>
141                    <?= $date ?>
142                </td>
143                <td>
144                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
145                </td>
146            </tr>
147        <?php endforeach ?>
148
149        <tr>
150            <th colspan="2">
151                <?= I18N::translate('Jewish') ?>
152            </th>
153        </tr>
154        <?php foreach ($jewish_dates as $code => $date) : ?>
155            <tr>
156                <td>
157                    <?= $date ?>
158                </td>
159                <td>
160                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
161                </td>
162            </tr>
163        <?php endforeach ?>
164
165        <tr>
166            <th colspan="2">
167                <?= I18N::translate('Hijri') ?>
168            </th>
169        </tr>
170        <?php foreach ($hijri_dates as $code => $date) : ?>
171            <tr>
172                <td>
173                    <?= $date ?>
174                </td>
175                <td>
176                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
177                </td>
178            </tr>
179        <?php endforeach ?>
180
181        <tr>
182            <th colspan="2">
183                <?= I18N::translate('French') ?>
184            </th>
185        </tr>
186        <?php foreach ($french_dates as $code => $date) : ?>
187            <tr>
188                <td>
189                    <?= $date ?>
190                </td>
191                <td>
192                    <kbd dir="ltr" lang="en"><?= $code ?></kbd>
193                </td>
194            </tr>
195        <?php endforeach ?>
196    </tbody>
197</table>
198