From 25d575f2ad04175c0e5b6ca8c7eb349d3d217a7c Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 6 Jun 2024 10:48:32 +0200 Subject: [PATCH] replace strings in dashboard for review --- application/views/dashboard/index.php | 144 +++++++++++++++----------- 1 file changed, 83 insertions(+), 61 deletions(-) diff --git a/application/views/dashboard/index.php b/application/views/dashboard/index.php index 597172167..0aca098bd 100644 --- a/application/views/dashboard/index.php +++ b/application/views/dashboard/index.php @@ -1,21 +1,21 @@ '.$ctx->lang->line('gen_hamradio_mode').''; break; - case 'RSTS': echo ''.$ctx->lang->line('gen_hamradio_rsts').''; break; - case 'RSTR': echo ''.$ctx->lang->line('gen_hamradio_rstr').''; break; - case 'Country': echo ''.$ctx->lang->line('general_word_country').''; break; - case 'IOTA': echo ''.$ctx->lang->line('gen_hamradio_iota').''; break; - case 'SOTA': echo ''.$ctx->lang->line('gen_hamradio_sota').''; break; - case 'WWFF': echo ''.$ctx->lang->line('gen_hamradio_wwff').''; break; - case 'POTA': echo ''.$ctx->lang->line('gen_hamradio_pota').''; break; - case 'State': echo ''.$ctx->lang->line('gen_hamradio_state').''; break; - case 'Grid': echo ''.$ctx->lang->line('gen_hamradio_gridsquare').''; break; - case 'Distance': echo ''.$ctx->lang->line('gen_hamradio_distance').''; break; - case 'Band': echo ''.$ctx->lang->line('gen_hamradio_band').''; break; - case 'Frequency': echo ''.$ctx->lang->line('gen_hamradio_frequency').''; break; - case 'Operator': echo ''.$ctx->lang->line('gen_hamradio_operator').''; break; - case 'Name': echo ''.$ctx->lang->line('general_word_name').''; break; + case 'Mode': echo ''.__("Mode").''; break; + case 'RSTS': echo ''.__("RSTS").''; break; + case 'RSTR': echo ''.__("RSTR").''; break; + case 'Country': echo ''.__("Country").''; break; + case 'IOTA': echo ''.__("IOTA").''; break; + case 'SOTA': echo ''.__("SOTA").''; break; + case 'WWFF': echo ''.__("WWFF").''; break; + case 'POTA': echo ''.__("POTA").''; break; + case 'State': echo ''.__("State").''; break; + case 'Grid': echo ''.__("Gridsquare").''; break; + case 'Distance': echo ''.__("Distance").''; break; + case 'Band': echo ''.__("Band").''; break; + case 'Frequency': echo ''.__("Frequency").''; break; + case 'Operator': echo ''.__("Operator").''; break; + case 'Name': echo ''.__("Name").''; break; } } @@ -25,7 +25,7 @@ function echo_table_col($row, $name) { case 'Mode': echo ''; echo $row->COL_SUBMODE==null?$row->COL_MODE:$row->COL_SUBMODE . ''; break; case 'RSTS': echo '' . $row->COL_RST_SENT; if ($row->COL_STX) { echo ' COL_CONTEST_ID:"n/a").'" class="badge text-bg-light">'; printf("%03d", $row->COL_STX); echo '';} if ($row->COL_STX_STRING) { echo ' COL_CONTEST_ID:"n/a").'" class="badge text-bg-light">' . $row->COL_STX_STRING . '';} echo ''; break; case 'RSTR': echo '' . $row->COL_RST_RCVD; if ($row->COL_SRX) { echo ' COL_CONTEST_ID:"n/a").'" class="badge text-bg-light">'; printf("%03d", $row->COL_SRX); echo '';} if ($row->COL_SRX_STRING) { echo ' COL_CONTEST_ID:"n/a").'" class="badge text-bg-light">' . $row->COL_SRX_STRING . '';} echo ''; break; - case 'Country': echo '' . ucwords(strtolower(($row->COL_COUNTRY))); if ($row->end != NULL) echo ' '.$ci->lang->line('gen_hamradio_deleted_dxcc').'' . ''; break; + case 'Country': echo '' . ucwords(strtolower(($row->COL_COUNTRY))); if ($row->end != NULL) echo ' '.__("Deleted DXCC").'' . ''; break; case 'IOTA': echo '' . ($row->COL_IOTA) . ''; break; case 'SOTA': echo '' . ($row->COL_SOTA_REF) . ''; break; case 'WWFF': echo '' . ($row->COL_WWFF_REF) . ''; break; @@ -54,49 +54,71 @@ function echo_table_col($row, $name) { optionslib->get_option('dashboard_banner') != "false") { ?> = 1) { ?> + + + + + + + + @@ -105,13 +127,13 @@ function echo_table_col($row, $name) { $current_date = date('Y-m-d H:i:s'); if($this->LotwCert->lotw_cert_expired($this->session->userdata('user_id'), $current_date) == true) { ?> LotwCert->lotw_cert_expiring($this->session->userdata('user_id'), $current_date) == true) { ?> @@ -134,17 +156,17 @@ function echo_table_col($row, $name) { - + config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?> - + - + session->userdata('user_column1')==""?'Mode':$this->session->userdata('user_column1')); - echo_table_header_col($this, $this->session->userdata('user_column2')==""?'RSTS':$this->session->userdata('user_column2')); - echo_table_header_col($this, $this->session->userdata('user_column3')==""?'RSTR':$this->session->userdata('user_column3')); - echo_table_header_col($this, $this->session->userdata('user_column4')==""?'Band':$this->session->userdata('user_column4')); + echo_table_header_col($this->session->userdata('user_column1')==""?'Mode':$this->session->userdata('user_column1')); + echo_table_header_col($this->session->userdata('user_column2')==""?'RSTS':$this->session->userdata('user_column2')); + echo_table_header_col($this->session->userdata('user_column3')==""?'RSTR':$this->session->userdata('user_column3')); + echo_table_header_col($this->session->userdata('user_column4')==""?'Band':$this->session->userdata('user_column4')); ?> @@ -200,21 +222,21 @@ function echo_table_col($row, $name) { - + - + - + - +
@@ -223,15 +245,15 @@ function echo_table_col($row, $name) { - + - + - + - +
/ / @@ -240,7 +262,7 @@ function echo_table_col($row, $name) {
@@ -248,24 +270,24 @@ function echo_table_col($row, $name) { config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) && ($total_qsl_sent != 0 || $total_qsl_rcvd != 0 || $total_qsl_requested != 0)) { ?> - - + + - + - + - + @@ -275,18 +297,18 @@ function echo_table_col($row, $name) { config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === false) && ($total_lotw_sent != 0 || $total_lotw_rcvd != 0)) { ?>
- - + + - + - + @@ -296,18 +318,18 @@ function echo_table_col($row, $name) { config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) && ($total_eqsl_sent != 0 || $total_eqsl_rcvd != 0)) { ?>
- - + + - + - + @@ -318,17 +340,17 @@ function echo_table_col($row, $name) {
- + - + - + @@ -343,13 +365,13 @@ function echo_table_col($row, $name) { - + - + @@ -360,4 +382,4 @@ function echo_table_col($row, $name) { - + \ No newline at end of file
QRZ.com