break;
case "lvlmai" :
$entete="<span class=\"translatable\" trkey=\"Main screen\">Main screen</span>";
- $out=gettranslate($userlang,"Logout");
+ $out="<span class=\"translatable\" trkey=\"Logout\">Logout</span>";
if ($isadmin==true) {
$remotes=gettranslate($userlang,"SMTP server");
$users=gettranslate($userlang,"User Management");
// 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"],
["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);
}