From 4f9c0f8e53bcf8699452b9ac815bc1cd9361a1d9 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 11 Jul 2024 17:50:55 +0200 Subject: [PATCH] stringify --- application/controllers/Debug.php | 14 +++++++------- application/views/debug/index.php | 15 ++++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/application/controllers/Debug.php b/application/controllers/Debug.php index e3768f53e..bff26bba2 100644 --- a/application/controllers/Debug.php +++ b/application/controllers/Debug.php @@ -115,23 +115,23 @@ class Debug extends CI_Controller if (!empty($qsl_files_filtered) || !empty($eqsl_files_filtered)) { if (!$flag_file) { $status['btn_class'] = ''; - $status['btn_text'] = 'Migrate data now'; + $status['btn_text'] = __("Migrate data now"); } else { $status['btn_class'] = ''; - $status['btn_text'] = 'Migration already done. Run again?'; + $status['btn_text'] = __("Migration already done. Run again?"); } } else { $status['btn_class'] = 'disabled'; - $status['btn_text'] = 'No data to migrate'; + $status['btn_text'] = __("No data to migrate"); } } else { $status['btn_class'] = 'disabled'; - $status['btn_text'] = 'No migration possible'; + $status['btn_text'] = __("No migration possible"); } } else { // If the folder is not writable, we don't need to continue $status['btn_class'] = 'disabled'; - $status['btn_text'] = 'No migration possible'; + $status['btn_text'] = __("No migration possible"); } return $status; @@ -213,10 +213,10 @@ class Debug extends CI_Controller $migrate = $this->debug_model->migrate_userdata(); if ($migrate == true) { - $this->session->set_flashdata('success', 'File Migration was successfull, but please check also manually. If everything seems right you can delete the folders "assets/qslcard" and "images/eqsl_card_images".'); + $this->session->set_flashdata('success', __("File Migration was successfull, but please check also manually. If everything seems right you can delete the folders 'assets/qslcard' and 'images/eqsl_card_images'.")); redirect('debug'); } else { - $this->session->set_flashdata('error', 'File Migration failed. Please check the Error Log.'); + $this->session->set_flashdata('error', __("File Migration failed. Please check the Error Log.")); redirect('debug'); } } diff --git a/application/views/debug/index.php b/application/views/debug/index.php index dd9ae2794..cd76380f7 100644 --- a/application/views/debug/index.php +++ b/application/views/debug/index.php @@ -181,6 +181,7 @@ encryption_key:

application/config/config.php"); ?>
+
\$config['encryption_key']"); ?>

@@ -479,38 +480,38 @@ - last_run ?? 'never'; ?> + last_run ?? __("never"); ?> - last_run ?? 'never'; ?> + last_run ?? __("never"); ?> - last_run ?? 'never'; ?> + last_run ?? __("never"); ?> - last_run ?? 'never'; ?> + last_run ?? __("never"); ?> - last_run ?? 'never'; ?> + last_run ?? __("never"); ?> - last_run ?? 'never'; ?> + last_run ?? __("never"); ?> - last_run ?? 'never'; ?> + last_run ?? __("never"); ?>