From: Jean-Marc Pigeon Date: Sat, 6 Sep 2025 14:34:11 +0000 (-0400) Subject: translation seems to be working X-Git-Tag: end-0.15~21 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=4db0f3be33e74516a9929e6f4cd1181149c44871;p=jmp%2Fmailleur translation seems to be working --- diff --git a/www/gesdis.php b/www/gesdis.php index 7a282c2..8f2851d 100644 --- a/www/gesdis.php +++ b/www/gesdis.php @@ -15,6 +15,8 @@ include_once "unilng.php"; function topper($isadmin,$logname,$pageref) { +global $userlang; + $entete=""; $admcolor="black"; $click1=""; @@ -24,7 +26,7 @@ if ($isadmin==true) $admcolor="red"; switch ($pageref) { case "lvllog" : - $entete=gettranslate(lng::fra,"authentication"); + $entete=gettranslate($userlang,"Authentication"); //$entete=gettranslate(lng::fra,"nuts"); break; case "lvlmai" : diff --git a/www/lvllog.php b/www/lvllog.php index e9fe253..8632500 100644 --- a/www/lvllog.php +++ b/www/lvllog.php @@ -7,6 +7,7 @@ //============================================================== include_once "subrou.php"; include_once "unienv.php"; +include_once "unilng.php"; include_once "gesdis.php"; include_once "gessql.php"; @@ -18,6 +19,12 @@ include_once "gessql.php"; function login() { +global $userlang; + +$lngemail=gettranslate($userlang,"Email"); +$lngpass=gettranslate($userlang,"Password"); +$lngshow=gettranslate($userlang,"Show"); + $STR = << @@ -34,12 +41,14 @@ if (datain.type==="password") { datain.type="text"; } else { - datain.type = "password"; + datain.type="password"; } } + - + +
@@ -53,19 +62,19 @@ else { action="lvllog.php" enctype="application/x-www-form-urlencoded" name="login"> -
+
- + - +
Email:$lngemail:
Password:$lngpass: - Show + $lngshow
@@ -122,7 +131,7 @@ $STR = << -
+
$top
$login @@ -134,6 +143,7 @@ EOT; return $STR; } +$userlang=lng::fra; if ($_SERVER["REQUEST_METHOD"] == "POST") { $pass=$_POST["passwd"]; $logname=$_POST["email"]; diff --git a/www/unilng.php b/www/unilng.php index 4e1d72a..b2fc022 100644 --- a/www/unilng.php +++ b/www/unilng.php @@ -1,5 +1,4 @@