summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-08-21 22:11:20 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-08-21 22:11:20 +0200
commitf73b8e7a0eb08592985ee842b8b6d6c01b0f8e2f (patch)
tree589b3314eb3d67ca82dad02ba4375c0cd2d2509a /includes/view
parent1a6c7599d68cb73f4ce8d1aebec894b10fc7aab1 (diff)
Fix translation methods
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php4
-rw-r--r--includes/view/Shifts_view.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 933db27c..1414c351 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -205,7 +205,7 @@ class ShiftCalendarShiftRenderer
break;
case ShiftSignupState::NOT_YET:
- $entry_list[] = $inner_text . ' (' . _('not yet') . ')';
+ $entry_list[] = $inner_text . ' (' . __('not yet') . ')';
break;
case ShiftSignupState::ANGELTYPE:
@@ -250,7 +250,7 @@ class ShiftCalendarShiftRenderer
/**
* Renders the shift header
*
- * @param array $shift The shift
+ * @param array $shift The shift
* @param string $class The shift state class
* @return string
*/
diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php
index 133ceb06..4a4e4f0c 100644
--- a/includes/view/Shifts_view.php
+++ b/includes/view/Shifts_view.php
@@ -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) {
$content[] = info(sprintf(
- _('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)
+ __('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)
), true);
}
@@ -197,7 +197,7 @@ function Shift_view_render_needed_angeltype($needed_angeltype, $angeltypes, $shi
$needed_angels .= '<h3>' . AngelType_name_render($angeltype) . '</h3>';
$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(
0,
$bar_max,