Fix translation methods
This commit is contained in:
parent
1a6c7599d6
commit
f73b8e7a0e
|
@ -205,7 +205,7 @@ class ShiftCalendarShiftRenderer
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ShiftSignupState::NOT_YET:
|
case ShiftSignupState::NOT_YET:
|
||||||
$entry_list[] = $inner_text . ' (' . _('not yet') . ')';
|
$entry_list[] = $inner_text . ' (' . __('not yet') . ')';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ShiftSignupState::ANGELTYPE:
|
case ShiftSignupState::ANGELTYPE:
|
||||||
|
@ -250,7 +250,7 @@ class ShiftCalendarShiftRenderer
|
||||||
/**
|
/**
|
||||||
* Renders the shift header
|
* Renders the shift header
|
||||||
*
|
*
|
||||||
* @param array $shift The shift
|
* @param array $shift The shift
|
||||||
* @param string $class The shift state class
|
* @param string $class The shift state class
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -131,8 +131,8 @@ function Shift_view($shift, $shifttype, $room, $angeltypes_source, ShiftSignupSt
|
||||||
|
|
||||||
if (config('signup_advance_hours') && $shift['start'] > time() + config('signup_advance_hours') * 3600) {
|
if (config('signup_advance_hours') && $shift['start'] > time() + config('signup_advance_hours') * 3600) {
|
||||||
$content[] = info(sprintf(
|
$content[] = info(sprintf(
|
||||||
_('This shift is in the far future and becomes available for signup at %s.'),
|
__('This shift is in the far future and becomes available for signup at %s.'),
|
||||||
date(_('Y-m-d') . ' H:i', $shift['start'] - config('signup_advance_hours') * 3600)
|
date(__('Y-m-d') . ' H:i', $shift['start'] - config('signup_advance_hours') * 3600)
|
||||||
), true);
|
), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ function Shift_view_render_needed_angeltype($needed_angeltype, $angeltypes, $shi
|
||||||
|
|
||||||
$needed_angels .= '<h3>' . AngelType_name_render($angeltype) . '</h3>';
|
$needed_angels .= '<h3>' . AngelType_name_render($angeltype) . '</h3>';
|
||||||
$bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10);
|
$bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10);
|
||||||
$bar_value = max($bar_max/10, $needed_angeltype['taken'] * 10);
|
$bar_value = max($bar_max / 10, $needed_angeltype['taken'] * 10);
|
||||||
$needed_angels .= progress_bar(
|
$needed_angels .= progress_bar(
|
||||||
0,
|
0,
|
||||||
$bar_max,
|
$bar_max,
|
||||||
|
|
Loading…
Reference in New Issue