mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Make lang a little less error prone
This commit is contained in:
@@ -292,7 +292,7 @@ class Stationsetup extends CI_Controller {
|
||||
|
||||
private function lbdel2html($id, $logbook_name) {
|
||||
if($this->session->userdata('active_station_logbook') != $id) {
|
||||
$htmret='<button id="'.$id.'" class="deleteLogbook btn btn-outline-danger btn-sm" cnftext="'.__("Are you sure you want to delete the following station logbook? You must re-link any locations linked here to another logbook.: ").$logbook_name.'"><i class="fas fa-trash-alt"></i></button>';
|
||||
$htmret='<button id="'.$id.'" class="deleteLogbook btn btn-outline-danger btn-sm" cnftext="'.sprintf(__("Are you sure you want to delete the station logbook %s? You must re-link any locations linked here to another logbook."), $logbook_name).'"><i class="fas fa-trash-alt"></i></button>';
|
||||
} else {
|
||||
$htmret='';
|
||||
}
|
||||
@@ -388,7 +388,7 @@ class Stationsetup extends CI_Controller {
|
||||
private function stationbadge2html($station_active, $qso_total, $current_active, $station_profile_name, $id) {
|
||||
$returntext = '';
|
||||
if($station_active != 1) {
|
||||
$returntext .= '<button id="'.$id.'" class="setActiveStation btn btn-outline-secondary btn-sm" cnftext="'. __("Are you sure you want to make the following station the active station: ") . $station_profile_name .'">' . __("Set Active") . '</button><br/>';
|
||||
$returntext .= '<button id="'.$id.'" class="setActiveStation btn btn-outline-secondary btn-sm" cnftext="'. sprintf(__("Are you sure you want to make the station profile %s the active station?"), $station_profile_name) .'">' . __("Set Active") . '</button><br/>';
|
||||
} else {
|
||||
$returntext .= '<span class="badge bg-success text-bg-success">' . __("Active Station") . '</span><br/>';
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<td>
|
||||
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
|
||||
<button id="<?php echo $row->logbook_id; ?>" class="deleteLogbook btn btn-outline-danger btn-sm"
|
||||
cnftext="'<?= __("Are you sure you want to delete the following station logbook? You must re-link any locations linked here to another logbook.: ") . $row->logbook_name; ?>'"><i
|
||||
cnftext="<?= sprintf(__("Are you sure you want to delete the station logbook %s? You must re-link any locations linked here to another logbook."), $row->logbook_name); ?>"><i
|
||||
class="fas fa-trash-alt"></i></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
@@ -158,7 +158,7 @@
|
||||
<td></td>
|
||||
<td>
|
||||
<?php if($row->station_active != 1) { ?>
|
||||
<a href="<?php echo site_url('station/set_active/').$current_active."/".$row->station_id; ?>" class="btn btn-outline-secondary btn-sm" onclick="return confirm('<?= __("Are you sure you want to make the following station the active station: "); ?> <?php echo $row->station_profile_name; ?>');"><?= __("Set Active"); ?></a>
|
||||
<a href="<?php echo site_url('station/set_active/').$current_active."/".$row->station_id; ?>" class="btn btn-outline-secondary btn-sm" onclick="return confirm('<?= sprintf(__("Are you sure you want to make the station profile %s the active station?"), $row->station_profile_name); ?>');"><?= __("Set Active"); ?></a>
|
||||
<?php } else { ?>
|
||||
<span class="badge bg-success"><?= __("Active Station"); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user