Multilanguage Support

pull/2656/head
HB9HIL 2023-11-05 17:46:30 +01:00
rodzic ffffa6fc3f
commit 7c0b4486a5
3 zmienionych plików z 19 dodań i 19 usunięć

Wyświetl plik

@ -44,12 +44,12 @@
<br>
<h2><?php echo $page_title; ?></h2>
<h2><?php echo lang('gridsquares_activated_gridsquare_map'); ?></h2>
<form class="form-inline">
<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>
<option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($bands as $band) {
echo '<option value="'.$band.'"';
if ($user_default_band == $band) {
@ -61,7 +61,7 @@
<?php if (count($sats_available) != 0) { ?>
<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 } ?>>
<option value="All">All</option>
<option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($sats_available as $sat) {
echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n";
} ?>
@ -71,7 +71,7 @@
<?php } ?>
<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>
<option value="All"><?php echo lang('general_word_all')?></option>
<?php
foreach($modes as $mode){
if ($mode->submode ?? '' == '') {
@ -109,7 +109,7 @@
</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="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>
<?php if($this->session->flashdata('message')) { ?>

Wyświetl plik

@ -1,13 +1,13 @@
<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">
<!-- Select Basic -->
<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">
<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) {
echo '<option value="' . $band . '"';
if ($this->input->post('band') == $band) echo ' selected';
@ -27,7 +27,7 @@
</div>
</div>
<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">
<select id="mincount" name="mincount" class="form-control custom-select">
<?php
@ -47,7 +47,7 @@
<div class="form-group row">
<label class="col-md-1 control-label" for="button1id"></label>
<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>
@ -98,11 +98,11 @@ function write_activators($activators_array, $vucc_grids, $custom_date_format, $
<thead>
<tr>
<td>#</td>
<td>Callsign</td>
<td>Count</td>
<td>Gridsquares</td>
<td>Show QSOs</td>
<td>Show Map</td>
<td>' . lang('gen_hamradio_callsign') . '</td>
<td>' . lang('general_word_count') . '</td>
<td>' . lang('gridsquares_gridsquares') . '</td>
<td>' . lang('gridsquares_show_qsos') . '</td>
<td>' . lang('gridsquares_show_map') . '</td>
</tr>
</thead>
<tbody>';

Wyświetl plik

@ -49,7 +49,7 @@
<form class="form-inline">
<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>
<option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($bands as $band) {
echo '<option value="'.$band.'"';
if ($user_default_band == $band) {
@ -61,7 +61,7 @@
<?php if (count($sats_available) != 0) { ?>
<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 } ?>>
<option value="All">All</option>
<option value="All"><?php echo lang('general_word_all')?></option>
<?php foreach($sats_available as $sat) {
echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n";
} ?>
@ -71,7 +71,7 @@
<?php } ?>
<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>
<option value="All"><?php echo lang('general_word_all')?></option>
<?php
foreach($modes as $mode){
if ($mode->submode ?? '' == '') {
@ -109,7 +109,7 @@
</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="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>
<?php if($this->session->flashdata('message')) { ?>