diff --git a/display.php b/display.php index 18e6c0c..a705cbf 100644 --- a/display.php +++ b/display.php @@ -81,7 +81,7 @@ qh_page_start(
-
+
diff --git a/queue_bootstrap.php b/queue_bootstrap.php index 231887c..305435c 100644 --- a/queue_bootstrap.php +++ b/queue_bootstrap.php @@ -972,11 +972,14 @@ function qh_status_badge(string $status): string function qh_call_message(array $ticket): array { $ticketNumber = $ticket['ticket_number'] ?? '---'; + $spokenTicket = trim(preg_replace('/([a-zA-Z])/u', '$1, ', str_replace('-', ' ', $ticketNumber))); - if (("ticket['status']" ?? '') === 'nursing_called') { + if (($ticket['status'] ?? '') === 'nursing_called') { return [ 'en' => sprintf('Ticket %s, please proceed to Nursing Station.', $ticketNumber), 'ar' => sprintf('رقم التذكرة %s، يرجى التوجه إلى محطة التمريض.', $ticketNumber), + 'speech_en' => sprintf('Ticket %s, please proceed to Nursing Station.', $spokenTicket), + 'speech_ar' => sprintf('رقم التذكرة %s، يرجى التوجه إلى محطة التمريض.', $spokenTicket), ]; } @@ -987,6 +990,8 @@ function qh_call_message(array $ticket): array return [ 'en' => sprintf('Ticket %s, please proceed to room %s for %s.', $ticketNumber, $room, $doctorNameEn), 'ar' => sprintf('رقم التذكرة %s، يرجى التوجه إلى الغرفة %s إلى %s.', $ticketNumber, $room, $doctorNameAr), + 'speech_en' => sprintf('Ticket %s, please proceed to room %s for %s.', $spokenTicket, $room, $doctorNameEn), + 'speech_ar' => sprintf('رقم التذكرة %s، يرجى التوجه إلى الغرفة %s إلى %s.', $spokenTicket, $room, $doctorNameAr), ]; }