[QSL Card Image][Translated] Translated /qsl ready for international support.

This commit is contained in:
Peter Goodhall
2021-01-05 17:06:39 +00:00
parent 885a382a9f
commit 7b5bde7eac
3 changed files with 12 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ class Qsl extends CI_Controller {
function __construct() {
parent::__construct();
$this->lang->load('qslcard');
$this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
}

View File

@@ -0,0 +1,7 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
// Tiles
$lang['qslcard_string_your_are_using'] = 'You are using';
$lang['qslcard_string_disk_space'] = 'of disk space to store QSL Card assets';

View File

@@ -2,10 +2,10 @@
<br>
<h2><?php echo $page_title; ?></h2>
<h2><?php echo $this->lang->line('general_word_qslcards'); ?></h2>
<div class="alert alert-info" role="alert">
You are using <?php echo $storage_used; ?> of disk space to store QSL Card assets.
<?php echo $this->lang->line('qslcard_string_your_are_using'); ?> <?php echo $storage_used; ?> <?php echo $this->lang->line('qslcard_string_disk_space'); ?>
</div>
<?php
@@ -13,8 +13,8 @@
echo '<table style="width:100%" class="qsltable table table-sm table-bordered table-hover table-striped table-condensed">
<thead>
<tr>
<th style=\'text-align: center\'>Callsign</th>
<th style=\'text-align: center\'>QSL</th>
<th style=\'text-align: center\'>'.$this->lang->line('gen_hamradio_callsign').'</th>
<th style=\'text-align: center\'>'.$this->lang->line('gen_hamradio_qsl').'</th>
<th style=\'text-align: center\'></th>
<th style=\'text-align: center\'></th>
</tr>