diff options
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r-- | includes/view/ShiftCalendarShiftRenderer.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 9e40b1c6..80cea241 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -175,10 +175,8 @@ class ShiftCalendarShiftRenderer $angeltype, $shift_entries ); - $inner_text = sprintf( - ngettext('%d helper needed', '%d helpers needed', $shift_signup_state->getFreeEntries()), - $shift_signup_state->getFreeEntries() - ); + $freeEntriesCount = $shift_signup_state->getFreeEntries(); + $inner_text = _e('%d helper needed', '%d helpers needed', $freeEntriesCount, [$freeEntriesCount]); switch ($shift_signup_state->getState()) { case ShiftSignupState::ADMIN: |