Translations for Emergency Logs and Time Conditions (#6879)

* Create app_languages.php

* Update emergency.php to use app_language

* Update app_languages.php

add translations for Weekdays and Months

* Update time_condition_edit.php

make month and day of week use translations
This commit is contained in:
paulc97
2024-02-05 10:53:34 -07:00
committed by GitHub
parent 4bb8bbe8a4
commit 6538e1c6d6
4 changed files with 599 additions and 10 deletions
+6 -6
View File
@@ -143,12 +143,12 @@ $object = new token;
$token = $object->create($_SERVER['PHP_SELF']);
//additional includes
$document['title'] = 'Emergency Logs';
$document['title'] = $text['title-emergency-logs'];
require_once "resources/header.php";
//show the content
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>Emergency Logs (".$num_rows.")</b></div>\n";
echo " <div class='heading'><b>".$text['title-emergency-logs']." (".$num_rows.")</b></div>\n";
echo " <div class='actions'>\n";
if ($emergency_logs) {
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'id'=>'btn_delete','name'=>'btn_delete','style'=>'display:none;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
@@ -181,10 +181,10 @@ echo "<br /><br />\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
echo "<th class='left'>Time</th>\n";
echo "<th class='left'>Date</th>\n";
echo "<th class='left'>Extension</th>\n";
echo "<th class='left'>Event</th>\n";
echo "<th class='left'>".$text['lable-emergency-time']."</th>\n";
echo "<th class='left'>".$text['lable-emergency-date']."</th>\n";
echo "<th class='left'>".$text['lable-emergency-extension']."</th>\n";
echo "<th class='left'>".$text['lable-emergency-event']."</th>\n";
echo "</tr>\n";
if (!empty($emergency_logs) && is_array($emergency_logs) && @sizeof($emergency_logs) != 0) {