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/Rooms_view.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/view/Rooms_view.php') diff --git a/includes/view/Rooms_view.php b/includes/view/Rooms_view.php index 4c38208e..d883e4b2 100644 --- a/includes/view/Rooms_view.php +++ b/includes/view/Rooms_view.php @@ -21,14 +21,14 @@ function Room_view($room, ShiftsFilterRenderer $shiftsFilterRenderer, ShiftCalen $description = ''; if (!empty($room['description'])) { - $description = '

' . _('Description') . '

'; + $description = '

' . __('Description') . '

'; $parsedown = new Parsedown(); $description .= '
' . $parsedown->parse($room['description']) . '
'; } $tabs = []; if (!empty($room['map_url'])) { - $tabs[_('Map')] = sprintf( + $tabs[__('Map')] = sprintf( '
' . '' . '
', @@ -36,7 +36,7 @@ function Room_view($room, ShiftsFilterRenderer $shiftsFilterRenderer, ShiftCalen ); } - $tabs[_('Shifts')] = div('first', [ + $tabs[__('Shifts')] = div('first', [ $shiftsFilterRenderer->render(page_link_to('rooms', [ 'action' => 'view', 'room_id' => $room['RID'] -- cgit v1.2.3-54-g00ecf