From 8ff4ef732cce9458b55f8d74ea8dc6f3ef3c1693 Mon Sep 17 00:00:00 2001 From: ok1cdj Date: Mon, 25 Jan 2021 22:27:08 +0100 Subject: [PATCH 1/2] Czech translation of the system --- system/language/czech/calendar_lang.php | 56 ++++++++++++++++ system/language/czech/date_lang.php | 66 +++++++++++++++++++ system/language/czech/db_lang.php | 35 ++++++++++ system/language/czech/email_lang.php | 30 +++++++++ .../language/czech/form_validation_lang.php | 40 +++++++++++ system/language/czech/ftp_lang.php | 23 +++++++ system/language/czech/imglib_lang.php | 29 ++++++++ system/language/czech/index.html | 11 ++++ system/language/czech/migration_lang.php | 19 ++++++ system/language/czech/number_lang.php | 16 +++++ system/language/czech/pagination_lang.php | 15 +++++ system/language/czech/profiler_lang.php | 32 +++++++++ system/language/czech/unit_test_lang.php | 30 +++++++++ system/language/czech/upload_lang.php | 28 ++++++++ 14 files changed, 430 insertions(+) create mode 100644 system/language/czech/calendar_lang.php create mode 100644 system/language/czech/date_lang.php create mode 100644 system/language/czech/db_lang.php create mode 100644 system/language/czech/email_lang.php create mode 100644 system/language/czech/form_validation_lang.php create mode 100644 system/language/czech/ftp_lang.php create mode 100644 system/language/czech/imglib_lang.php create mode 100644 system/language/czech/index.html create mode 100644 system/language/czech/migration_lang.php create mode 100644 system/language/czech/number_lang.php create mode 100644 system/language/czech/pagination_lang.php create mode 100644 system/language/czech/profiler_lang.php create mode 100644 system/language/czech/unit_test_lang.php create mode 100644 system/language/czech/upload_lang.php diff --git a/system/language/czech/calendar_lang.php b/system/language/czech/calendar_lang.php new file mode 100644 index 00000000..aef3f05b --- /dev/null +++ b/system/language/czech/calendar_lang.php @@ -0,0 +1,56 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/system/language/czech/migration_lang.php b/system/language/czech/migration_lang.php new file mode 100644 index 00000000..f0f048be --- /dev/null +++ b/system/language/czech/migration_lang.php @@ -0,0 +1,19 @@ + Date: Tue, 26 Jan 2021 17:54:31 +0100 Subject: [PATCH 2/2] Added autoupdate for DOK and SOTA file used for autocompletion --- application/controllers/Update.php | 69 ++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/application/controllers/Update.php b/application/controllers/Update.php index 431a4b9e..2c640c94 100644 --- a/application/controllers/Update.php +++ b/application/controllers/Update.php @@ -289,6 +289,75 @@ class Update extends CI_Controller { fclose($f); } + /* + * Used for autoupdating the DOK file which is used in the QSO entry dialog for autocompletion. + */ + public function update_dok() { + $contents = file_get_contents('https://www.df2et.de/cqrlog/dok.txt', true); + + if($contents === FALSE) { + echo "Something went wrong with fetching the DOK file."; + } else { + $file = './assets/json/dok.txt'; + + file_put_contents($file, $contents); // Save our content to the file. + + if (file_exists($file)) + { + $nCount = count(file($file)); + if ($nCount > 0) + { + echo "DONE: " . number_format($nCount) . " DOK's saved"; + } else { + echo"FAILED: Empty file"; + } + } else { + echo"FAILED: Could not create dok.txt file locally"; + } + } + } + + /* + * Used for autoupdating the SOTA file which is used in the QSO entry dialog for autocompletion. + */ + public function update_sota() { + $csvfile = 'https://www.sotadata.org.uk/summitslist.csv'; + + $sotafile = './assets/json/sota.txt'; + + if($csvfile === FALSE) { + echo "Something went wrong with fetching the SOTA file"; + } else { + $csvhandle = fopen($csvfile,"r"); + + $data = fgetcsv($csvhandle,1000,","); // Skip line we are not interested in + $data = fgetcsv($csvhandle,1000,","); // Skip line we are not interested in + $data = fgetcsv($csvhandle,1000,","); + $sotafilehandle = fopen($sotafile, 'w'); + + do { + if ($data[0]) { + fwrite($sotafilehandle, $data[0].PHP_EOL); + } + } while ($data = fgetcsv($csvhandle,1000,",")); + + fclose($csvhandle); + fclose($sotafilehandle); + if (file_exists($sotafile)) + { + $nCount = count(file($sotafile)); + if ($nCount > 0) + { + echo "DONE: " . number_format($nCount) . " SOTA's saved"; + } else { + echo"FAILED: Empty file"; + } + } else { + echo"FAILED: Could not create sota.txt file locally"; + } + } + } + } ?>