stringify

This commit is contained in:
HB9HIL
2024-07-11 17:50:55 +02:00
parent f0f0f2ff8e
commit 4f9c0f8e53
2 changed files with 15 additions and 14 deletions

View File

@@ -115,23 +115,23 @@ class Debug extends CI_Controller
if (!empty($qsl_files_filtered) || !empty($eqsl_files_filtered)) {
if (!$flag_file) {
$status['btn_class'] = '';
$status['btn_text'] = 'Migrate data now';
$status['btn_text'] = __("Migrate data now");
} else {
$status['btn_class'] = '';
$status['btn_text'] = 'Migration already done. Run again?';
$status['btn_text'] = __("Migration already done. Run again?");
}
} else {
$status['btn_class'] = 'disabled';
$status['btn_text'] = 'No data to migrate';
$status['btn_text'] = __("No data to migrate");
}
} else {
$status['btn_class'] = 'disabled';
$status['btn_text'] = 'No migration possible';
$status['btn_text'] = __("No migration possible");
}
} else {
// If the folder is not writable, we don't need to continue
$status['btn_class'] = 'disabled';
$status['btn_text'] = 'No migration possible';
$status['btn_text'] = __("No migration possible");
}
return $status;
@@ -213,10 +213,10 @@ class Debug extends CI_Controller
$migrate = $this->debug_model->migrate_userdata();
if ($migrate == true) {
$this->session->set_flashdata('success', 'File Migration was successfull, but please check also manually. If everything seems right you can delete the folders "assets/qslcard" and "images/eqsl_card_images".');
$this->session->set_flashdata('success', __("File Migration was successfull, but please check also manually. If everything seems right you can delete the folders 'assets/qslcard' and 'images/eqsl_card_images'."));
redirect('debug');
} else {
$this->session->set_flashdata('error', 'File Migration failed. Please check the Error Log.');
$this->session->set_flashdata('error', __("File Migration failed. Please check the Error Log."));
redirect('debug');
}
}

View File

@@ -181,6 +181,7 @@
<span class="badge rounded-pill text-bg-warning">encryption_key: <?= __("Warning"); ?></span> <?= __("You use the default encryption key. You should change it!"); ?>
</div>
<p><?= sprintf(__("Please edit your %s File:"),"<code>application/config/config.php</code>"); ?></br>
<?= __("This will also enable the 'Keep me logged in' feature.");?></br>
<?= sprintf(__("Change the value of %s to a new encryption key other then 'flossie1234555541'. Choose a safe and long password. (Strongly recommended)"),"<span class=\"badge rounded-pill text-bg-secondary\">\$config['encryption_key']</span>"); ?>
</p>
</div>
@@ -479,38 +480,38 @@
</thead>
<tr>
<td><?= __("DXCC update from Club Log"); ?></td>
<td><?php echo $dxcc_update->last_run ?? 'never'; ?></td>
<td><?php echo $dxcc_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update'); ?>"><?= __("Update"); ?></a></td>
</tr>
<tr>
<td><?= __("DOK file download"); ?></td>
<td><?php echo $dok_update->last_run ?? 'never'; ?></td>
<td><?php echo $dok_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_dok'); ?>"><?= __("Update"); ?></a></td>
</tr>
<tr>
<td><?= __("LoTW users download"); ?></td>
<td><?php echo $lotw_user_update->last_run ?? 'never'; ?></td>
<td><?php echo $lotw_user_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/lotw_users'); ?>"><?= __("Update"); ?></a></td>
</tr>
<tr>
<td><?= __("POTA file download"); ?></td>
<td><?php echo $pota_update->last_run ?? 'never'; ?></td>
<td><?php echo $pota_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_pota'); ?>"><?= __("Update"); ?></a></td>
</tr>
<tr>
<td><?= __("SCP file download"); ?></td>
<td><?php echo $scp_update->last_run ?? 'never'; ?></td>
<td><?php echo $scp_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_clublog_scp'); ?>"><?= __("Update"); ?></a></td>
</tr>
<tr>
<td><?= __("SOTA file download"); ?></td>
<td><?php echo $sota_update->last_run ?? 'never'; ?></td>
<td><?php echo $sota_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_sota'); ?>"><?= __("Update"); ?></a></td>
</tr>
<tr>
<td><?= __("WWFF file download"); ?></td>
<td><?php echo $wwff_update->last_run ?? 'never'; ?></td>
<td><?php echo $wwff_update->last_run ?? __("never"); ?></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo site_url('update/update_wwff'); ?>"><?= __("Update"); ?></a></td>
</tr>
</table>