From 520aed3d32ccd73cde703e7899c0b59d06394bce Mon Sep 17 00:00:00 2001 From: Felix Favre Date: Sat, 23 Aug 2014 17:30:38 +0200 Subject: [PATCH] Changed Next Shift Countdown Format --- includes/view/User_view.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/view/User_view.php b/includes/view/User_view.php index baa02591..1824a1c4 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -23,11 +23,11 @@ function User_shift_mode_render($shift_mode) { if ($shift_mode == 0) return '' . _("Free") . ''; if ($shift_mode > 8 * 3600) - return '' . sprintf(_("Next shift in %s min"), floor($shift_mode / 60)) . ''; + return '' . _("Next shift in") . ''; if ($shift_mode > 0) - return '' . sprintf(_("Next shift in %s min"), floor($shift_mode / 60)) . ''; + return '' . _("Next shift in") . ''; if ($shift_mode < 0) - return '' . sprintf(_("Current ends in %s min"), floor($shift_mode / 60)) . ''; + return '' . _("Current shift ends in") . ''; } function User_view($user_source, $admin_user_privilege, $freeloader, $user_shift_mode, $user_angeltypes, $user_groups, $shifts, $its_me) {