diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8d43f7cf..97fd42ea 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -7,6 +7,7 @@ Changelog - Enh #387: Add title and description in Open Graph description on event pages - Enh #394: If the location is an URL, convert it to a clickable link - Enh #393: Automatically Update end time +- Fix #400: When language is set to dutch attendees aren't shown properly 1.5.0 (May 1, 2023) -------------------- diff --git a/messages/nl/widgets_views_participants.php b/messages/nl/widgets_views_participants.php index d709c754..ec96969c 100644 --- a/messages/nl/widgets_views_participants.php +++ b/messages/nl/widgets_views_participants.php @@ -1,8 +1,8 @@ ':aantal aanwezig', - ':count Declined' => ':aantal afgewezen', - ':count Invited' => ':aantal uitgenodigd', - ':count Undecided' => ':aantal onbepaald', + ':count Attending' => ':count aanwezig', + ':count Declined' => ':count afgewezen', + ':count Invited' => ':count uitgenodigd', + ':count Undecided' => ':count onbepaald', 'Participants' => 'Deelnemers', ); diff --git a/widgets/EntryParticipants.php b/widgets/EntryParticipants.php index 9ace3229..2cffe31b 100644 --- a/widgets/EntryParticipants.php +++ b/widgets/EntryParticipants.php @@ -45,7 +45,7 @@ public function run() private function getParticipantStateCount($state, $condition) { if(!$condition) { - return null; + return 0; } return $this->calendarEntry->getParticipantCount($state);