From 71e7ee6f2d0ce0588f37d9519c823da9e12cd5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cterorero=E2=80=9D?= <“devin@devinconde.com”> Date: Wed, 3 Aug 2022 23:06:32 -0400 Subject: [PATCH] Translating home page to spanish login-page Translating home page to spanish --- front/index.php | 34 ++++++++++++++++++++------ front/php/templates/language/es_es.php | 14 +++++++++++ 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/front/index.php b/front/index.php index 6272222a..1a1993bc 100644 --- a/front/index.php +++ b/front/index.php @@ -5,6 +5,25 @@ if ($_REQUEST['action'] == 'logout') { session_destroy(); header('Location: /pialert/index.php'); } +// ################################### + // ## Login settings locale start + // ################################### + if (file_exists('../db/setting_darkmode')) { + $ENABLED_DARKMODE = True; + } + foreach (glob("../db/setting_skin*") as $filename) { + $pia_skin_selected = str_replace('setting_','',basename($filename)); + } + if (strlen($pia_skin_selected) == 0) {$pia_skin_selected = 'skin-blue';} + + foreach (glob("../db/setting_language*") as $filename) { + $pia_lang_selected = str_replace('setting_language_','',basename($filename)); + } + if (strlen($pia_lang_selected) == 0) {$pia_lang_selected = 'en_us';} + require 'php/templates/language/'.$pia_lang_selected.'.php'; +// ################################### + // ## Login settings locale end + // ################################### // ################################################## // ## Login Processing start // ################################################## @@ -103,24 +122,23 @@ if ($ENABLED_DARKMODE === True) {
Sign in to start your session
- -