gettext and frontend

This commit is contained in:
github-actions
2024-08-05 17:57:48 +02:00
parent 6eb0758b01
commit 16e41578cb
2 changed files with 10 additions and 12 deletions

View File

@@ -40,11 +40,11 @@
if ($query->num_rows() > 0)
{
echo "<thead><tr>";
echo "<th>Radio</th>";
echo "<th>Frequency</th>";
echo "<th>Mode</th>";
echo "<th>Timestamp</th>" ;
echo "<th>Options</th>";
echo "<th>" . __("Radio") . "</th>";
echo "<th>" . __("Frequency") . "</th>";
echo "<th>" . __("Mode") . "</th>";
echo "<th>" . __("Timestamp") . "</th>" ;
echo "<th>" . __("Options") . "</th>";
echo "</tr></thead><tbody>";
foreach ($query->result() as $row)
{
@@ -69,13 +69,13 @@
$phpdate = strtotime($row->timestamp);
echo "<td>".date('H:i:s d-m-y', $phpdate)."</td>" ;
echo "<td><a href=\"".site_url('radio/delete')."/".$row->id."\" class=\"btn btn-sm btn-danger\"> <i class=\"fas fa-trash-alt\"></i> Delete</a></td>" ;
echo "<td><a href=\"".site_url('radio/delete')."/".$row->id."\" class=\"btn btn-sm btn-danger\"> <i class=\"fas fa-trash-alt\"></i> " . __("Delete") . "</a></td>" ;
echo "</tr>";
}
echo "</tbody>";
} else {
echo "<thead><tr>";
echo "<td colspan=\"4\">No CAT Interfaced radios found.</td>";
echo "<td colspan=\"4\">" . __("No CAT Interfaced radios found") . ".</td>";
echo "</tr></thead>";
}