Started building an english language file for Cloudlog so far dashboard has been done.

This commit is contained in:
Peter Goodhall
2020-09-28 19:16:22 +01:00
parent 7d13b480f1
commit 72da0645a1
3 changed files with 62 additions and 23 deletions

View File

@@ -96,7 +96,7 @@ $autoload['config'] = array('cloudlog', 'bands', 'lotw');
|
*/
$autoload['language'] = array();
$autoload['language'] = array('general_words');
/*

View File

@@ -0,0 +1,39 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['error_no_active_station_profile'] = 'Attention you need to set an active station profile.';
$lang['notice_turn_the_radio_on'] = 'You have made no QSOs today, time to turn on the radio!';
$lang['general_word_important'] = 'Important';
$lang['general_word_date'] = 'Date';
$lang['general_word_time'] = 'Time';
$lang['general_word_total'] = 'Total';
$lang['general_word_year'] = 'Year';
$lang['general_word_month'] = 'Month';
$lang['general_word_worked'] = 'Worked';
$lang['general_word_confirmed'] = 'Confirmed';
$lang['general_word_needed'] = 'Needed';
$lang['general_word_sent'] = 'Sent';
$lang['general_word_received'] = 'Received';
$lang['general_word_requested'] = 'Requested';
$lang['general_word_qslcards'] = 'QSL Cards';
// ham radio terms
$lang['gen_hamradio_call'] = 'Call';
$lang['gen_hamradio_callsign'] = 'Callsign';
$lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_rst_sent'] = 'Sent';
$lang['gen_hamradio_rst_recv'] = 'Recv';
$lang['gen_hamradio_band'] = 'Band';
// Dashboard Words
$lang['dashboard_you_have_had'] = 'You have had';
$lang['dashboard_qsos_today'] = 'QSOs Today!';
$lang['dashboard_qso_breakdown'] = 'QSOs Breakdown';
$lang['dashboard_countries_breakdown'] = 'Countries Breakdown';

View File

@@ -3,17 +3,17 @@
<?php if($todays_qsos >= 1) { ?>
<div class="alert alert-success" role="alert">
You have had <strong><?php echo $todays_qsos; ?></strong> QSOs Today!
<?php echo $this->lang->line('dashboard_you_have_had'); ?> <strong><?php echo $todays_qsos; ?></strong> <?php echo $this->lang->line('dashboard_qsos_today'); ?>
</div>
<?php } else { ?>
<div class="alert alert-danger" role="alert">
<span class="badge badge-info">Important</span> <i class="fas fa-broadcast-tower"></i> You have made no QSOs today, time to turn on the radio!
<span class="badge badge-info"><?php echo $this->lang->line('general_word_important'); ?></span> <i class="fas fa-broadcast-tower"></i> <?php echo $this->lang->line('notice_turn_the_radio_on'); ?>
</div>
<?php } ?>
<?php if($current_active == 0) { ?>
<div class="alert alert-danger" role="alert">
Attention you need to set an active station profile.
<?php echo $this->lang->line('error_no_active_station_profile'); ?>
</div>
<?php } ?>
@@ -34,16 +34,16 @@
<thead>
<tr class="titles">
<th>Date</th>
<th><?php echo $this->lang->line('general_word_date'); ?></th>
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
<th>Time</th>
<th><?php echo $this->lang->line('general_word_time'); ?></th>
<?php } ?>
<th>Call</th>
<th>Mode</th>
<th class="d-none d-sm-table-cell">Sent</th>
<th class="d-none d-sm-table-cell">Recv</th>
<th>Band</th>
<th><?php echo $this->lang->line('gen_hamradio_call'); ?></th>
<th><?php echo $this->lang->line('gen_hamradio_mode'); ?></th>
<th class="d-none d-sm-table-cell"><?php echo $this->lang->line('gen_hamradio_rst_sent'); ?></th>
<th class="d-none d-sm-table-cell"><?php echo $this->lang->line('gen_hamradio_rst_recv'); ?></th>
<th><?php echo $this->lang->line('gen_hamradio_band'); ?></th>
</tr>
</thead>
@@ -91,21 +91,21 @@
<div class="table-responsive">
<table class="table table-striped">
<tr class="titles">
<td colspan="2"><i class="fas fa-chart-bar"></i> QSOs Breakdown</td>
<td colspan="2"><i class="fas fa-chart-bar"></i> <?php echo $this->lang->line('dashboard_qso_breakdown'); ?></td>
</tr>
<tr>
<td>Total </td>
<td><?php echo $this->lang->line('general_word_total'); ?></td>
<td><?php echo $total_qsos; ?></td>
</tr>
<tr>
<td>Year</td>
<td><?php echo $this->lang->line('general_word_year'); ?></td>
<td><?php echo $year_qsos; ?></td>
</tr>
<tr>
<td>Month</td>
<td><?php echo $this->lang->line('general_word_month'); ?></td>
<td><?php echo $month_qsos; ?></td>
</tr>
</table>
@@ -114,15 +114,15 @@
<table class="table table-striped">
<tr class="titles">
<td colspan="2"><i class="fas fa-globe-europe"></i> Countries Breakdown</td>
<td colspan="2"><i class="fas fa-globe-europe"></i> <?php echo $this->lang->line('dashboard_countries_breakdown'); ?></td>
</tr>
<tr>
<td>Worked</td>
<td><?php echo $this->lang->line('general_word_worked'); ?></td>
<td><?php echo $total_countrys; ?></td>
</tr>
<tr>
<td><a href="#" onclick="return false" data-original-title="QSL Cards / eQSL / LoTW" data-toggle="tooltip">Confirmed</a></td>
<td><a href="#" onclick="return false" data-original-title="QSL Cards / eQSL / LoTW" data-toggle="tooltip"><?php echo $this->lang->line('general_word_confirmed'); ?></a></td>
<td>
<?php echo $total_countrys_confirmed_paper; ?> /
<?php echo $total_countrys_confirmed_eqsl; ?> /
@@ -131,7 +131,7 @@
</tr>
<tr>
<td>Needed</td>
<td><?php echo $this->lang->line('general_word_needed'); ?></td>
<td><?php $dxcc = 340 - $total_countrys; echo $dxcc; ?></td>
</tr>
</table>
@@ -139,21 +139,21 @@
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
<table class="table table-striped">
<tr class="titles">
<td colspan="2"><i class="fas fa-envelope"></i> QSL Cards</td>
<td colspan="2"><i class="fas fa-envelope"></i> <?php echo $this->lang->line('general_word_qslcards'); ?></td>
</tr>
<tr>
<td>Sent</td>
<td><?php echo $this->lang->line('general_word_sent'); ?></td>
<td><?php echo $total_qsl_sent; ?></td>
</tr>
<tr>
<td>Received</td>
<td><?php echo $this->lang->line('general_word_received'); ?></td>
<td><?php echo $total_qsl_recv; ?></td>
</tr>
<tr>
<td>Requested</td>
<td><?php echo $this->lang->line('general_word_requested'); ?></td>
<td><?php echo $total_qsl_requested; ?></td>
</tr>
</table>