From 6cb4439d592a759f31b9b2afb7a904e73074f71e Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Sat, 16 Sep 2023 08:34:14 +1000 Subject: [PATCH] pialert_app_state.json --- front/js/pialert_common.js | 7 ++--- front/php/templates/header.php | 31 ++++++--------------- pialert/__main__.py | 4 +-- pialert/helper.py | 50 ++++++++++++++++++++++++++-------- pialert/initialise.py | 4 +-- pialert/mac_vendor.py | 2 +- pialert/plugin.py | 4 +-- pialert/reporting.py | 12 ++++---- pialert/scanners/internet.py | 2 +- 9 files changed, 63 insertions(+), 53 deletions(-) diff --git a/front/js/pialert_common.js b/front/js/pialert_common.js index e6a4181c..4537371b 100755 --- a/front/js/pialert_common.js +++ b/front/js/pialert_common.js @@ -173,6 +173,7 @@ function cacheStrings() } +// Get translated language string function getString (key) { UI_LANG = getSetting("UI_LANG"); @@ -195,12 +196,8 @@ function getString (key) { if(isEmpty(result)) - { - console.log(`pia_lang_${key}_${lang_code}`) - console.log(key) + { result = getCache(`pia_lang_${key}_en_us`, true); - console.log(result) - } return result; diff --git a/front/php/templates/header.php b/front/php/templates/header.php index 78774393..3fe620d7 100755 --- a/front/php/templates/header.php +++ b/front/php/templates/header.php @@ -83,8 +83,15 @@ if ($ENABLED_DARKMODE === True) {