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