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

- -
+ +
- +
- +
@@ -134,7 +152,7 @@ if ($ENABLED_DARKMODE === True) {

-

To set a new password run:
./reset_password.sh yournewpassword
in the config folder.

+


./reset_password.sh

@@ -164,4 +182,4 @@ if ($ENABLED_DARKMODE === True) { \ No newline at end of file +?> diff --git a/front/php/templates/language/es_es.php b/front/php/templates/language/es_es.php index 06d49010..d2db014c 100644 --- a/front/php/templates/language/es_es.php +++ b/front/php/templates/language/es_es.php @@ -301,4 +301,18 @@ $pia_lang['Network_ManageDel_Submit'] = 'Eliminar'; $pia_lang['Network_Table_State'] = 'Estado'; $pia_lang['Network_Table_Hostname'] = 'Nombre de host'; $pia_lang['Network_Table_IP'] = 'Dirección IP'; + +////////////////////////////////////////////////////////////////// +// Login Page - Update by @TeroRERO 03ago2022 +////////////////////////////////////////////////////////////////// + +// TeroRERO Off $pia_lang['Login_Box'] = 'Inicie su sesión'; +$pia_lang['Login_Box'] = 'Ingrese su contraseña'; +$pia_lang['Login_Remember'] = 'Recordar'; +$pia_lang['Login_Submit'] = 'Ingresar'; +$pia_lang['Login_Psw_run'] = 'Para cambiar contraseña ejecute:'; +$pia_lang['Login_Psw_new'] = 'nueva_contraseña'; +$pia_lang['Login_Psw_folder'] = 'en la carpeta config.'; +$pia_lang['Login_Psw_alert'] = '¡Alerta de Contraseña!'; +$pia_lang['Login_Psw-box'] = 'Contraseña'; ?>