From 082f2a451825d90d2d835b311ad38a134919ee1b Mon Sep 17 00:00:00 2001 From: Hakan Koseoglu at jupiter Date: Fri, 14 Oct 2022 22:50:37 +0000 Subject: [PATCH 1/4] V2.0 language translations for Turkish --- application/language/turkish/eqsl_lang.php | 5 +++++ .../language/turkish/general_words_lang.php | 14 +++++++++++++- application/language/turkish/lotw_lang.php | 6 ++++-- application/language/turkish/qso_lang.php | 6 +++++- system/language/turkish/form_validation_lang.php | 2 ++ system/language/turkish/imglib_lang.php | 7 ++++--- 6 files changed, 33 insertions(+), 7 deletions(-) create mode 100755 application/language/turkish/eqsl_lang.php diff --git a/application/language/turkish/eqsl_lang.php b/application/language/turkish/eqsl_lang.php new file mode 100755 index 00000000..11ca6345 --- /dev/null +++ b/application/language/turkish/eqsl_lang.php @@ -0,0 +1,5 @@ + Date: Sat, 15 Oct 2022 14:12:35 +0200 Subject: [PATCH 2/4] Add files via upload --- system/language/swedish/calendar_lang.php | 84 +++++++++++++++++ system/language/swedish/date_lang.php | 94 +++++++++++++++++++ system/language/swedish/db_lang.php | 63 +++++++++++++ system/language/swedish/email_lang.php | 58 ++++++++++++ .../language/swedish/form_validation_lang.php | 70 ++++++++++++++ system/language/swedish/ftp_lang.php | 51 ++++++++++ system/language/swedish/imglib_lang.php | 58 ++++++++++++ system/language/swedish/index.html | 11 +++ system/language/swedish/migration_lang.php | 47 ++++++++++ system/language/swedish/number_lang.php | 44 +++++++++ system/language/swedish/pagination_lang.php | 43 +++++++++ system/language/swedish/profiler_lang.php | 60 ++++++++++++ system/language/swedish/unit_test_lang.php | 58 ++++++++++++ system/language/swedish/upload_lang.php | 55 +++++++++++ 14 files changed, 796 insertions(+) create mode 100644 system/language/swedish/calendar_lang.php create mode 100644 system/language/swedish/date_lang.php create mode 100644 system/language/swedish/db_lang.php create mode 100644 system/language/swedish/email_lang.php create mode 100644 system/language/swedish/form_validation_lang.php create mode 100644 system/language/swedish/ftp_lang.php create mode 100644 system/language/swedish/imglib_lang.php create mode 100644 system/language/swedish/index.html create mode 100644 system/language/swedish/migration_lang.php create mode 100644 system/language/swedish/number_lang.php create mode 100644 system/language/swedish/pagination_lang.php create mode 100644 system/language/swedish/profiler_lang.php create mode 100644 system/language/swedish/unit_test_lang.php create mode 100644 system/language/swedish/upload_lang.php diff --git a/system/language/swedish/calendar_lang.php b/system/language/swedish/calendar_lang.php new file mode 100644 index 00000000..8d119399 --- /dev/null +++ b/system/language/swedish/calendar_lang.php @@ -0,0 +1,84 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/system/language/swedish/migration_lang.php b/system/language/swedish/migration_lang.php new file mode 100644 index 00000000..9ca38933 --- /dev/null +++ b/system/language/swedish/migration_lang.php @@ -0,0 +1,47 @@ + Date: Sat, 15 Oct 2022 14:13:16 +0200 Subject: [PATCH 3/4] Add files via upload --- application/language/swedish/account_lang.php | 10 ++ .../language/swedish/contesting_lang.php | 18 +++ application/language/swedish/eqsl_lang.php | 5 + .../language/swedish/general_words_lang.php | 125 ++++++++++++++++++ application/language/swedish/index.html | 10 ++ application/language/swedish/lotw_lang.php | 54 ++++++++ application/language/swedish/notes_lang.php | 23 ++++ application/language/swedish/qslcard_lang.php | 18 +++ application/language/swedish/qso_lang.php | 34 +++++ 9 files changed, 297 insertions(+) create mode 100644 application/language/swedish/account_lang.php create mode 100644 application/language/swedish/contesting_lang.php create mode 100644 application/language/swedish/eqsl_lang.php create mode 100644 application/language/swedish/general_words_lang.php create mode 100644 application/language/swedish/index.html create mode 100644 application/language/swedish/lotw_lang.php create mode 100644 application/language/swedish/notes_lang.php create mode 100644 application/language/swedish/qslcard_lang.php create mode 100644 application/language/swedish/qso_lang.php diff --git a/application/language/swedish/account_lang.php b/application/language/swedish/account_lang.php new file mode 100644 index 00000000..ded409e0 --- /dev/null +++ b/application/language/swedish/account_lang.php @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/application/language/swedish/lotw_lang.php b/application/language/swedish/lotw_lang.php new file mode 100644 index 00000000..3e066ec8 --- /dev/null +++ b/application/language/swedish/lotw_lang.php @@ -0,0 +1,54 @@ +Download Report area, för att markera QSOs som bekräftade på LOTW.'; +$lang['lotw_upload_type_must_be_adi'] = 'Loggfil måste vara av format .adi'; + +$lang['lotw_pull_lotw_data_for_me'] = 'Hämta LoTW data'; +$lang['lotw_import_missing_qsos_text'] = 'Importera saknade QSOs till loggen. Signal och lokator kommer att kontrolleras för att försöka hitta rätt profil att importera QSOt till. Om inget QSO hittas kommer det att ignoreras.'; + +$lang['lotw_report_download_overview_helptext'] = 'Cloudlog använder LoTW användarnamn och lösenord som är sparat i din användarprofil för att ladda ner repport från LoTW. Rapporten Cloudlog kommer att ladda ner kommer att ha alla bekräftelser sedan valt datum, eller sedan din senaste LoTW-bekräftelse (hämtad från din logg), fram till nu.'; + +// Buttons +$lang['lotw_btn_lotw_import'] = 'LoTW import'; +$lang['lotw_btn_upload_certificate'] = 'Ladda upp certifikat'; +$lang['lotw_btn_delete'] = 'Radera'; +$lang['lotw_btn_manual_sync'] = 'Manuell synk'; +$lang['lotw_btn_upload_file'] = 'Ladda upp fil'; +$lang['lotw_btn_import_matches'] = 'Importera LoTW Matches'; + +// P12 Export Text +$lang['lotw_p12_export_step_one'] = 'Öppna TQSL & gå till Callsign Certificates tabben'; +$lang['lotw_p12_export_step_two'] = 'Högerklicka på önskad signal'; +$lang['lotw_p12_export_step_three'] = 'Klicka "Save Callsign Certificate File" men ange inget lösenord'; +$lang['lotw_p12_export_step_four'] = 'Ladda upp filen nedan.'; + +$lang['lotw_confirmed'] = 'Detta QSO är bekräftat på LoTW'; diff --git a/application/language/swedish/notes_lang.php b/application/language/swedish/notes_lang.php new file mode 100644 index 00000000..e19e31e9 --- /dev/null +++ b/application/language/swedish/notes_lang.php @@ -0,0 +1,23 @@ + Date: Sat, 15 Oct 2022 14:29:14 +0100 Subject: [PATCH 4/4] [Widgets] QSO now requires /widget/qso/publicslug --- application/controllers/Widgets.php | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/application/controllers/Widgets.php b/application/controllers/Widgets.php index 6cd8e57c..96864075 100644 --- a/application/controllers/Widgets.php +++ b/application/controllers/Widgets.php @@ -15,11 +15,30 @@ class Widgets extends CI_Controller { // Can be used to embed last 11 QSOs in a iframe or javascript include. - public function qsos() { + public function qsos($logbook_slug) { $this->load->model('logbook_model'); - - $data['last_five_qsos'] = $this->logbook_model->get_last_qsos('11'); - - $this->load->view('widgets/qsos', $data); + + $this->load->model('logbooks_model'); + if($this->logbooks_model->public_slug_exists($logbook_slug)) { + // Load the public view + + $logbook_id = $this->logbooks_model->public_slug_exists_logbook_id($logbook_slug); + if($logbook_id != false) + { + // Get associated station locations for mysql queries + $logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($logbook_id); + + if (!$logbooks_locations_array) { + show_404('Empty Logbook'); + } + } else { + log_message('error', $logbook_slug.' has no associated station locations'); + show_404('Unknown Public Page.'); + } + + $data['last_five_qsos'] = $this->logbook_model->get_last_qsos(15, $logbooks_locations_array); + + $this->load->view('widgets/qsos', $data); + } } } \ No newline at end of file