summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/CalendarEvents.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-02-24 09:09:56 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-02-24 09:10:05 +0000
commitbfed30e4637307a4679a3e3e333171c671154b8b (patch)
treeb27d169c00a013f923bc4deaf4e431bdd4a50f18 /app/Http/RequestHandlers/CalendarEvents.php
parentff691435fab02d117ae2224ff3b628a4c8cde7d3 (diff)
downloadwebtrees-bfed30e4637307a4679a3e3e333171c671154b8b.tar.gz
webtrees-bfed30e4637307a4679a3e3e333171c671154b8b.tar.bz2
webtrees-bfed30e4637307a4679a3e3e333171c671154b8b.zip
CodeStyle
Diffstat (limited to 'app/Http/RequestHandlers/CalendarEvents.php')
-rw-r--r--app/Http/RequestHandlers/CalendarEvents.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/CalendarEvents.php b/app/Http/RequestHandlers/CalendarEvents.php
index 669f1ed33f..bae0ab1721 100644
--- a/app/Http/RequestHandlers/CalendarEvents.php
+++ b/app/Http/RequestHandlers/CalendarEvents.php
@@ -156,7 +156,7 @@ class CalendarEvents implements RequestHandlerInterface
$xref = $fact->record()->xref();
$text = $fact->label() . ' — ' . $fact->date()->display($tree);
if ($fact->anniv > 0) {
- $text .= ' (' . I18N::translate('%s year anniversary', $fact->anniv) . ')';
+ $text .= ' (' . I18N::translate('%s year anniversary', I18N::number($fact->anniv)) . ')';
}
if (empty($cal_facts[$d][$xref])) {
$cal_facts[$d][$xref] = $text;
@@ -169,7 +169,8 @@ class CalendarEvents implements RequestHandlerInterface
$week_start = (I18N::locale()->territory()->firstDay() + 6) % 7;
$weekend_start = (I18N::locale()->territory()->weekendStart() + 6) % 7;
$weekend_end = (I18N::locale()->territory()->weekendEnd() + 6) % 7;
- // The french calendar has a 10-day week, which starts on primidi
+
+ // The French calendar has a 10-day week, which starts on primidi.
if ($days_in_week === 10) {
$week_start = 0;
$weekend_start = -1;