mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
gettext and frontend
This commit is contained in:
@@ -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>";
|
||||
}
|
||||
|
||||
|
||||
@@ -18,15 +18,13 @@
|
||||
<div class="card-body">
|
||||
<p class="card-text"><?= __("Below is a list of active radios that are connected to Wavelog."); ?></p>
|
||||
<p class="card-text"><?= __("If you haven't connected any radios yet, see the API page to generate API keys."); ?></p>
|
||||
<p class="card-text">
|
||||
<span class="badge text-bg-info"><?= __("Info"); ?></span> <?= sprintf(__("You can find out how to use the %s in the wiki."), '<a href="https://github.com/wavelog/wavelog/wiki/Radio-Interface" target="_blank">' . __("radio functions") . '</a>'); ?>
|
||||
</p>
|
||||
<div class="table-responsive">
|
||||
<!-- Display Radio Statuses -->
|
||||
<table class="table table-sm table-condensated table-striped status"></table>
|
||||
</div>
|
||||
|
||||
<p class="card-text">
|
||||
<span class="badge text-bg-info"><?= __("Info"); ?></span> <?= sprintf(__("You can find out how to use the %s in the wiki."), '<a href="https://github.com/wavelog/wavelog/wiki/Radio-Interface" target="_blank">' . __("radio functions") . '</a>'); ?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user