From: Jean-Marc Pigeon Date: Fri, 12 Dec 2025 14:22:51 +0000 (-0500) Subject: Addition d'une sentinelle dans la defintion table traduction X-Git-Tag: tag-0.19~6 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=87e12e491a9a4611f293bcaaaf56ecf0f62cb7b9;p=jmp%2Fmailleur Addition d'une sentinelle dans la defintion table traduction --- diff --git a/www/gesdis.php b/www/gesdis.php index 649ec2d..0f3d92f 100644 --- a/www/gesdis.php +++ b/www/gesdis.php @@ -40,7 +40,7 @@ switch ($pageref) { break; case "lvlmai" : $entete="Main screen"; - $out=gettranslate($userlang,"Logout"); + $out="Logout"; if ($isadmin==true) { $remotes=gettranslate($userlang,"SMTP server"); $users=gettranslate($userlang,"User Management"); diff --git a/www/translations.js b/www/translations.js index b0005a0..13f7bd6 100644 --- a/www/translations.js +++ b/www/translations.js @@ -1,7 +1,8 @@ // vim: smarttab tabstop=8 shiftwidth=2 expandtab -// Table unique, même style que le PHP -const TR = [ +//language table +const TR = + [ ["Authentication", "Authentification"], ["Email", "Courriel"], ["Login", "Connexion"], @@ -9,16 +10,18 @@ const TR = [ ["Originator", "Expediteur"], ["Password", "Mot de passe"], ["Recipient", "Destinataire"], - ["Show", "Afficher"] -]; + ["Show", "Afficher"], + [null, null] + ]; var translationMap = new Map(); -// On construit automatiquement les dictionnaires EN/FR +// Building EN/FR dictionnaries const translationEn = new Map(); const translationFr = new Map(); for (const [en, fr] of TR) { + if (en === null) break; //detecting end of table translationEn.set(en, en); translationFr.set(en, fr); }