From 12f1dfd3c584039a8f64cf48a7d460cd80d23c1a Mon Sep 17 00:00:00 2001 From: HB9HIL <80885850+HB9HIL@users.noreply.github.com> Date: Tue, 3 Oct 2023 06:56:43 +0200 Subject: [PATCH] Multilang Support for Logbook Advanced --- .../language/bulgarian/general_words_lang.php | 2 + .../chinese_simplified/general_words_lang.php | 2 + .../language/czech/general_words_lang.php | 2 + .../language/dutch/general_words_lang.php | 2 + .../language/english/general_words_lang.php | 2 + .../language/finnish/general_words_lang.php | 2 + .../language/french/general_words_lang.php | 2 + .../language/german/general_words_lang.php | 2 + .../language/greek/general_words_lang.php | 2 + .../language/italian/general_words_lang.php | 2 + .../language/polish/general_words_lang.php | 2 + .../language/russian/general_words_lang.php | 2 + .../language/spanish/general_words_lang.php | 2 + .../language/swedish/general_words_lang.php | 2 + .../language/turkish/general_words_lang.php | 2 + application/views/logbookadvanced/index.php | 32 ++++++------- .../views/logbookadvanced/useroptions.php | 46 +++++++++++-------- 17 files changed, 73 insertions(+), 35 deletions(-) diff --git a/application/language/bulgarian/general_words_lang.php b/application/language/bulgarian/general_words_lang.php index f5d8c63c..b0711f20 100644 --- a/application/language/bulgarian/general_words_lang.php +++ b/application/language/bulgarian/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Локатор'; $lang['gen_hamradio_transmit_power'] = 'Мощност на предавателя (W)'; $lang['gen_hamradio_propagation_mode'] = 'Propagation Mode'; diff --git a/application/language/chinese_simplified/general_words_lang.php b/application/language/chinese_simplified/general_words_lang.php index 49bd182f..30fd757c 100644 --- a/application/language/chinese_simplified/general_words_lang.php +++ b/application/language/chinese_simplified/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = '信号交换 (发)'; $lang['gen_hamradio_exchange_rcvd_short'] = '信号交换 (收)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = '定位器'; $lang['gen_hamradio_transmit_power'] = '发射功率 (W)'; $lang['gen_hamradio_propagation_mode'] = '传播模式'; diff --git a/application/language/czech/general_words_lang.php b/application/language/czech/general_words_lang.php index 15ca50fb..4eaddcec 100644 --- a/application/language/czech/general_words_lang.php +++ b/application/language/czech/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Výměna (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Výměna (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Lokátor'; $lang['gen_hamradio_transmit_power'] = 'Vysílací výkon (W)'; $lang['gen_hamradio_propagation_mode'] = 'Šíření signálu'; diff --git a/application/language/dutch/general_words_lang.php b/application/language/dutch/general_words_lang.php index ffbeca25..d0200ad6 100644 --- a/application/language/dutch/general_words_lang.php +++ b/application/language/dutch/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Verz (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Ontv (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Locator'; $lang['gen_hamradio_transmit_power'] = 'Vermogen (W)'; $lang['gen_hamradio_propagation_mode'] = 'Propagattie Mode'; diff --git a/application/language/english/general_words_lang.php b/application/language/english/general_words_lang.php index 91a83425..e791f05d 100644 --- a/application/language/english/general_words_lang.php +++ b/application/language/english/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Locator'; $lang['gen_hamradio_transmit_power'] = 'Transmit Power (W)'; $lang['gen_hamradio_propagation_mode'] = 'Propagation Mode'; diff --git a/application/language/finnish/general_words_lang.php b/application/language/finnish/general_words_lang.php index a5bd62da..a25980e5 100644 --- a/application/language/finnish/general_words_lang.php +++ b/application/language/finnish/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Lokaattori'; $lang['gen_hamradio_transmit_power'] = 'Lähetysteho (W)'; $lang['gen_hamradio_propagation_mode'] = 'Propagaatiomuoto'; diff --git a/application/language/french/general_words_lang.php b/application/language/french/general_words_lang.php index 6eaceeab..9ced57cd 100644 --- a/application/language/french/general_words_lang.php +++ b/application/language/french/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Locator'; $lang['gen_hamradio_transmit_power'] = 'Puissance Emission (W)'; $lang['gen_hamradio_propagation_mode'] = 'Mode Propagation'; diff --git a/application/language/german/general_words_lang.php b/application/language/german/general_words_lang.php index b36fd456..3ab021b5 100644 --- a/application/language/german/general_words_lang.php +++ b/application/language/german/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'Mein Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Locator'; $lang['gen_hamradio_transmit_power'] = 'Sendeleistung (W)'; $lang['gen_hamradio_propagation_mode'] = 'Propagation'; diff --git a/application/language/greek/general_words_lang.php b/application/language/greek/general_words_lang.php index 810eca7f..0fc64d31 100644 --- a/application/language/greek/general_words_lang.php +++ b/application/language/greek/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Τοποθετών'; $lang['gen_hamradio_transmit_power'] = 'Ισχύ διαβίβασης (W)'; $lang['gen_hamradio_propagation_mode'] = 'Λειτουργία διάδοσης'; diff --git a/application/language/italian/general_words_lang.php b/application/language/italian/general_words_lang.php index 48f56063..4891082e 100644 --- a/application/language/italian/general_words_lang.php +++ b/application/language/italian/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Scambio (I)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Scambio (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Locatore'; $lang['gen_hamradio_transmit_power'] = 'Potenza di Trasmissione (W)'; $lang['gen_hamradio_propagation_mode'] = 'Modo di Propagazione'; diff --git a/application/language/polish/general_words_lang.php b/application/language/polish/general_words_lang.php index f71ff3d0..25548951 100644 --- a/application/language/polish/general_words_lang.php +++ b/application/language/polish/general_words_lang.php @@ -82,6 +82,8 @@ $lang['gen_hamradio_rstr'] = 'RST (R)'; $lang['gen_hamradio_exchange_sent_short'] = 'Wymiana (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Wymiana (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Lokator'; $lang['gen_hamradio_transmit_power'] = 'Moc nadajnika (W)'; $lang['gen_hamradio_propagation_mode'] = 'Typ propagacji'; diff --git a/application/language/russian/general_words_lang.php b/application/language/russian/general_words_lang.php index 5286045b..a527dc88 100644 --- a/application/language/russian/general_words_lang.php +++ b/application/language/russian/general_words_lang.php @@ -106,6 +106,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Локатор'; $lang['gen_hamradio_transmit_power'] = 'Мощность передачи (Вт)'; $lang['gen_hamradio_propagation_mode'] = 'Тип прохождения'; diff --git a/application/language/spanish/general_words_lang.php b/application/language/spanish/general_words_lang.php index cf9a759b..d94bb57b 100644 --- a/application/language/spanish/general_words_lang.php +++ b/application/language/spanish/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Intercambio (Env)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Intercambio (Recib)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Localizador'; $lang['gen_hamradio_transmit_power'] = 'Potencia de transmisión (W)'; $lang['gen_hamradio_propagation_mode'] = 'Modo de propagación'; diff --git a/application/language/swedish/general_words_lang.php b/application/language/swedish/general_words_lang.php index 8b8b18c4..888ee231 100644 --- a/application/language/swedish/general_words_lang.php +++ b/application/language/swedish/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Lokator'; $lang['gen_hamradio_transmit_power'] = 'Effekt (W)'; $lang['gen_hamradio_propagation_mode'] = 'Propagation Mode'; diff --git a/application/language/turkish/general_words_lang.php b/application/language/turkish/general_words_lang.php index a744e321..4bb662bd 100644 --- a/application/language/turkish/general_words_lang.php +++ b/application/language/turkish/general_words_lang.php @@ -105,6 +105,8 @@ $lang['gen_hamradio_myrefs'] = 'My Refs'; $lang['gen_hamradio_exchange_sent_short'] = 'Exch (G)'; $lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (A)'; $lang['gen_hamradio_qsl'] = 'QSL'; +$lang['gen_hamradio_qslvia'] = 'QSL via'; +$lang['gen_hamradio_qslmsg'] = 'QSL Msg'; $lang['gen_hamradio_locator'] = 'Konum kodu'; $lang['gen_hamradio_transmit_power'] = 'Yayın Gücü (W)'; $lang['gen_hamradio_propagation_mode'] = 'Yayın Mode'; diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php index fa1f5cf7..54ab2da4 100644 --- a/application/views/logbookadvanced/index.php +++ b/application/views/logbookadvanced/index.php @@ -390,37 +390,37 @@ $options = json_decode($options); echo '' . lang('general_word_datetime') . ''; } ?> de->show ?? "true") == "true") { - echo 'De'; + echo '' . lang('gen_hamradio_de') . ''; } ?> dx->show ?? "true") == "true") { - echo 'Dx'; + echo '' . lang('gen_hamradio_dx') . ''; } ?> mode->show ?? "true") == "true") { - echo 'Mode'; + echo '' . lang('gen_hamradio_mode') . ''; } ?> rsts->show ?? "true") == "true") { - echo 'RST (S)'; + echo '' . lang('gen_hamradio_rsts') . ''; } ?> rstr->show ?? "true") == "true") { - echo 'RST (R)'; + echo '' . lang('gen_hamradio_rstr') . ''; } ?> band->show ?? "true") == "true") { - echo 'Band'; + echo '' . lang('gen_hamradio_band') . ''; } ?> myrefs->show ?? "true") == "true") { - echo 'My Refs'; + echo '' . lang('gen_hamradio_myrefs') . ''; } ?> refs->show ?? "true") == "true") { - echo 'Refs'; + echo '' . lang('gen_hamradio_refs') . ''; } ?> name->show ?? "true") == "true") { - echo 'Name'; + echo '' . lang('general_word_name') . ''; } ?> qslvia->show ?? "true") == "true") { - echo 'QSL Via'; + echo '' . lang('gen_hamradio_qslvia') . ''; } ?> qsl->show ?? "true") == "true") { - echo 'QSL'; + echo '' . lang('gen_hamradio_qsl') . ''; } ?> session->userdata('user_eqsl_name') != "" && ($options->eqsl->show ?? "true") == "true"){ echo 'eQSL'; @@ -429,19 +429,19 @@ $options = json_decode($options); echo 'LoTW'; } ?> qslmsg->show ?? "true") == "true") { - echo 'QSL Msg'; + echo '' . lang('gen_hamradio_qslmsg') . ''; } ?> dxcc->show ?? "true") == "true") { - echo 'DXCC'; + echo '' . lang('gen_hamradio_dxcc') . ''; } ?> state->show ?? "true") == "true") { - echo 'State'; + echo '' . lang('gen_hamradio_state') . ''; } ?> cqzone->show ?? "true") == "true") { - echo 'CQ Zone'; + echo '' . lang('gen_hamradio_cq_zone') . ''; } ?> iota->show ?? "true") == "true") { - echo 'IOTA'; + echo '' . lang('gen_hamradio_iota') . ''; } ?> diff --git a/application/views/logbookadvanced/useroptions.php b/application/views/logbookadvanced/useroptions.php index 31603b61..8d7b6bce 100644 --- a/application/views/logbookadvanced/useroptions.php +++ b/application/views/logbookadvanced/useroptions.php @@ -7,80 +7,88 @@ - Date/Time +
datetime->show ?? "true") == "true") { echo 'checked'; } ?>>
- De +
de->show ?? "true") == "true") { echo 'checked'; } ?>>
- Dx +
dx->show ?? "true") == "true") { echo 'checked'; } ?>>
- Mode +
mode->show ?? "true") == "true") { echo 'checked'; } ?>>
- RST (S) +
rsts->show ?? "true") == "true") { echo 'checked'; } ?>>
- RST (R) +
rstr->show ?? "true") == "true") { echo 'checked'; } ?>>
- Band +
band->show ?? "true") == "true") { echo 'checked'; } ?>>
- My Refs +
myrefs->show ?? "true") == "true") { echo 'checked'; } ?>>
- Refs +
refs->show ?? "true") == "true") { echo 'checked'; } ?>>
- Name +
name->show ?? "true") == "true") { echo 'checked'; } ?>>
- QSL Via +
qslvia->show ?? "true") == "true") { echo 'checked'; } ?>>
- QSL +
qsl->show ?? "true") == "true") { echo 'checked'; } ?>>
- LoTW +
lotw->show ?? "true") == "true") { echo 'checked'; } ?>>
- eQSL +
eqsl->show ?? "true") == "true") { echo 'checked'; } ?>>
- QSL Msg +
qslmsg->show ?? "true") == "true") { echo 'checked'; } ?>>
- DXCC +
dxcc->show ?? "true") == "true") { echo 'checked'; } ?>>
- State +
state->show ?? "true") == "true") { echo 'checked'; } ?>>
- CQ Zone +
cqzone->show ?? "true") == "true") { echo 'checked'; } ?>>
- IOTA + +
sota->show ?? "true") == "true") { echo 'checked'; } ?>>
+ + +
iota->show ?? "true") == "true") { echo 'checked'; } ?>>
+ + +
pota->show ?? "true") == "true") { echo 'checked'; } ?>>
+