From 56c77f3bd2a9dbe1af8f43a1cdf92362af46bf62 Mon Sep 17 00:00:00 2001 From: Leroy Diaz Date: Mon, 8 Feb 2021 21:18:36 +0000 Subject: [PATCH] Add support for translations to 'QSO Details' lightbox --- application/controllers/Logbook.php | 12 ++++ .../language/english/general_words_lang.php | 5 ++ application/language/english/lotw_lang.php | 5 +- application/language/english/qslcard_lang.php | 11 +++ application/language/english/qso_lang.php | 6 +- application/views/view_log/qso.php | 68 +++++++++---------- 6 files changed, 71 insertions(+), 36 deletions(-) diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index fc495f42..682197f3 100755 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -3,6 +3,18 @@ class Logbook extends CI_Controller { + function __construct() + { + parent::__construct(); + + // Load language files + $this->lang->load(array( + 'qslcard', + 'lotw', + 'qso' + )); + } + function index() { $this->load->model('user_model'); diff --git a/application/language/english/general_words_lang.php b/application/language/english/general_words_lang.php index 8bb2f0ec..a133d8a8 100644 --- a/application/language/english/general_words_lang.php +++ b/application/language/english/general_words_lang.php @@ -12,6 +12,7 @@ $lang['general_word_choose_file'] = 'Choose file'; $lang['general_word_date'] = 'Date'; $lang['general_word_time'] = 'Time'; +$lang['general_word_datetime'] = 'Date/Time'; $lang['general_word_none'] = 'None'; $lang['general_word_name'] = 'Name'; $lang['general_word_location'] = 'Location'; @@ -37,6 +38,8 @@ $lang['general_word_method'] = 'Method'; $lang['general_word_sent'] = 'Sent'; $lang['general_word_received'] = 'Received'; $lang['general_word_requested'] = 'Requested'; +$lang['general_word_qslcard'] = 'QSL Card'; +$lang['general_word_qslcard_management'] = 'QSL Management'; $lang['general_word_qslcards'] = 'QSL Cards'; $lang['general_word_qslcard_direct'] = 'Direct'; $lang['general_word_qslcard_bureau'] = 'Bureau'; @@ -48,6 +51,8 @@ $lang['general_mark_qsl_rx_direct'] = 'Mark QSL Received (Direct)'; $lang['general_delete_qso'] = 'Delete QSO'; +$lang['general_total_distance'] = 'Total Distance'; + // Cloudlog Terms $lang['cloudlog_station_profile'] = 'Station Profile'; diff --git a/application/language/english/lotw_lang.php b/application/language/english/lotw_lang.php index 3887f497..15599113 100644 --- a/application/language/english/lotw_lang.php +++ b/application/language/english/lotw_lang.php @@ -2,6 +2,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); +$lang['lotw_short'] = 'LoTW'; $lang['lotw_title'] = 'Logbook of the World'; $lang['lotw_title_available_cert'] = 'Available Certificates'; $lang['lotw_title_information'] = 'Information'; @@ -46,4 +47,6 @@ $lang['lotw_btn_import_matches'] = 'Import LoTW Matches'; $lang['lotw_p12_export_step_one'] = 'Open TQSL & go to the Callsign Certificates Tab'; $lang['lotw_p12_export_step_two'] = 'Right click on desired Callsign'; $lang['lotw_p12_export_step_three'] = 'Click "Save Callsign Certificate File" and do not add a password'; -$lang['lotw_p12_export_step_four'] = 'Upload File below.'; \ No newline at end of file +$lang['lotw_p12_export_step_four'] = 'Upload File below.'; + +$lang['lotw_confirmed'] = 'This QSO is confirmed on LoTW'; diff --git a/application/language/english/qslcard_lang.php b/application/language/english/qslcard_lang.php index 4fa98cd1..1ee4ad28 100644 --- a/application/language/english/qslcard_lang.php +++ b/application/language/english/qslcard_lang.php @@ -5,3 +5,14 @@ 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'; + +$lang['qslcard_info'] = 'QSL Info'; +$lang['qslcard_sent_bureau'] = 'QSL Card has been sent via the bureau'; +$lang['qslcard_sent_direct'] = 'QSL Card has been sent via direct'; +$lang['qslcard_recv_bureau'] = 'QSL Card has been received via the bureau'; +$lang['qslcard_recv_direct'] = 'QSL Card has been received via direct'; + +$lang['qslcard_upload_front'] = 'Uploaded QSL Card front image'; +$lang['qslcard_upload_back'] = 'Uploaded QSL Card back image'; + +$lang['qslcard_upload_button'] = 'Upload QSL Card image'; diff --git a/application/language/english/qso_lang.php b/application/language/english/qso_lang.php index fa9a044d..e8f0df1a 100644 --- a/application/language/english/qso_lang.php +++ b/application/language/english/qso_lang.php @@ -22,4 +22,8 @@ $lang['qso_notes_helptext'] = 'Note content is used within Cloudlog only and is // Button Text on /qso Display $lang['qso_btn_reset_qso'] = 'Reset'; -$lang['qso_btn_save_qso'] = 'Save QSO'; \ No newline at end of file +$lang['qso_btn_save_qso'] = 'Save QSO'; + +// QSO Details + +$lang['qso_details'] = 'QSO Details'; diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index 16d323b1..98d71702 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -3,10 +3,10 @@