[Gridmap] Finished translating text
这个提交包含在:
父节点
9074cceec4
当前提交
bf5ee68596
共有 5 个文件被更改,包括 37 次插入 和 12 次删除
|
|
@ -106,6 +106,7 @@ $autoload['language'] = array(
|
|||
'notes',
|
||||
'qslcard',
|
||||
'qso',
|
||||
'gridsquares'
|
||||
);
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ class Gridmap extends CI_Controller {
|
|||
}
|
||||
|
||||
public function index() {
|
||||
$data['page_title'] = "Gridsquare Map";
|
||||
$data['page_title'] = lang('gridsquares_gridsquare_map');
|
||||
|
||||
$this->load->model('bands');
|
||||
$this->load->model('gridmap_model');
|
||||
|
|
@ -20,6 +20,11 @@ class Gridmap extends CI_Controller {
|
|||
|
||||
$data['attribution'] = $this->optionslib->get_option('option_map_tile_server_copyright');
|
||||
|
||||
$data['gridsquares_gridsquares'] = lang('gridsquares_gridsquares');
|
||||
$data['gridsquares_gridsquares_confirmed'] = lang('gridsquares_gridsquares_confirmed');
|
||||
$data['gridsquares_gridsquares_not_confirmed'] = lang('gridsquares_gridsquares_not_confirmed');
|
||||
$data['gridsquares_gridsquares_total_worked'] = lang('gridsquares_gridsquares_total_worked');
|
||||
|
||||
$footerData = [];
|
||||
$footerData['scripts'] = [
|
||||
'assets/js/leaflet/L.MaidenheadColouredGridMap.js',
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
|
||||
|
||||
$lang['gridsquares_gridsquare_map'] = 'Gridsquare map';
|
||||
|
||||
$lang['gridsquares_confirmed_is_green'] = 'Confirmed is Green';
|
||||
|
|
@ -14,3 +12,15 @@ $lang['gridsquares_this_map_does_not_include_satellite_internet_or_repeater_qsos
|
|||
|
||||
$lang['gridsquares_grid_squares'] = 'grid square';
|
||||
$lang['gridsquares_total_count'] = 'Total count';
|
||||
|
||||
$lang['gridsquares_band'] = 'Band';
|
||||
$lang['gridsquares_mode'] = 'Mode';
|
||||
$lang['gridsquares_sat'] = 'Satellite';
|
||||
$lang['gridsquares_confirmation'] = 'Confirmation';
|
||||
|
||||
$lang['gridsquares_button_plot'] = 'Plot';
|
||||
|
||||
$lang['gridsquares_gridsquares'] = 'Gridsquares';
|
||||
$lang['gridsquares_gridsquares_confirmed'] = 'Gridsquares confirmed';
|
||||
$lang['gridsquares_gridsquares_not_confirmed'] = 'Gridsquares not confirmed';
|
||||
$lang['gridsquares_gridsquares_total_worked'] = 'Total gridsquares worked';
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
<h2><?php echo $page_title; ?></h2>
|
||||
|
||||
<form class="form-inline">
|
||||
<label class="my-1 mr-2" for="band"><?php echo lang('gen_band_selection'); ?></label>
|
||||
<label class="my-1 mr-2" for="band"><?php echo lang('gridsquares_band'); ?></label>
|
||||
<select class="custom-select my-1 mr-sm-2" id="band">
|
||||
<option value="All">All</option>
|
||||
<?php foreach($bands as $band) {
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
} ?>
|
||||
</select>
|
||||
<?php if (count($sats_available) != 0) { ?>
|
||||
<label class="my-1 mr-2" for="distplot_sats"><?php echo lang('general_word_satellite'); ?></label>
|
||||
<label class="my-1 mr-2" for="distplot_sats"><?php echo lang('gridsquares_sat'); ?></label>
|
||||
<select class="custom-select my-1 mr-sm-2" id="sats" disabled>
|
||||
<option value="All">All</option>
|
||||
<?php foreach($sats_available as $sat) {
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
<?php } else { ?>
|
||||
<input id="sats" type="hidden" value="All"></input>
|
||||
<?php } ?>
|
||||
<label class="my-1 mr-2" for="mode"><?php echo lang('gen_hamradio_mode'); ?></label>
|
||||
<label class="my-1 mr-2" for="mode"><?php echo lang('gridsquares_mode'); ?></label>
|
||||
<select class="custom-select my-1 mr-sm-2" id="mode">
|
||||
<option value="All">All</option>
|
||||
<?php
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
}
|
||||
?>
|
||||
</select>
|
||||
<label class="my-1 mr-2">Confirmation</label>
|
||||
<label class="my-1 mr-2"><?php echo lang('gridsquares_confirmation'); ?></label>
|
||||
<div>
|
||||
<div class="form-check-inline">
|
||||
<input class="form-check-input" type="checkbox" name="qsl" id="qsl" checked>
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<button id="plot" type="button" name="plot" class="btn btn-primary ld-ext-right" onclick="gridPlot(this.form)">Plot<div class="ld ld-ring ld-spin"></div></button>
|
||||
<button id="plot" type="button" name="plot" class="btn btn-primary ld-ext-right" onclick="gridPlot(this.form)"><?php echo lang('gridsquares_button_plot'); ?><div class="ld ld-ring ld-spin"></div></button>
|
||||
</form>
|
||||
|
||||
<?php if($this->session->flashdata('message')) { ?>
|
||||
|
|
@ -98,5 +98,10 @@
|
|||
<?php
|
||||
echo 'var jslayer ="' . $layer .'";';
|
||||
echo "var jsattribution ='" . $attribution . "';";
|
||||
|
||||
echo 'var gridsquares_gridsquares = "' . $gridsquares_gridsquares . '";';
|
||||
echo 'var gridsquares_gridsquares_confirmed = "' . $gridsquares_gridsquares_confirmed . '";';
|
||||
echo 'var gridsquares_gridsquares_not_confirmed = "' . $gridsquares_gridsquares_not_confirmed . '";';
|
||||
echo 'var gridsquares_gridsquares_total_worked = "' . $gridsquares_gridsquares_total_worked . '";';
|
||||
?>
|
||||
</script>
|
||||
|
|
@ -79,10 +79,10 @@ function gridPlot(form) {
|
|||
|
||||
legend.onAdd = function(map) {
|
||||
var div = L.DomUtil.create("div", "legend");
|
||||
div.innerHTML += "<h4>Gridsquares</h4>";
|
||||
div.innerHTML += '<i style="background: green"></i><span>Gridsquares confirmed ('+grid_four_confirmed.length+')</span><br>';
|
||||
div.innerHTML += '<i style="background: red"></i><span>Gridsquares not confirmed ('+(grid_four.length - grid_four_confirmed.length)+')</span><br>';
|
||||
div.innerHTML += '<i></i><span>Total gridsquares worked ('+grid_four.length+')</span><br>';
|
||||
div.innerHTML += "<h4>" + gridsquares_gridsquares + "</h4>";
|
||||
div.innerHTML += '<i style="background: green"></i><span>' + gridsquares_gridsquares_confirmed + ' ('+grid_four_confirmed.length+')</span><br>';
|
||||
div.innerHTML += '<i style="background: red"></i><span>' + gridsquares_gridsquares_not_confirmed + ' ('+(grid_four.length - grid_four_confirmed.length)+')</span><br>';
|
||||
div.innerHTML += '<i></i><span>' + gridsquares_gridsquares_total_worked + ' ('+grid_four.length+')</span><br>';
|
||||
return div;
|
||||
};
|
||||
|
||||
|
|
@ -128,6 +128,10 @@ function spawnGridsquareModal(loc_4char) {
|
|||
'csv'
|
||||
]
|
||||
});
|
||||
// change color of csv-button if dark mode is chosen
|
||||
if (isDarkModeTheme()) {
|
||||
$(".buttons-csv").css("color", "white");
|
||||
}
|
||||
},
|
||||
buttons: [{
|
||||
label: 'Close',
|
||||
|
|
|
|||
正在加载…
在新工单中引用