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) {