]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Login Translation almost working
authorJean-Marc Pigeon <jmp@safe.c>
Sat, 6 Sep 2025 17:40:25 +0000 (13:40 -0400)
committerJean-Marc Pigeon <jmp@safe.c>
Sat, 6 Sep 2025 17:40:25 +0000 (13:40 -0400)
www/lvllog.php
www/translations.js

index f39894e2cca68db72a249c18b0ea851110809f49..5521088ec2a3d7f14d5c81d322cb287db47284c8 100644 (file)
@@ -43,7 +43,7 @@ $STR  = <<<EOT
                  name="login">
               <table align="center" border="0" cellspacing="5" cellpadding="0">
                 <tr>
-                  <td align="left" nowrap="nowrap">$lngemail:</td>
+                  <td align="left" nowrap="nowrap"><span class="translatable" trkey="Email">Email</span><span>:</span></td>
                   <td>
                   <input type="text" name="email" size="20" onchange="" />
                   <select id="first-choice" onchange="updateTranslations()">
@@ -54,16 +54,14 @@ $STR  = <<<EOT
                 </tr>
 
                 <tr>
-                  <td align="left" nowrap="nowrap">$lngpass:</td>
+                  <td align="left" nowrap="nowrap"><span class="translatable" trkey="Password">Password</span><span>:</span></td>
                   <td>
                  <input type="password" name="passwd" size="20" id="myInput" />
-                 <input type="checkbox" onclick="showpass()" >$lngshow
+                  <input type="checkbox" onclick="showpass()"
+                     
+                    ><span class="translatable" trkey="Show" >Show</span>
                  </td>
                 </tr>
-                <tr>
-
-                  <td align="left" nowrap="nowrap" class="translatable" trkey="Tr1">0</td>
-                </tr>
               </table>
 
               <table width="100%" cellpadding="0" cellspacing="1" border="0">
index 5d934756df36e77828ee65459158bb6c128ff20d..c3fce8e38ee2223a007639c2896ba341d4030aae 100644 (file)
@@ -1,13 +1,14 @@
 var translationMap = new Map();
 
+var translationEn = new Map();
+translationEn.set("Email","Email");
+translationEn.set("Password","Password");
+translationEn.set("Show","Show");
 
 var translationFr = new Map();
-translationFr.set("Tr1", "1");
-translationFr.set("Tr2", "2");
-
-var translationEn = new Map();
-translationEn.set("Tr1", "3");
-translationEn.set("Tr2", "4");
+translationFr.set("Email", "Courriel");
+translationFr.set("Password","Mot de passe");
+translationFr.set("Show","Afficher");
 
 translationMap.set("fr", translationFr);
 translationMap.set("en", translationEn);