Multilanguage Support

这个提交包含在:
HB9HIL 2023-11-05 17:46:30 +01:00
父节点 ffffa6fc3f
当前提交 7c0b4486a5
共有 3 个文件被更改,包括 19 次插入19 次删除

查看文件

@ -44,12 +44,12 @@
<br> <br>
<h2><?php echo $page_title; ?></h2> <h2><?php echo lang('gridsquares_activated_gridsquare_map'); ?></h2>
<form class="form-inline"> <form class="form-inline">
<label class="my-1 mr-2" for="band"><?php echo lang('gridsquares_band'); ?></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"> <select class="custom-select my-1 mr-sm-2" id="band">
<option value="All">All</option> <option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($bands as $band) { <?php foreach($bands as $band) {
echo '<option value="'.$band.'"'; echo '<option value="'.$band.'"';
if ($user_default_band == $band) { if ($user_default_band == $band) {
@ -61,7 +61,7 @@
<?php if (count($sats_available) != 0) { ?> <?php if (count($sats_available) != 0) { ?>
<label class="my-1 mr-2" for="distplot_sats"><?php echo lang('gridsquares_sat'); ?></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" <?php if ($user_default_band != "SAT") { ?>disabled<?php } ?>> <select class="custom-select my-1 mr-sm-2" id="sats" <?php if ($user_default_band != "SAT") { ?>disabled<?php } ?>>
<option value="All">All</option> <option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($sats_available as $sat) { <?php foreach($sats_available as $sat) {
echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n"; echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n";
} ?> } ?>
@ -71,7 +71,7 @@
<?php } ?> <?php } ?>
<label class="my-1 mr-2" for="mode"><?php echo lang('gridsquares_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"> <select class="custom-select my-1 mr-sm-2" id="mode">
<option value="All">All</option> <option value="All"><?php echo lang('general_word_all')?></option>
<?php <?php
foreach($modes as $mode){ foreach($modes as $mode){
if ($mode->submode ?? '' == '') { if ($mode->submode ?? '' == '') {
@ -109,7 +109,7 @@
</div> </div>
<button id="plot" type="button" name="plot" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-plot" onclick="gridPlot(this.form)"><?php echo lang('gridsquares_button_plot'); ?><div class="ld ld-ring ld-spin"></div></button> <button id="plot" type="button" name="plot" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-plot" onclick="gridPlot(this.form)"><?php echo lang('gridsquares_button_plot'); ?><div class="ld ld-ring ld-spin"></div></button>
<button id="clear" type="button" name="clear" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-clear" onclick="clearMarkers()">Clear markers<div class="ld ld-ring ld-spin"></div></button> <button id="clear" type="button" name="clear" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-clear" onclick="clearMarkers()"><?php echo lang('gridsquares_button_clear_markers'); ?><div class="ld ld-ring ld-spin"></div></button>
</form> </form>
<?php if($this->session->flashdata('message')) { ?> <?php if($this->session->flashdata('message')) { ?>

查看文件

@ -1,13 +1,13 @@
<div class="container"> <div class="container">
<h1><?php echo $page_title; ?></h1> <h1><?php echo lang('gridsquares_gridsquare_activators'); ?></h1>
<form class="form" action="<?php echo site_url('activators'); ?>" method="post" enctype="multipart/form-data"> <form class="form" action="<?php echo site_url('activators'); ?>" method="post" enctype="multipart/form-data">
<!-- Select Basic --> <!-- Select Basic -->
<div class="form-group row"> <div class="form-group row">
<label class="col-md-1 control-label" for="band">Band</label> <label class="col-md-1 control-label" for="band"><?php echo lang('gen_hamradio_band'); ?></label>
<div class="col-md-3"> <div class="col-md-3">
<select id="band" name="band" class="form-control custom-select"> <select id="band" name="band" class="form-control custom-select">
<option value="All" <?php if ($this->input->post('band') == "All" || $this->input->method() !== 'post') echo ' selected'; ?> >All</option> <option value="All" <?php if ($this->input->post('band') == "All" || $this->input->method() !== 'post') echo ' selected'; ?> ><?php echo lang('general_word_all'); ?></option>
<?php foreach($worked_bands as $band) { <?php foreach($worked_bands as $band) {
echo '<option value="' . $band . '"'; echo '<option value="' . $band . '"';
if ($this->input->post('band') == $band) echo ' selected'; if ($this->input->post('band') == $band) echo ' selected';
@ -27,7 +27,7 @@
</div> </div>
</div> </div>
<div class="form-group row"> <div class="form-group row">
<label class="col-md-1 control-label" for="mincount">Minimum Count</label> <label class="col-md-1 control-label" for="mincount"><?php echo lang('gridsquares_minimum_count'); ?></label>
<div class="col-md-3"> <div class="col-md-3">
<select id="mincount" name="mincount" class="form-control custom-select"> <select id="mincount" name="mincount" class="form-control custom-select">
<?php <?php
@ -47,7 +47,7 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-md-1 control-label" for="button1id"></label> <label class="col-md-1 control-label" for="button1id"></label>
<div class="col-md-10"> <div class="col-md-10">
<button id="button1id" type="submit" name="button1id" class="btn btn-primary">Show</button> <button id="button1id" type="submit" name="button1id" class="btn btn-primary"><?php echo lang('filter_options_show'); ?></button>
</div> </div>
</div> </div>
@ -98,11 +98,11 @@ function write_activators($activators_array, $vucc_grids, $custom_date_format, $
<thead> <thead>
<tr> <tr>
<td>#</td> <td>#</td>
<td>Callsign</td> <td>' . lang('gen_hamradio_callsign') . '</td>
<td>Count</td> <td>' . lang('general_word_count') . '</td>
<td>Gridsquares</td> <td>' . lang('gridsquares_gridsquares') . '</td>
<td>Show QSOs</td> <td>' . lang('gridsquares_show_qsos') . '</td>
<td>Show Map</td> <td>' . lang('gridsquares_show_map') . '</td>
</tr> </tr>
</thead> </thead>
<tbody>'; <tbody>';

查看文件

@ -49,7 +49,7 @@
<form class="form-inline"> <form class="form-inline">
<label class="my-1 mr-2" for="band"><?php echo lang('gridsquares_band'); ?></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"> <select class="custom-select my-1 mr-sm-2" id="band">
<option value="All">All</option> <option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($bands as $band) { <?php foreach($bands as $band) {
echo '<option value="'.$band.'"'; echo '<option value="'.$band.'"';
if ($user_default_band == $band) { if ($user_default_band == $band) {
@ -61,7 +61,7 @@
<?php if (count($sats_available) != 0) { ?> <?php if (count($sats_available) != 0) { ?>
<label class="my-1 mr-2" for="distplot_sats"><?php echo lang('gridsquares_sat'); ?></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" <?php if ($user_default_band != "SAT") { ?>disabled<?php } ?>> <select class="custom-select my-1 mr-sm-2" id="sats" <?php if ($user_default_band != "SAT") { ?>disabled<?php } ?>>
<option value="All">All</option> <option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($sats_available as $sat) { <?php foreach($sats_available as $sat) {
echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n"; echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n";
} ?> } ?>
@ -71,7 +71,7 @@
<?php } ?> <?php } ?>
<label class="my-1 mr-2" for="mode"><?php echo lang('gridsquares_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"> <select class="custom-select my-1 mr-sm-2" id="mode">
<option value="All">All</option> <option value="All"><?php echo lang('general_word_all')?></option>
<?php <?php
foreach($modes as $mode){ foreach($modes as $mode){
if ($mode->submode ?? '' == '') { if ($mode->submode ?? '' == '') {
@ -109,7 +109,7 @@
</div> </div>
<button id="plot" type="button" name="plot" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-plot" onclick="gridPlot(this.form)"><?php echo lang('gridsquares_button_plot'); ?><div class="ld ld-ring ld-spin"></div></button> <button id="plot" type="button" name="plot" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-plot" onclick="gridPlot(this.form)"><?php echo lang('gridsquares_button_plot'); ?><div class="ld ld-ring ld-spin"></div></button>
<button id="clear" type="button" name="clear" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-clear" onclick="clearMarkers()">Clear markers<div class="ld ld-ring ld-spin"></div></button> <button id="clear" type="button" name="clear" class="btn btn-primary mr-1 ld-ext-right ld-ext-right-clear" onclick="clearMarkers()"><?php echo lang('gridsquares_button_clear_markers'); ?><div class="ld ld-ring ld-spin"></div></button>
</form> </form>
<?php if($this->session->flashdata('message')) { ?> <?php if($this->session->flashdata('message')) { ?>