Add support for translations to 'QSO Details' lightbox

这个提交包含在:
Leroy Diaz 2021-02-08 21:18:36 +00:00
父节点 59ef57f450
当前提交 56c77f3bd2
共有 6 个文件被更改,包括 71 次插入36 次删除

查看文件

@ -3,6 +3,18 @@
class Logbook extends CI_Controller { class Logbook extends CI_Controller {
function __construct()
{
parent::__construct();
// Load language files
$this->lang->load(array(
'qslcard',
'lotw',
'qso'
));
}
function index() function index()
{ {
$this->load->model('user_model'); $this->load->model('user_model');

查看文件

@ -12,6 +12,7 @@ $lang['general_word_choose_file'] = 'Choose file';
$lang['general_word_date'] = 'Date'; $lang['general_word_date'] = 'Date';
$lang['general_word_time'] = 'Time'; $lang['general_word_time'] = 'Time';
$lang['general_word_datetime'] = 'Date/Time';
$lang['general_word_none'] = 'None'; $lang['general_word_none'] = 'None';
$lang['general_word_name'] = 'Name'; $lang['general_word_name'] = 'Name';
$lang['general_word_location'] = 'Location'; $lang['general_word_location'] = 'Location';
@ -37,6 +38,8 @@ $lang['general_word_method'] = 'Method';
$lang['general_word_sent'] = 'Sent'; $lang['general_word_sent'] = 'Sent';
$lang['general_word_received'] = 'Received'; $lang['general_word_received'] = 'Received';
$lang['general_word_requested'] = 'Requested'; $lang['general_word_requested'] = 'Requested';
$lang['general_word_qslcard'] = 'QSL Card';
$lang['general_word_qslcard_management'] = 'QSL Management';
$lang['general_word_qslcards'] = 'QSL Cards'; $lang['general_word_qslcards'] = 'QSL Cards';
$lang['general_word_qslcard_direct'] = 'Direct'; $lang['general_word_qslcard_direct'] = 'Direct';
$lang['general_word_qslcard_bureau'] = 'Bureau'; $lang['general_word_qslcard_bureau'] = 'Bureau';
@ -48,6 +51,8 @@ $lang['general_mark_qsl_rx_direct'] = 'Mark QSL Received (Direct)';
$lang['general_delete_qso'] = 'Delete QSO'; $lang['general_delete_qso'] = 'Delete QSO';
$lang['general_total_distance'] = 'Total Distance';
// Cloudlog Terms // Cloudlog Terms
$lang['cloudlog_station_profile'] = 'Station Profile'; $lang['cloudlog_station_profile'] = 'Station Profile';

查看文件

@ -2,6 +2,7 @@
defined('BASEPATH') OR exit('No direct script access allowed'); defined('BASEPATH') OR exit('No direct script access allowed');
$lang['lotw_short'] = 'LoTW';
$lang['lotw_title'] = 'Logbook of the World'; $lang['lotw_title'] = 'Logbook of the World';
$lang['lotw_title_available_cert'] = 'Available Certificates'; $lang['lotw_title_available_cert'] = 'Available Certificates';
$lang['lotw_title_information'] = 'Information'; $lang['lotw_title_information'] = 'Information';
@ -46,4 +47,6 @@ $lang['lotw_btn_import_matches'] = 'Import LoTW Matches';
$lang['lotw_p12_export_step_one'] = 'Open TQSL & go to the Callsign Certificates Tab'; $lang['lotw_p12_export_step_one'] = 'Open TQSL & go to the Callsign Certificates Tab';
$lang['lotw_p12_export_step_two'] = 'Right click on desired Callsign'; $lang['lotw_p12_export_step_two'] = 'Right click on desired Callsign';
$lang['lotw_p12_export_step_three'] = 'Click "Save Callsign Certificate File" and do not add a password'; $lang['lotw_p12_export_step_three'] = 'Click "Save Callsign Certificate File" and do not add a password';
$lang['lotw_p12_export_step_four'] = 'Upload File below.'; $lang['lotw_p12_export_step_four'] = 'Upload File below.';
$lang['lotw_confirmed'] = 'This QSO is confirmed on LoTW';

查看文件

@ -5,3 +5,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');
// Tiles // Tiles
$lang['qslcard_string_your_are_using'] = 'You are using'; $lang['qslcard_string_your_are_using'] = 'You are using';
$lang['qslcard_string_disk_space'] = 'of disk space to store QSL Card assets'; $lang['qslcard_string_disk_space'] = 'of disk space to store QSL Card assets';
$lang['qslcard_info'] = 'QSL Info';
$lang['qslcard_sent_bureau'] = 'QSL Card has been sent via the bureau';
$lang['qslcard_sent_direct'] = 'QSL Card has been sent via direct';
$lang['qslcard_recv_bureau'] = 'QSL Card has been received via the bureau';
$lang['qslcard_recv_direct'] = 'QSL Card has been received via direct';
$lang['qslcard_upload_front'] = 'Uploaded QSL Card front image';
$lang['qslcard_upload_back'] = 'Uploaded QSL Card back image';
$lang['qslcard_upload_button'] = 'Upload QSL Card image';

查看文件

@ -22,4 +22,8 @@ $lang['qso_notes_helptext'] = 'Note content is used within Cloudlog only and is
// Button Text on /qso Display // Button Text on /qso Display
$lang['qso_btn_reset_qso'] = 'Reset'; $lang['qso_btn_reset_qso'] = 'Reset';
$lang['qso_btn_save_qso'] = 'Save QSO'; $lang['qso_btn_save_qso'] = 'Save QSO';
// QSO Details
$lang['qso_details'] = 'QSO Details';

查看文件

@ -3,10 +3,10 @@
<ul class="nav nav-tabs" id="myTab" role="tablist"> <ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" id="table-tab" data-toggle="tab" href="#qsodetails" role="tab" aria-controls="table" aria-selected="true">QSO Details</a> <a class="nav-link active" id="table-tab" data-toggle="tab" href="#qsodetails" role="tab" aria-controls="table" aria-selected="true"><?php echo $this->lang->line('qso_details'); ?></a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a id="station-tab" class="nav-link" data-toggle="tab" href="#stationdetails" role="tab" aria-controls="table" aria-selected="true">Station Details</a> <a id="station-tab" class="nav-link" data-toggle="tab" href="#stationdetails" role="tab" aria-controls="table" aria-selected="true"><?php echo $this->lang->line('cloudlog_station_profile'); ?></a>
</li> </li>
<?php <?php
if (($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { if (($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) {
@ -16,11 +16,11 @@
echo 'hidden '; echo 'hidden ';
} }
echo 'class="qslcardtab nav-item"> echo 'class="qslcardtab nav-item">
<a class="nav-link" id="qsltab" data-toggle="tab" href="#qslcard" role="tab" aria-controls="home" aria-selected="false">QSL Card</a> <a class="nav-link" id="qsltab" data-toggle="tab" href="#qslcard" role="tab" aria-controls="home" aria-selected="false">'. $this->lang->line('general_words_qslcard') .'</a>
</li>'; </li>';
echo '<li class="nav-item"> echo '<li class="nav-item">
<a class="nav-link" id="qslmanagementtab" data-toggle="tab" href="#qslupload" role="tab" aria-controls="home" aria-selected="false">QSL Card Management</a> <a class="nav-link" id="qslmanagementtab" data-toggle="tab" href="#qslupload" role="tab" aria-controls="home" aria-selected="false">'. $this->lang->line('general_words_qslcard_management') .'</a>
</li>'; </li>';
} }
@ -49,7 +49,7 @@
?> ?>
<td>Date/Time:</td> <td><?php echo $this->lang->line('general_word_datetime'); ?></td>
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?> <?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at ".date('H:i', $timestamp); ?></td> <td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at ".date('H:i', $timestamp); ?></td>
<?php } else { ?> <?php } else { ?>
@ -58,39 +58,39 @@
</tr> </tr>
<tr> <tr>
<td>Callsign:</td> <td><?php echo $this->lang->line('gen_hamradio_callsign'); ?></td>
<td><b><?php echo str_replace("0","&Oslash;",strtoupper($row->COL_CALL)); ?></b></td> <td><b><?php echo str_replace("0","&Oslash;",strtoupper($row->COL_CALL)); ?></b></td>
</tr> </tr>
<tr> <tr>
<td>Band:</td> <td><?php echo $this->lang->line('gen_hamradio_band'); ?></td>
<td><?php echo $row->COL_BAND; ?></td> <td><?php echo $row->COL_BAND; ?></td>
</tr> </tr>
<?php if($this->config->item('display_freq') == true) { ?> <?php if($this->config->item('display_freq') == true) { ?>
<tr> <tr>
<td>Freq:</td> <td><?php echo $this->lang->line('gen_hamradio_frequency'); ?></td>
<td><?php echo frequency_display_string($row->COL_FREQ); ?></td> <td><?php echo frequency_display_string($row->COL_FREQ); ?></td>
</tr> </tr>
<?php if($row->COL_FREQ_RX != 0) { ?> <?php if($row->COL_FREQ_RX != 0) { ?>
<tr> <tr>
<td>Freq (RX):</td> <td><?php echo $this->lang->line('gen_hamradio_frequency_rx'); ?></td>
<td><?php echo frequency_display_string($row->COL_FREQ_RX); ?></td> <td><?php echo frequency_display_string($row->COL_FREQ_RX); ?></td>
</tr> </tr>
<?php }} ?> <?php }} ?>
<tr> <tr>
<td>Mode:</td> <td><?php echo $this->lang->line('gen_hamradio_mode'); ?></td>
<td><?php echo $row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE; ?></td> <td><?php echo $row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE; ?></td>
</tr> </tr>
<tr> <tr>
<td>RST Sent:</td> <td><?php echo $this->lang->line('gen_hamradio_rsts'); ?></td>
<td><?php echo $row->COL_RST_SENT; ?> <?php if ($row->COL_STX) { ?>(<?php echo $row->COL_STX;?>)<?php } ?> <?php if ($row->COL_STX_STRING) { ?>(<?php echo $row->COL_STX_STRING;?>)<?php } ?></td> <td><?php echo $row->COL_RST_SENT; ?> <?php if ($row->COL_STX) { ?>(<?php echo $row->COL_STX;?>)<?php } ?> <?php if ($row->COL_STX_STRING) { ?>(<?php echo $row->COL_STX_STRING;?>)<?php } ?></td>
</tr> </tr>
<tr> <tr>
<td>RST Recv'd:</td> <td><?php echo $this->lang->line('gen_hamradio_rstr'); ?></td>
<td><?php echo $row->COL_RST_RCVD; ?> <?php if ($row->COL_SRX) { ?>(<?php echo $row->COL_SRX;?>)<?php } ?> <?php if ($row->COL_SRX_STRING) { ?>(<?php echo $row->COL_SRX_STRING;?>)<?php } ?></td> <td><?php echo $row->COL_RST_RCVD; ?> <?php if ($row->COL_SRX) { ?>(<?php echo $row->COL_SRX;?>)<?php } ?> <?php if ($row->COL_SRX_STRING) { ?>(<?php echo $row->COL_SRX_STRING;?>)<?php } ?></td>
</tr> </tr>
@ -104,7 +104,7 @@
<?php if($row->COL_GRIDSQUARE != null) { ?> <?php if($row->COL_GRIDSQUARE != null) { ?>
<!-- Total Distance Between the Station Profile Gridsquare and Logged Square --> <!-- Total Distance Between the Station Profile Gridsquare and Logged Square -->
<tr> <tr>
<td>Total Distance</td> <td><?php echo $this->lang->line('general_total_distance'); //Total distance ?></td>
<td> <td>
<?php <?php
// Load the QRA Library // Load the QRA Library
@ -153,7 +153,7 @@
<?php if($row->COL_NAME != null) { ?> <?php if($row->COL_NAME != null) { ?>
<tr> <tr>
<td>Name:</td> <td><?php echo $this->lang->line('general_word_name'); ?></td>
<td><?php echo $row->COL_NAME; ?></td> <td><?php echo $row->COL_NAME; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
@ -161,7 +161,7 @@
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?> <?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
<?php if($row->COL_COMMENT != null) { ?> <?php if($row->COL_COMMENT != null) { ?>
<tr> <tr>
<td>Comment:</td> <td><?php echo $this->lang->line('general_word_comment'); ?></td>
<td><?php echo $row->COL_COMMENT; ?></td> <td><?php echo $row->COL_COMMENT; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
@ -169,88 +169,88 @@
<?php if($row->COL_SAT_NAME != null) { ?> <?php if($row->COL_SAT_NAME != null) { ?>
<tr> <tr>
<td>Sat Name:</td> <td><?php echo $this->lang->line('gen_hamradio_satellite_name'); ?></td>
<td><?php echo $row->COL_SAT_NAME; ?></td> <td><?php echo $row->COL_SAT_NAME; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_SAT_MODE != null) { ?> <?php if($row->COL_SAT_MODE != null) { ?>
<tr> <tr>
<td>Sat Mode:</td> <td><?php echo $this->lang->line('gen_hamradio_satellite_mode'); ?></td>
<td><?php echo $row->COL_SAT_MODE; ?></td> <td><?php echo $row->COL_SAT_MODE; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_COUNTRY != null) { ?> <?php if($row->COL_COUNTRY != null) { ?>
<tr> <tr>
<td>Country:</td> <td><?php echo $this->lang->line('geneneral_word_country'); ?></td>
<td><?php echo ucwords(strtolower(($row->COL_COUNTRY))); ?></td> <td><?php echo ucwords(strtolower(($row->COL_COUNTRY))); ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_CONTEST_ID != null) { ?> <?php if($row->COL_CONTEST_ID != null) { ?>
<tr> <tr>
<td>Contest Name:</td> <td><?php echo $this->lang->line('contesting_contest_name'); ?></td>
<td><?php echo $row->COL_CONTEST_ID; ?></td> <td><?php echo $row->COL_CONTEST_ID; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_IOTA != null) { ?> <?php if($row->COL_IOTA != null) { ?>
<tr> <tr>
<td>IOTA Ref:</td> <td><?php echo $this->lang->line('gen_hamradio_iota_reference'); ?></td>
<td><?php echo $row->COL_IOTA; ?></td> <td><?php echo $row->COL_IOTA; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_SOTA_REF != null) { ?> <?php if($row->COL_SOTA_REF != null) { ?>
<tr> <tr>
<td>SOTA Ref:</td> <td><?php echo $this->lang->line('gen_hamradio_sota_reference'); ?></td>
<td><?php echo $row->COL_SOTA_REF; ?></td> <td><?php echo $row->COL_SOTA_REF; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_SIG != null) { ?> <?php if($row->COL_SIG != null) { ?>
<tr> <tr>
<td>Sig:</td> <td><?php echo $this->lang->line('gen_hamradio_sig'); ?></td>
<td><?php echo $row->COL_SIG; ?></td> <td><?php echo $row->COL_SIG; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_SIG_INFO != null) { ?> <?php if($row->COL_SIG_INFO != null) { ?>
<tr> <tr>
<td>Sig Info:</td> <td><?php echo $this->lang->line('gen_hamradio_sig_info'); ?></td>
<td><?php echo $row->COL_SIG_INFO; ?></td> <td><?php echo $row->COL_SIG_INFO; ?></td>
</tr> </tr>
<?php } ?> <?php } ?>
<?php if($row->COL_DARC_DOK != null) { ?> <?php if($row->COL_DARC_DOK != null) { ?>
<tr> <tr>
<td>DOK:</td> <td><?php echo $this->lang->line('gen_hamradio_dok'); ?></td>
<td><a href="https://www.darc.de/<?php echo $row->COL_DARC_DOK; ?>" target="_new"><?php echo $row->COL_DARC_DOK; ?></a></td> <td><a href="https://www.darc.de/<?php echo $row->COL_DARC_DOK; ?>" target="_new"><?php echo $row->COL_DARC_DOK; ?></a></td>
</tr> </tr>
<?php } ?> <?php } ?>
</table> </table>
<?php if($row->COL_QSL_SENT == "Y" || $row->COL_QSL_RCVD == "Y") { ?> <?php if($row->COL_QSL_SENT == "Y" || $row->COL_QSL_RCVD == "Y") { ?>
<h3>QSL Info:</h3> <h3><?php echo $this->lang->line('qslcard_info'); ?></h3>
<?php if($row->COL_QSL_SENT == "Y" && $row->COL_QSL_SENT_VIA == "B") { ?> <?php if($row->COL_QSL_SENT == "Y" && $row->COL_QSL_SENT_VIA == "B") { ?>
<p>QSL Card has been sent via the bureau</p> <p><?php echo $this->lang->line('qslcard_sent_bureau'); ?></p>
<?php } ?> <?php } ?>
<?php if($row->COL_QSL_SENT == "Y" && $row->COL_QSL_SENT_VIA == "D") { ?> <?php if($row->COL_QSL_SENT == "Y" && $row->COL_QSL_SENT_VIA == "D") { ?>
<p>QSL Card has been sent direct</p> <p><?php echo $this->lang->line('qslcard_sent_direct'); ?></p>
<?php } ?> <?php } ?>
<?php if($row->COL_QSL_RCVD == "Y" && $row->COL_QSL_RCVD_VIA == "B") { ?> <?php if($row->COL_QSL_RCVD == "Y" && $row->COL_QSL_RCVD_VIA == "B") { ?>
<p>QSL Card has been received via the bureau</p> <p><?php echo $this->lang->line('qslcard_recvd_bureau'); ?></p>
<?php } ?> <?php } ?>
<?php if($row->COL_QSL_RCVD == "Y" && $row->COL_QSL_RCVD_VIA == "D") { ?> <?php if($row->COL_QSL_RCVD == "Y" && $row->COL_QSL_RCVD_VIA == "D") { ?>
<p>QSL Card has been received direct</p> <p><?php echo $this->lang->line('qslcard_recvd_direct'); ?></p>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
<?php if($row->COL_LOTW_QSL_RCVD == "Y") { ?> <?php if($row->COL_LOTW_QSL_RCVD == "Y") { ?>
<h3>LoTW:</h3> <h3><?php echo $this->lang->line('lotw_short'); ?></h3>
<p>This QSO is confirmed on Lotw</p> <p><?php echo $this->lang->line('lotw_confirmed'); ?></p>
<?php } ?> <?php } ?>
</div> </div>
@ -358,18 +358,18 @@
<fieldset> <fieldset>
<div class="form-group"> <div class="form-group">
<label for="qslcardfront">Upload QSL Card front image</label> <label for="qslcardfront"><?php echo $this->lang->line('qslcard_upload_front'); ?></label>
<input class="form-control-file" type="file" id="qslcardfront" name="qslcardfront" accept="image/*" > <input class="form-control-file" type="file" id="qslcardfront" name="qslcardfront" accept="image/*" >
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="qslcardback">Upload QSL Card back image</label> <label for="qslcardback"><?php echo $this->lang->line('qslcard_upload_back'); ?></label>
<input class="form-control-file" type="file" id="qslcardback" name="qslcardback" accept="image/*"> <input class="form-control-file" type="file" id="qslcardback" name="qslcardback" accept="image/*">
</div> </div>
<input type="hidden" class="form-control" id="qsoinputid" name="qsoid" value="<?php echo $row->COL_PRIMARY_KEY; ?>"> <input type="hidden" class="form-control" id="qsoinputid" name="qsoid" value="<?php echo $row->COL_PRIMARY_KEY; ?>">
<button type="button" onclick="uploadQsl();" id="button1id" name="button1id" class="btn btn-primary">Upload QSL card image</button> <button type="button" onclick="uploadQsl();" id="button1id" name="button1id" class="btn btn-primary"><?php echo $this->lang->line('qslcard_upload_button'); ?></button>
</fieldset> </fieldset>
</form> </form>