From e8f8fc7f5f5eba315290bc8d45348c3a4d4bee79 Mon Sep 17 00:00:00 2001 From: Bot Date: Wed, 29 Aug 2018 21:55:32 +0200 Subject: Replaced gettext translation `_()` with `__()` that uses the Translator class --- includes/view/ShiftCalendarShiftRenderer.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes/view/ShiftCalendarShiftRenderer.php') diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 9643f195..9e40b1c6 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -131,7 +131,7 @@ class ShiftCalendarShiftRenderer if (in_array('user_shifts_admin', $privileges)) { $html .= '
  • '; $html .= button(shift_entry_create_link_admin($shift), - glyph('plus') . _('Add more angels'), + glyph('plus') . __('Add more angels'), 'btn-xs' ); $html .= '
  • '; @@ -191,18 +191,18 @@ class ShiftCalendarShiftRenderer . ' ' . button( shift_entry_create_link($shift, $angeltype), - _('Sign up'), 'btn-xs btn-primary' + __('Sign up'), 'btn-xs btn-primary' ); break; case ShiftSignupState::SHIFT_ENDED: // No link and add a text hint, when the shift ended - $entry_list[] = $inner_text . ' (' . _('ended') . ')'; + $entry_list[] = $inner_text . ' (' . __('ended') . ')'; break; case ShiftSignupState::NOT_ARRIVED: // No link and add a text hint, when the shift ended - $entry_list[] = $inner_text . ' (' . _('please arrive for signup') . ')'; + $entry_list[] = $inner_text . ' (' . __('please arrive for signup') . ')'; break; case ShiftSignupState::ANGELTYPE: @@ -217,7 +217,7 @@ class ShiftCalendarShiftRenderer 'user_angeltypes', ['action' => 'add', 'angeltype_id' => $angeltype['id']] ), - sprintf(_('Become %s'), $angeltype['name']), + sprintf(__('Become %s'), $angeltype['name']), 'btn-xs' ); } -- cgit v1.2.3-54-g00ecf